Skip to main content
WEBHOOK
Surge sends call_flow_event.created when a live call flow reaches a send_event node. The data.name field contains the event name configured on that node. The payload includes the call, the published call flow version, and the metadata configured on the node. The data.inputs object contains the latest matched input for each menu node, keyed by node ID. Use data.name to select the action in your handler. Use the call and call flow IDs to find the related records in your application.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
account_id
string
required

The ID of the account in which this event occurred

data
object
required

The data associated with the event

timestamp
string<date-time>
required

The timestamp when this event occurred, in ISO8601 format

type
string
required

The type of the event. Always call_flow_event.created for this event.

Allowed value: "call_flow_event.created"

Response

200

Return a 200 status to indicate that the data was received successfully