Webhooks
Rotate the signing secret
POST
Creates a new secret and answers with it once. For the next 24 hours every event carries two signatures, one per secret, so you can switch your receiver without missing events. Needs a key with the admin role.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
webhookId*stringThe endpoint, with its new secret.
application/json- response
data?curl -X POST 'https://api.eksis.io/v1/webhooks/string/rotate-secret' \ -H 'Authorization: Bearer eksis_sk_...'{ "data": { "id": "string", "url": "http://example.com", "description": "string", "events": [ "post.target.published" ], "status": "active", "disabledReason": "manual", "secretPrefix": "string", "consecutiveFailures": 0, "lastSuccessAt": "2019-08-24T14:15:22Z", "lastFailureAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "secret": "string" }}