Sluby
REST APIWebhooks

Replace the signing secret of a webhook endpoint.

For a secret that leaked. The old secret stops at once: every request from now on, retries of earlier events included, is signed with the new one, which is returned only here.

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

For a secret that leaked. The old secret stops at once: every request from now on, retries of earlier events included, is signed with the new one, which is returned only here.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Sluby API key (sluby_...) sent as Authorization: Bearer <key>. Keys carry scopes: upload, read, manage.

Path Parameters

id*string

Endpoint id.

Response Body

The new secret.

application/json
  1. response
id*string
Formatuuid
secret*string

The new signing secret, shown once.

Example Request
curl -X POST 'https://sluby.example.com/api/v1/webhooks/string/rotate-secret'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "secret": "string"}