Hi @Sajith
did you look into the Get pall endpoint?
This endpoint provides you the sequence of the call or as you said the different stages of the call.
It includes direction, call id, caller and calee information, as well as the numbers, device type, etc
This is a sample response body from that endpoint:
{
"id": "20211008-48c1dfd4-91ce-4df5-8495-7c9e33d10869",
"call_id": "7018317023722949162",
"connect_type": "internal",
"call_type": "general",
"direction": "inbound",
"international": false,
"hide_caller_id": true,
"end_to_end": false,
"caller_ext_id": "ATu63--9TjudZetpf4UuQg",
"caller_name": "Caller name",
"caller_did_number": "+12059300920",
"caller_ext_number": "101229",
"caller_email": "test@abc.com",
"caller_ext_type": "user",
"callee_ext_id": "ATu63--9TjudZetpf4UuQg",
"callee_name": "Callee name",
"callee_email": "test@abc.com",
"callee_did_number": "+12059300920",
"callee_ext_number": "101229",
"callee_ext_type": "user",
"department": "web-api1",
"cost_center": "cost-center1",
"site_id": "BpCTBMRARBefUrprildVqw",
"group_id": "California",
"site_name": "site name",
"start_time": "2021-10-08T16:12:04Z",
"answer_time": "2021-10-08T16:12:04Z",
"end_time": "2021-10-08T16:12:15Z",
"call_path": [
{
"id": "48c1dfd4-91ce-4df5-8495-7c9e33d10869",
"call_id": "7018317023722949162",
"connect_type": "internal",
"call_type": "general",
"direction": "inbound",
"hide_caller_id": true,
"end_to_end": false,
"caller_ext_id": "ATu63--9TjudZetpf4UuQg",
"caller_name": "Caller name",
"caller_email": "test@abc.com",
"caller_did_number": "+12059300920",
"caller_ext_number": "101229",
"caller_ext_type": "user",
"caller_number_type": "external_pstn",
"caller_device_type": "MAC_Client(6.0.2.33403)",
"caller_country_iso_code": "US",
"caller_country_code": "US",
"callee_ext_id": "ATu63--9TjudZetpf4UuQg",
"callee_name": "Callee name",
"callee_did_number": "+12059300920",
"callee_ext_number": "101229",
"callee_email": "test@abc.com",
"callee_ext_type": "user",
"callee_number_type": "external_pstn",
"callee_device_type": "MAC_Client(6.0.2.33403)",
"callee_country_iso_code": "US",
"callee_country_code": "US",
"client_code": "1234",
"department": "web-api1",
"cost_center": "cost-center1",
"site_id": "BpCTBMRARBefUrprildVqw",
"group_id": "California",
"site_name": "site name",
"start_time": "2021-10-08T16:12:04Z",
"answer_time": "2021-10-08T16:12:04Z",
"end_time": "2021-10-08T16:12:15Z",
"event": "outgoing",
"result": "answered",
"result_reason": "answered_by_other",
"device_private_ip": "",
"device_public_ip": "",
"operator_ext_number": "3456",
"operator_ext_id": "NN9rA4fZSsScB2YiCqw7Ig",
"operator_ext_type": "user",
"operator_name": "operator name",
"press_key": "3",
"segment": 0,
"node": 0,
"is_node": 0,
"recording_id": "c71b360f6e774e3aa101453117b7e1a7",
"recording_type": "automatic",
"hold_time": 20,
"waiting_time": 20,
"voicemail_id": "6cd2da01bcaa47f58e3250a575c5f2bf"
}
]
}