Skip to Content
Xeonr Developer Docs
API Specification

Credentials

What notify sends as: Discord bots, SMTP relays, APNs keys, FCM accounts and VAPID pairs, owned by an application, a team or a person.

postDelete credential

Removes the credential for one (owner, kind). Deliveries fall back to the next owner in the resolution chain, which is usually the deployment default — so this is a demotion rather than a breakage. Where the deployment holds no default of that kind, the channel stops working for that owner. A product's **service account** may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop. **Required scopes:** `notify:credentials:admin`

postDescribe kinds

What credentials can be registered and what each one needs: its fields, which of them are secret, their input types and defaults, the channel it serves, and whether this deployment already holds a platform-wide default of that kind. The console builds its forms from this, which is what keeps a new kind from needing new UI. **Required scopes:** `notify:credentials:read`

postList credentials

One owner's registered credentials, by owner URN — an application, a team or a person. Secrets are never returned, only which of the kind's secret fields have a value on file, when the credential last passed its verify check, and what went wrong if it did not. Needs admin of the team that owns the app or the team itself, or `notify:platform:admin`. Cursor-paginated: newest first, over an opaque cursor over `(created_at, id)`. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page, and an empty `next_cursor` means there is no further page. A product's **service account** may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop. **Required scopes:** `notify:credentials:read`

postList my credentials

Everything the caller may manage: their own credentials, their teams', and those of the apps those teams own — the screen that answers "what am I sending as". `owners` is every owner they may register under, so the console can offer them rather than asking somebody to type a URN. Cursor-paginated over `credentials`: newest first, over an opaque cursor over `(created_at, id)`. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. `owners` is not paged — it is the caller's complete set of registerable owners and is repeated on every page. **Required scopes:** `notify:credentials:read`

postPut credential

Creates or updates the credential for one (owner, kind). A secret left empty or omitted keeps whatever is on file, so the console can show a form without holding the secret to re-submit it; to clear one, delete the credential. Secrets are sealed on the way in and never returned. A person may register under themselves, a team admin under the team, and an admin of the team owning an app under that app; a platform administrator may do any of it. A product's **service account** may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop. **Required scopes:** `notify:credentials:admin`

postVerify credential

Uses the credential for real, against the provider, and records the outcome on it. A credential nobody verified is the usual reason a channel is quietly dead, which is why `verified_at` and `last_error` are first-class fields rather than log lines. `detail` is whatever the provider said — the bot's username, the relay's greeting, or the refusal — shown verbatim, because "it didn't work" is not actionable. A product's **service account** may call this for its own application — the one whose slug the account's token names — so a product owns its catalogue and its credentials without a person in the loop. **Required scopes:** `notify:credentials:admin`