Skip to Content
Xeonr Developer Docs
API Specification

Topics

Topics: create, configure and delete them, and their grants, publish keys, subscribers and sinks (webhook, Discord, email). Also the products the caller can configure.

postAdd grant

Confers a capability on a topic to a user, service-account or team URN. Adding one that already exists is a no-op rather than an error. Manage implies publish and subscribe: whoever can rewrite the grants can give themselves the rest. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postAdd sink

Routes a topic to a shared destination. An upsert on (topic, channel, target): re-adding a destination edits its filters rather than being refused. Only Discord and webhook are sinks — the other channels reach a person rather than a place. A webhook sink's signing secret is returned **exactly once**, here. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postCreate key

Mints a publish key for the topic and returns its secret **exactly once**, together with a ready-made publish URL; afterwards only the prefix is visible. Identityless by default, attributed as `urn:xeonr:notify:key:<id>`; bind an identity when the ledger should name a real principal. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postCreate topic

Registers a topic under a user URN (the caller's own) or a team URN the caller administers. Publishing to a name that does not exist is an error, never an implicit create, so this call is the registration step. A service account with manage on the owning team's topics may create on the team's behalf — the per-user product topic case. **Required scopes:** `notify:topics:edit`

postDelete topic

Removes the topic and everything hanging off it: its grants, keys, sinks, subscriptions and messages. Needs manage on the topic. Archiving with UpdateTopic is the reversible alternative. **Required scopes:** `notify:topics:edit`

postDescribe a Discord channel

Looks a Discord channel up as the bot a sink on this topic would post as (the topic's app's `discord_bot` credential, else the owner's, else the deployment's) and returns the server it belongs to and its name. A product that lets its own tenants pick a channel uses it to check the channel is in a server that tenant owns before adding the sink, since one bot is usually in many tenants' servers. `FAILED_PRECONDITION` when the bot cannot see the channel (not in that server, or no View Channel), `INVALID_ARGUMENT` for a channel outside any server (a DM). Needs manage on the topic. **Required scopes:** `notify:topics:read`

postDescribe a Discord server

Looks a Discord server up as the bot a sink on this topic would post as and returns its name. With `manager_subject`, also says whether that person's linked Discord account owns the server or holds Manage Server or Administrator in it: the proof a product asks for before letting a tenant claim a server, so nobody can claim one they do not run. `FAILED_PRECONDITION` when the bot is not in the server. Needs manage on the topic. **Required scopes:** `notify:topics:read`

postGet topic

Fetches one topic with the caller's effective capabilities on it (`my_caps`) and whether they follow it. **Unauthenticated callers are allowed** for a topic with `public_subscribe` set; a private topic the caller holds no capability on is not-found rather than denied, so existence cannot be probed.

postList apps

The products the caller can configure, read from **auth**: applications owned by a team they belong to. Notify does not own this list and has no register-an-app flow — an application exists because somebody created it in auth, and notify learns about it. Each one seen is cached locally, so the list still answers from the cache (with `synced_at` saying how stale) when auth is unavailable. With `enabled_only`, only the products onboarded to notify. Cursor-paginated: newest first, over an opaque cursor over `(created_at, slug)` — an App carries no id of its own on the wire, and the slug is what makes the keyset total. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. **Required scopes:** `notify:apps:read`

postList grants

The capabilities granted on a topic, with a display snapshot of each grantee notify has seen. Needs manage on the topic. 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. **Required scopes:** `notify:topics:read`

postList keys

A topic's publish keys, by prefix — the secrets are not returned, here or anywhere after creation. Needs manage on the topic. 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. **Required scopes:** `notify:topics:read`

postList my subscriptions

Every topic the caller follows, with their own narrowing and the topic attached. Includes implicit subscriptions — the ones fan-out created because a product addressed this person directly. Cursor-paginated: newest first, over an opaque cursor over the subscription's `(created_at, id)`. `limit` is clamped to 500 (0 means the default of 50); pass `next_cursor` back as `cursor` for the next page. **Required scopes:** `notify:topics:read` — or `notify:subscriptions:read` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice

postList my topics

Everything the caller has any capability on, across every owner: topics they own, topics owned by a team they are in, and topics they or one of their teams hold a grant on — whether or not the console is currently "in" that team. 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. **Required scopes:** `notify:topics:read`

postList public topics

Every topic whose owner opened it to anonymous reads — a status feed, a release channel. **Unauthenticated callers are allowed**: this is the one list that answers without a credential, because a public topic nobody can find is not public. 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.

postList sinks

A topic's shared destinations — a Discord channel the whole guild reads, a webhook URL — with the narrowing each one applies. Needs manage on the topic. 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. **Required scopes:** `notify:topics:read`

postList subscribers

Who follows a topic, with each subscription's narrowing and a display snapshot of the person. Needs manage on the topic. 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. **Required scopes:** `notify:topics:read`

postList all topics

The platform view: every topic in the deployment, filterable by owner URN and by app. Reserved to platform administrators — an ordinary caller wants ListMyTopics, which answers for the topics they actually hold a capability on. 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. **Required scopes:** `notify:topics:read`, held by a platform administrator (`notify:platform:admin`)

postRemove grant

Withdraws one grant from a topic. Needs manage on the topic. The owner's own capabilities come from ownership rather than a grant and cannot be removed this way. **Required scopes:** `notify:topics:edit`

postRemove sink

Stops a topic routing to a shared destination. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postRevoke key

Stops a publish key working. The row stays so the ledger can still name what published with it. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postRotate sink secret

Mints a new signing secret for a webhook sink and returns it **exactly once**. Anything already deployed against the old secret stops verifying the moment this returns. Only a webhook sink has one. Needs manage on the topic. **Required scopes:** `notify:topics:edit`

postSet app enabled

Onboards a product to notify, or takes it off. Needs admin of the team that owns the application, or `notify:platform:admin` — the same rule as configuring its credentials, because it is the same question about the same product. **Display only**: it never affects whether that app may publish, for the same reason publishing an unregistered kind works. **Required scopes:** `notify:apps:edit`

postSubscribe

Creates or rewrites the caller's own subscription to a topic, with its narrowing: a priority floor, app, tag, kind and category filters, and which channels. Needs subscribe on the topic. A service account is refused — subscriptions are for people, and a service account has nowhere to be notified. **Required scopes:** `notify:topics:edit` — or `notify:subscriptions:edit` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice

postUnsubscribe

Removes the caller's own subscription to a topic. A directed delivery can recreate it as an implicit subscription later, so that there is always something to mute. **Required scopes:** `notify:topics:edit` — or `notify:subscriptions:edit` on a token a product obtained by RFC 8693 exchange to act for this person, in which case the call is confined to that product's own slice

postUpdate topic

Applies only the fields present; an absent field is left untouched. Needs manage on the topic. Setting `archived` hides the topic from the default listings without deleting anything. **Required scopes:** `notify:topics:edit`