Rotate a webhook signing secret

Generates and returns a new signing secret. The previous secret remains valid for a 24-hour rotation overlap.

POST
/v1/webhooks/{webhookId}/rotate-secret

Generates and returns a new signing secret. The previous secret remains valid for a 24-hour rotation overlap.

x-api-key<token>

In: header

Path Parameters

webhookId*string
Match^wep_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

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

Related