Skip to Content
Xeonr Developer Docs
API SpecificationTopics

Rotate sink secret

POST
/xeonr.notify.v1.TopicService/RotateSinkSecret

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

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
sinkId?string
Length1 <= length <= 32
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://notify.xeonr.io/xeonr.notify.v1.TopicService/RotateSinkSecret" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "sink": "map[apps:[xmb] categories:[requests] channel:CHANNEL_WEBHOOK createdAt:2026-10-22T09:30:00Z createdBy:urn:xeonr:auth:uid:user:3 hasSecret:true id:sk_8a2f6c1e9d4b7a3e0c5f2d64 kinds:[] label:Ops webhook minPriority:4 tags:[] target:https://hooks.example.com/notify/xmb-requests topicId:tp_3f9a1c7e2b8d4a6f0c5e9b12]",
  "secret": "whsec_EXAMPLE_ONLY_not_a_real_secret_000000000000"
}