Skip to main content
POST
/
v1
/
webhooks
/
{webhookId}
/
rotate-secret
Rotate webhook secret
curl --request POST \
  --url https://api.ledger.so/v1/webhooks/{webhookId}/rotate-secret \
  --header 'Api-Key: <api-key>'
{
  "object": "webhook_secret",
  "secret": "<string>"
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

webhookId
string
required

The webhook endpoint ID

Response

New webhook secret

object
enum<string>
required
Available options:
webhook_secret
secret
string
required

The signing secret for verifying webhook payloads