Calls
Create Call
Create and dispatch a call for an existing or newly created lead. Exactly one of lead_id or lead must be provided.
AuthorizationBearer <token>
API key authentication. Use format: Bearer kejue_...
In: header
lead_id?integer
ID of existing lead. Either lead_id OR lead object must be provided.
lead?
New lead details. Either lead_id OR lead object must be provided.
call
Response Body
application/json
application/json
curl -X POST "https://api.kejue.co/api/v1/calls" \ -H "Content-Type: application/json" \ -d '{ "call": { "assistant_id": 42 } }'{
"success": true,
"message": "Call enqueued",
"call": {
"to_phone_number": "+971585818224",
"lead_id": 47620,
"call_type": "outbound",
"assistant_id": 2,
"assistant_group_id": "grp_123",
"language": "english",
"origins": [
"string"
],
"first_message": "string",
"context": "string",
"campaign_id": "string",
"call_source": "string",
"auto_callback": false,
"phone_assignment_mode": "local",
"call_start_hour": 0,
"call_end_hour": 0,
"day_selection_mode": "all_days",
"allowed_days": [
0
],
"weekend_calls": false,
"max_callback_attempts": 0,
"callback_retry_schedule": [
0
]
}
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Empty
Empty
Empty
Last updated on

