Skip to main content
POST
/
v1
/
webhooks
/
{id}
/
rotate-secret
Rotate webhook signing secret
curl --request POST \
  --url https://api.shelv.dev/v1/webhooks/{id}/rotate-secret \
  --header 'Authorization: Bearer <token>'
{
  "publicId": "<string>",
  "secret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Pattern: ^wh_[0-9a-f]{24}$

Response

New signing secret

publicId
string
required
Pattern: ^wh_[0-9a-f]{24}$
secret
string
required