Documentation menu
Webhooks

Create webhook

Register a URL for events and get its signing secret, once.

POSThttps://app.tryadeli.com/api/v1/webhooks
AuthorizationBearer <API key>How keys work

Register a URL for a profile's events. The response holds the signing secret, the only time it is shown: store it, and use it to verify every delivery.

Body

profileIduuidRequired
The profile whose accounts' events to send.
urlstringRequired
An https URL. http://localhost and http://127.0.0.1 are accepted only by an Adeli running on your own machine; from app.tryadeli.com, expose a local receiver through an HTTPS tunnel instead. No credentials or fragment.
eventsstring[]Required
One or more of comment.created, message.postback and message.created.
platformstring
instagram, tiktok, facebook or whatsapp: send only that platform's events. Omit it to receive every supported platform. Each platform sends only some events: comment.created needs instagram or tiktok, message.postback needs instagram, and message.created needs instagram, facebook or whatsapp, or no platform.

Returns 201 with { webhook, secret }. webhook.platform is the platform you passed, or null for every platform.

Errors — 401 unauthorized, 400 invalid_request, 404 profile_not_found, 422 url_not_reachable (a loopback URL Adeli cannot reach from where it runs), 422 unsupported_for_platform (an event the platform does not send, such as message.postback or message.created with platform: "tiktok").