Treat the URL as a credential
Anyone with the URL can post to the channel. Rotate it immediately if exposure is suspected.
从在频道中生成秘密 URL,到配置外部服务发送 JSON 消息的最短路径。
Open Incoming webhooks in the destination Briar channel. Organization owners and admins, plus the channel owner, can manage them.
Use a source-specific name such as “Deployment alerts” so the message author is recognizable in the channel.
The full URL is shown only at that moment. Save it in a secret manager, never in source, issues, chat, or logs.
向生成的 URL 发送 POST 请求。不需要额外的 Authorization 标头,完整 URL 就是凭证。
POSThttps://briar-api.wbai.workers.dev/hooks/channels/{webhook_id}/{secret}application/json{"text":"Production deployment completed."}Anyone with the URL can post to the channel. Rotate it immediately if exposure is suspected.
If an event can be retried, send Idempotency-Key and keep the same value for every attempt of the same logical event.
A new message returns 201. An event already received returns 200 with duplicate: true. Treat both as success.
The body is at most 64KiB, text is 1–10,000 characters, blocks contains at most 50 items, and each webhook accepts up to 60 requests per 60 seconds.