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
httpsURL.http://localhostandhttp://127.0.0.1are accepted only by an Adeli running on your own machine; fromapp.tryadeli.com, expose a local receiver through an HTTPS tunnel instead. No credentials or fragment. eventsstring[]Required- One or more of
comment.created,message.postbackandmessage.created. platformstringinstagram,tiktok,facebookorwhatsapp: send only that platform's events. Omit it to receive every supported platform. Each platform sends only some events:comment.createdneedsinstagramortiktok,message.postbackneedsinstagram, andmessage.createdneedsinstagram,facebookorwhatsapp, 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").