Create a new webhook subscription for a specified event.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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 TimelinesAI Event Types documentation at https://app.timelines.ai/integrations/webhooks_v2/swagger (for example: message:sent:new, message:received:new).
"message:sent:new"
Destination HTTPS endpoint that TimelinesAI will call. Must be publicly accessible and respond with 2xx status within 5 seconds.
"http://www.example.com/api/hook"
Flag indicating whether the subscription is active. When false, deliveries are paused but the definition is kept.
true