Rewardly Docs
API ReferenceWebhooks

Rotate a webhook endpoint's secret

POST
/v1/webhook-endpoints/{id}/rotate-secret

Generates a new signing secret, returned once in this response. Deliveries signed with the old secret stop immediately, so update your handler first.

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/webhook-endpoints/string/rotate-secret"
{  "id": "string",  "secret": "string"}