POST/webhooks/roll

Roll a signing secret

Generate a new signing secret for a destination. The previous secret stops working immediately.

Required Attributes

endpoint_idstringrequired

The endpoint id

Example: "whe_20a18ce0"

Request
POST/webhooks/roll
curl --location 'https://api.ledgr.dev/v1/webhooks/roll' \
--header 'Authorization: {api_key}' \
--header 'Content-Type: application/json' \
--data '{
  "endpoint_id": "whe_20a18ce0"
}'
Response

The new secret

{
  "secret": "whsec_...",
  "status": "success"
}
Roll a signing secret - Ledgr | Padle