Skip to Content
Xeonr Developer Docs
API SpecificationTopics

Subscribe

POST
/xeonr.notify.v1.TopicService/Subscribe

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

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

topicId?string
Length1 <= length <= 32
muted?boolean

validate:skip a bool has no bounds

minPriority?integer
Formatint32
Range0 <= value <= 5
apps?array<>
Itemsitems <= 32
tags?array<>
Itemsitems <= 32
channels?array<>

Empty means in-app and web push.

Itemsitems <= 8
kinds?array<>

Narrow to part of the publishing app's catalogue: exact event kinds, or whole categories. Empty is every kind. This is what makes a firehose topic usable — the publisher stays verbose and the subscriber narrows.

Itemsitems <= 64
categories?array<>
Itemsitems <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/Subscribe" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "subscription": "map[apps:[xmb] categories:[requests] channels:[CHANNEL_IN_APP CHANNEL_NATIVE_PUSH] createdAt:2026-09-14T08:00:00Z id:sb_5c9e2a7f1d4b8e3a0f6c2d19 implicit:false kinds:[] minPriority:3 muted:false subject:urn:xeonr:auth:uid:user:3 tags:[] topicId:tp_3f9a1c7e2b8d4a6f0c5e9b12 updatedAt:2026-10-22T09:30:00Z]"
}