POST /v1/webhooks/secret
Returns the signing secret for one endpoint URL in this project, creating it on first use. Call it when you set up your receiver; the same URL always gets the same secret until you rotate it. URLs are compared after lowercasing the scheme and host and removing a default port.

Authentication

Bearer Token (b3os_sk_ API key or b3os_pat_ token) API Key (cookie: __Host-b3os_session)

Request Body required

application/json
url string (uri) REQUIRED

Responses

200 The secret.
application/json
object string REQUIRED
Enum: webhook_secret
url string (uri) REQUIRED
The normalized endpoint URL.
secret string REQUIRED
previous_valid_until string (date-time) | null REQUIRED
Until when the previous secret still signs deliveries, after a rotation.
created_at string (date-time) REQUIRED
400 The request failed validation (`invalid_request`, `invalid_url`).
401 Missing, malformed, expired or revoked credentials (`unauthorized`).
403 Authenticated but not allowed (`forbidden`, `egress_denied`).
413 The request body exceeds this operation's limit.
415 The Content-Type is not accepted by this operation.
422 The URL is not https, too long, or refused by the egress guard (`invalid_webhook_url`).
429 A rate, concurrency or quota limit applies (`rate_limited`, `concurrency_limited`, `quota_exceeded`).
500 Something failed inside B3OS (`internal`). Retry with backoff.
503 The node or the product is not available right now (`node_unavailable`, `product_unavailable`, `capacity_unavailable`).
curl -X POST 'https://beta-api.b3os.org/v1/webhooks/secret' \  -H 'Authorization: Bearer YOUR_API_TOKEN' \  -H 'Content-Type: application/json' \  -d '{  "url": "https://example.com/hooks/b3os"}'
const response = await fetch('https://beta-api.b3os.org/v1/webhooks/secret', {  method: 'POST',  headers: {      "Authorization": "Bearer YOUR_API_TOKEN",      "Content-Type": "application/json"  },  body: JSON.stringify({    "url": "https://example.com/hooks/b3os"  })});const data = await response.json();console.log(data);
import requestsheaders = {    'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.post('https://beta-api.b3os.org/v1/webhooks/secret', headers=headers, json={  "url": "https://example.com/hooks/b3os"})print(response.json())
200 Response
{  "object": "webhook_secret",  "url": "https://example.com/hooks/b3os",  "secret": "whsec_ex4mple7ex4mple7ex4mple7ex4mple7",  "previous_valid_until": null,  "created_at": "2026-10-25T20:20:00.000Z"}
Ask a question... ⌘I