Authentication
Bearer tokens and the upl:notes scopes the Notes API requires.
The Notes API (https://notes-api.xeonr.io) is ConnectRPC over HTTP. Every
call carries a Xeonr Auth access token in the Authorization header:
Authorization: Bearer <access token>There is no session cookie and no ?token= query parameter. The live event
stream (GET /events) takes the same header.
The token
Notes is part of the upl.im application in Xeonr Auth, so ask for a token
whose audience is https://notes-api.xeonr.io. The token must have an exp:
tokens that never expire are refused. Any client of the upl.im application
can call the API, and so can a service account. A client from another
application needs an approved binding for the scopes below.
Notes forwards your token to upl.im for every read and write. That means the
token also needs the upl.im scopes for the buckets it touches (for example
upl:bucket:read, upl:uploads:manage). upl.im still checks your role on
each bucket.
Scopes
Each RPC requires one scope. A stronger verb of the same family satisfies a
weaker one: admin includes edit, which includes read.
| Scope | Allows |
|---|---|
upl:notes:read | Reading notes, folders, comments, attachments and the event stream |
upl:notes:edit | Creating, editing, renaming, moving, reordering and deleting notes, folders, comments and attachments |
upl:notes:admin | Turning Notes on or off for a bucket (EnableNotesForBucket, DisableNotesForBucket) |
The API reference names the scope on every operation.
Errors
unauthenticated(HTTP 401): no token, or one that is malformed, expired, for another audience or from another issuer. Get a new token.permission_denied(HTTP 403): the token is valid but lacks the RPC's scope, or upl.im refused the bucket. Request the scope, or check your role on the bucket.
Every create, change and deletion is recorded in your Xeonr audit log with your identity.