Create 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
Authorization
BearerAuth An access token from Xeonr Auth, presented as
Authorization: Bearer <token>. Its audience must include
https://notify.xeonr.io, and it must carry the scope the method
lists.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
Defaults to the caller.
length <= 1911 <= length <= 191length <= 191length <= 64validate:skip a bool has no bounds
Defaults to 72.
int320 <= value <= 2160Subscribe the caller immediately; the usual thing for a personal topic. validate:skip a bool has no bounds
Channels a directed delivery uses for a recipient with no subscription. Empty means in-app only.
items <= 8Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/CreateTopic" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"topic": "map[appSlug:xmb createdAt:2026-09-14T08:00:00Z createdBy:urn:xeonr:auth:uid:user:3 defaultChannels:[CHANNEL_IN_APP CHANNEL_EMAIL] displayName:XMB requests id:tp_3f9a1c7e2b8d4a6f0c5e9b12 lastMessageAt:2026-10-22T09:30:00Z messageCount:128 myCaps:map[manage:true publish:true subscribe:true] name:xmb/requests/u-3 ownerLabel:core ownerUrn:urn:xeonr:auth:team:0f6b5f8c-2d4e-4a7b-9c1d-3e5f7a9b1c2d publicSubscribe:false retentionHours:72 subscribed:true subscriberCount:4 updatedAt:2026-10-22T09:30:00Z]"
}Create key POST
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`
Delete topic POST
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`