Webhooks
Rotate a webhook secret
Makes a new signing secret and returns it, shown only here. For 24 hours the old secret signs too, as a second signature in webhook-signature, so you can deploy the new one without dropping events. Rotating again within those 24 hours drops the oldest.
Needs an API key with the generations:write scope.
post/v1/webhook_endpoints/{id}/rotate_secret
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/webhook_endpoints/{id}/rotate_secret
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Path parameters
idstring required
The endpoint's ID, we_....
Response
The endpoint, with its new signing secret.
Changes
No recorded changes to this operation across all 1 revision of this API.