Skip to main content

API: Send Sample Postcall Webhook

To send a sample post-call webhook post to your CRM for testing, send a POST request to https://system.2xsolutions.ai/api/workflows/sample-postcall-webhook/. The payload should be sent as follows: {…

NCOL Support
Updated by NCOL Support

To send a sample post-call webhook post to your CRM for testing, send a POST request toΒ https://system.2xsolutions.ai/api/workflows/sample-postcall-webhook/.

The payload should be sent as follows:

{
"api_key": "...",
"workflow_key": "A1B2C3"
}

The object posted to your CRM will include the following data, which is sample data and not actual data, with the exception of the workflow key.

{
"id": 7777,
"call": {
"end_reason": "hung_up",
"telnyx_call_control_id": "v3:X1a5L2jNq9PmR4Uw7oZ6gXYk3L8Ei0FtC2VuNp1LQdIT8Kb5rXZoA",
"answered": true,
"duration": 30,
"call_direction":"outbound"
},
"question_fields": {
"is_lead_available": "Yes"
},
"message_left": "N",
"agent_key": "84",
"record_phone_number": "1234567890",
"record_first_name": "John",
"record_last_name": "Doe",
"record_zip_code": 90210,
"record_timezone": "UTC-7",
"meta": {
"crm_name": "TEST CRM",
"lead_id": 12345,
"campaign_id": "TEST123",
"schedule_id": 67890
},
"workflow_key": "A5C310",
"workflow_day": 1,
"workflow_call": 1,
"workflow_end": false,
"transcript": [
{
"role": "Assistant",
"content": "Hi, is John available?"
},
{
"role": "User",
"content": "Yes, who is this?"
}
]
}

How did we do?

API: Call Opt Out

Webhook: Post-Call

Contact