Webhooks
Create a webhook endpoint
POST
eksis checks that the address is https and reaches the public internet, then answers with the signing secret. The secret is shown only here. Needs a key with the admin role.
header
AuthorizationBearer <token>Send your key as Authorization: Bearer eksis_sk_....
application/json- body
url*stringFormat
uriLength
length <= 2048description?|Length
length <= 120events*array<>The events to receive. New event types are never added to an endpoint on their own.
Items
1 <= itemsThe endpoint, with its secret.
application/json- response
data?curl -X POST 'https://api.eksis.io/v1/webhooks' \ -H 'Authorization: Bearer eksis_sk_...' \ -H 'Content-Type: application/json' \ -d '{ "url": "http://example.com", "events": [ "post.target.published" ]}'{ "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" }}