Subscribe to an event (create webhook)
Subscribe to an event (create webhook)
Registers a webhook. Atlas will send an HTTP POST to hookUrl every time the chosen event fires for the campaign. The delivered body is a JSON array of event objects and contains no event-type field — the type is known only from which subscription fired, so register a distinct hookUrl per triggerName if one endpoint must serve multiple events.
Authentication
Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.
Request
ID of the campaign to subscribe to. Use ”*” to receive the event from every campaign.
Identifies the webhook integration. For direct API usage this is always custom.
Minutes of inactivity before a messaging conversation is considered complete. Only applicable to the message_session_completed trigger. Maximum 10080 (7 days).
Response
Identifier of the subscription (the registered hookUrl).
