Webhooks
More ways to use this page
Create a signing secret
POST/v1/
TypeScript sendora
Python sendora
PHP $sendora->webhooks->createSecret(
Java sendora
Key sk_… a server key
Adds a second live secret to the webhook and answers its value once; it is never shown again. From then on every delivery carries one signature per live secret, the newest first, so the receiver can switch to the new secret and the old one can be deleted. A webhook holds at most two live secrets.
Parameters
idin pathstring (uuid)requiredThe webhook id.
Responses
Every field of a response is always present. A field that can be null says so in its type.
201The new secret, its value shown this once.
Example
{
"secretId": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"createdAt": "2026-09-20T12:00:00.000Z",
"secret": "whsec_0a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d"
}secretIdstring (uuid)createdAtstring (date-time)secretstringThe secret itself, shown this once.
Errors
Every error answers error, the code, and message, a sentence for a person. A code that adds fields is shown in full below the table.
| Code | Status | Meaning |
|---|---|---|
unauthorized | 401 | The key is missing, malformed or revoked. |
wrong_ | 403 | The key is of the other kind: a server key (sk_) where an account key (ak_) is needed, or the reverse. The message names the kind the operation takes. |
not_ | 403 | A connected app called an operation that no tool of the MCP server calls. An API key can. |
read_ | 403 | A connected app may only read here: the account is read only through a connection, and a live server takes changes only if the person allowed them when connecting. |
test_ | 403 | A connected app may create a secret, or do what cannot be undone, on a test server only. |
not_ | 404 | No such webhook of this server. |
secret_ | 409 | The webhook already holds two live secrets: one in use and one to roll to. Delete one before creating another. |
WWW-Authenticateheader on 401"Bearer"Always Bearer: send the key as Authorization: Bearer <key>.
secret_limit
Example
{
"error": "secret_limit",
"message": "The webhook may hold at most 2 live secrets; delete one before creating another.",
"max": 2
}maxintegerrequiredLive secrets a webhook may hold at once.