Skip to main content
POST
/
webhooks
/
v1
/
endpoints
/
{id}
/
rotate_secret
Rotate webhook signing secret
curl --request POST \
  --url https://api.case.dev/webhooks/v1/endpoints/{id}/rotate_secret \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "previousSecretExpiresInSec": 1296000
}
'

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Path Parameters

id
string
required

Body

application/json
previousSecretExpiresInSec
integer

How long (seconds) the old secret continues to be accepted. 0 invalidates immediately. Default: 86400 (24h).

Required range: 0 <= x <= 2592000

Response

Secret rotated