PelekaPeleka Developers
API ReferenceWebhooks

Rotate a webhook's signing secret. The new secret is returned once, in this response only — the old one stops working immediately, so update your receiver right away.

POST
/api/v1/webhooks/{id}/rotate
X-API-Key<token>

In: header

Path Parameters

id*string

Webhook UUID

Response Body

application/json

curl -X POST "https://example.com/api/v1/webhooks/string/rotate"
{  "data": {    "secret": "whsec_1a2b3c4d5e6f7a8b9c0d"  }}