Skip to Content
Xeonr Developer Docs
API SpecificationTopics

Create topic

POST
/xeonr.notify.v1.TopicService/CreateTopic

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
AuthorizationBearer <token>

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

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

ownerUrn?string

Defaults to the caller.

Lengthlength <= 191
name?string
Length1 <= length <= 191
displayName?string
Lengthlength <= 191
appSlug?string
Lengthlength <= 64
publicSubscribe?boolean

validate:skip a bool has no bounds

retentionHours?integer

Defaults to 72.

Formatint32
Range0 <= value <= 2160
subscribe?boolean

Subscribe the caller immediately; the usual thing for a personal topic. validate:skip a bool has no bounds

defaultChannels?array<>

Channels a directed delivery uses for a recipient with no subscription. Empty means in-app only.

Itemsitems <= 8
[key: string]?never

Response 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]"
}