Create Webhook
Create a new webhook subscription for a specified event.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
A JSON describing webhook.
A client‑defined subscription that instructs TimelinesAI to send an HTTP POST request to the specified url whenever the chosen event_type occurs in the workspace. The POST body is delivered as JSON and contains the event payload.
Event topic that will trigger the webhook. For the current list of supported values see the Webhooks events documentation (for example: message:sent:new, message:received:new).
message:new, message:sent:new, message:received:new, whatsapp:account:connected, whatsapp:account:disconnected, whatsapp:account:suspended, whatsapp:account:resumed, chat:new, chat:incoming:new, chat:outgoing:new, chat:responsible:assigned, chat:responsible:unassigned, call:incoming:missed, call:incoming:ended, call:outgoing:ended, message:reaction "message:sent:new"
Destination HTTPS endpoint that TimelinesAI will call. Must be publicly accessible and respond with 2xx status within 5 seconds. The URL must be a structurally valid http(s):// URL — TimelinesAI rejects URLs that contain characters or shapes that would prevent a standard HTTP client from dispatching to them (for example, unescaped + or = in the userinfo portion). The validator runs on POST /webhooks and PUT /webhooks/{id}; a malformed URL is rejected with 400 validation_error.
4096"http://www.example.com/api/hook"
Flag indicating whether the subscription is active. When false, deliveries are paused but the definition is kept.
true

