Skip to main content

Webhook: Text Sent

URL path: /text-sent/ This webhook is sent whenever the system sends a text to the lead. The webhook uses Authorization Header and Authorization Token values for authentication to protect your data.…

NCOL Support
Updated by NCOL Support

URL path: /text-sent/

This webhook is sent whenever the system sends a text to the lead.

The webhook uses Authorization Header and Authorization Token values for authentication to protect your data. Please contact 2X to configure these.

The object sent by the webhook uses the following structure:

{
"agent_key": "ABC123",
"record_phone_number": "9876543210",
"record_first_name": "John",
"record_last_name": "Doe",
"record_zip_code": "55555",
"record_timezone": "UTC-7",
"meta": { "lead_id": "123" },
"type": "pre-call",
"workflow_key": "AABBCC",
"workflow_day": 1,
"workflow_call": 1,
"workflow_end": true,
"message": "Hello, this is our pricing information..."
}

Field Explanations

  • agent_key: The unique key for the most recent agent used with this phone number.
  • record_phone_number, record_zip_code, record_first_name, record_last_name, record_timezone, meta: The record information associated with the phone number.
  • type: The type of message sent: pre-call, post-voicemail or scheduled.
  • workflow_key: The unique key used to identify the workflow that the record is in.
  • workflow_day: The current day number of the workflow schedule of the record.
  • workflow_call: The current call number (of the day, eg: Day 3, Call 1) of the workflow schedule of the record.
  • workflow_end: This field is included when the record has no additional steps defined in the 2X workflow table. It signifies the termination of the current workflow process.
  • message: The message text sent to the lead.

How did we do?

Webhook: Inbound Text Classification

Webhook: Text Opt-out

Contact