APIWebhooks

Webhooks_rotate Secret

Rotate the signing secret. The previous secret co-signs deliveries for 24h. Returns the new secret once.

POST/webhooks/{webhook_id}/rotate-secret

Rotate the signing secret. The previous secret co-signs deliveries for 24h. Returns the new secret once.

Path Parameters

webhook_id*string
Formatuuid

Response Body

application/json

application/json

curl -X POST "https://example.com/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/rotate-secret"
{  "webhook": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "url": "string",    "events": [      "string"    ],    "status": "active",    "disabled_reason": "circuit_breaker",    "failing_since": "2019-08-24T14:15:22Z",    "last_delivery_status": "pending",    "last_delivery_at": "2019-08-24T14:15:22Z",    "format": "single",    "max_events": 0,    "has_custom_headers": true,    "header_keys": [      "string"    ],    "template": "string",    "condition": "string",    "destination": "string",    "var_keys": [      "string"    ],    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  },  "secret": "string"}