Add 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
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
1 <= length <= 321 <= length <= 191Capability is what a grant confers on a topic. Manage implies the other two: whoever can rewrite the grants can give themselves the rest.
"CAPABILITY_UNSPECIFIED" | "CAPABILITY_PUBLISH" | "CAPABILITY_SUBSCRIBE" | "CAPABILITY_MANAGE"Response Body
application/json
application/json
curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/AddGrant" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"grant": "map[capability:CAPABILITY_PUBLISH createdAt:2026-10-22T09:30:00Z createdBy:urn:xeonr:auth:uid:user:3 granteeUrn:urn:xeonr:auth:uid:service_account:57 id:gr_1e8c3f7a2d9b4e6c0a5f8b21 topicId:tp_3f9a1c7e2b8d4a6f0c5e9b12]"
}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.
Add sink POST
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`