The API reference moved here from eksis.io/developers.
Webhooks

Rotate the signing secret

POST
/v1/webhooks/{webhookId}/rotate-secret

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.

Authorization

headerAuthorizationBearer <token>

Send your key as Authorization: Bearer eksis_sk_....

Path Parameters

webhookId*string

Response Body

The endpoint, with its new secret.

application/json
  1. 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"  }}