Skip to Content
SendlySendly
API ReferenceWebhooks

Rotate the webhook signing secret

POST
/api/webhooks/{id}/rotate-secret

Generate a new shared secret. Returns the new plaintext secret exactly once.

Requires the webhooks:write scope — Create, edit, and delete your webhook endpoints.

headerAuthorizationBearer <API Key>

API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.

id*string
Formatuuid

Response Body

Secret rotated

application/json
  1. response

Response from POST /api/webhooks/{id}/rotate-secret — returns the new plaintext once.

success*true
Value intrue
data*
Example Request
curl -X POST 'https://api.sendly.now/api/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret'
Example Response
{  "success": true,  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "secret": "string"  }}