Webhooks
Rotate endpoint secret
Generate a new signing secret. The old secret is immediately invalidated.
post/v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secret
Request
- Base URL: https://api.scrip.dev
- URL: https://api.scrip.dev/v1/webhook-endpoints/{webhook_endpoint_id}/rotate-secret
- Auth: HTTP bearer
Path parameters
webhook_endpoint_idstring uuid required
The webhook endpoint's id.
Headers
Idempotency-Keystring
A key you choose to make this request safe to retry: 1 to 255 printable ASCII characters. Send the same key with the same request to get the first response again, marked Idempotent-Replayed: true. Routes that return a secret once, and claim links, do not replay a response. Event ingest uses the key as the event's identity.
Response
Endpoint with new secret
Example response
{
"circuit_broken_until": "2027-12-31T23:59:59Z",
"created_at": "2027-01-15T10:30:00Z",
"description": "Production webhook receiver",
"enabled_events": [
"balance.credited",
"balance.debited"
],
"id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"rate_limited_until": "2027-12-31T23:59:59Z",
"secret": "whsec_3f9a1c7e5b2d84060e1a9c3d7f5b2e8a4c6d0f1b3a5e7c9d2f4b6a8e0c1d3f57",
"status": "ACTIVE",
"updated_at": "2027-01-15T10:30:00Z",
"url": "https://example.com/webhooks/scrip"
}Changes
No recorded changes to this operation across all 1 revision of this API.