cURL
curl --request POST \ --url https://api.ledger.so/v1/webhooks/{webhookId}/rotate-secret \ --header 'Api-Key: <api-key>'
{ "object": "webhook_secret", "secret": "<string>" }
Rotate the signing secret for a webhook endpoint. Both old and new secrets will work for 24 hours, giving you time to update your server.
API key for authentication. Get your key from the Dashboard.
The webhook endpoint ID
New webhook secret
webhook_secret
The signing secret for verifying webhook payloads