Skip to main content

Get call details

Retrieve the details of a specific phone call by its call UUID. The response includes full call metadata, cost breakdown, and agent information.

Path parameters

ParameterDescriptionExample
call_uuidThe UUID of the call detail recordCDR8b3e7a1f-6c94-4d52-ae17-5f2b9d4c8e63
curl -L 'https://api.p.2chat.io/open/voip/call/CDR8b3e7a1f-6c94-4d52-ae17-5f2b9d4c8e63' \
--header 'X-User-API-Key: your_api_key_here'

Response

The API will return the full call detail record (CDR) including agent information.

{
"success": true,
"cdr": {
"uuid": "CDR8b3e7a1f-6c94-4d52-ae17-5f2b9d4c8e63",
"account_uuid": "ACC4d6f2e8a-9b13-4c75-a8d1-6e3f7b5c2a94",
"callid": "r4kp7wvn2m8x5b3q9cfg",
"direction": "O",
"active": false,
"from": "USR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52",
"iso_country_code": "PY",
"status": "COMPLETED",
"is_whatsapp_call": false,
"is_sip_trunk_call": null,
"created_at": "2025-11-05T17:46:27Z",
"updated_at": "2025-11-05T17:46:53Z",
"to_number": "+595984153762",
"caller_id_uuid": "VCI6a2d8f4e-7c93-4b15-a3e8-1d5f9c7b2a46",
"caller_id_used": "+61298374152",
"duration": 3,
"recording_url": "https://2chat-user-data.s3.amazonaws.com/ACC4d6f2e8a-9b13-4c75-a8d1-6e3f7b5c2a94/calls/r4kp7wvn2m8x5b3q9cfg.mp3",
"start_time": "2025-11-05T17:46:29Z",
"end_time": "2025-11-05T17:46:32Z",
"agent_id": "USR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52",
"call_cost": {
"callid": "r4kp7wvn2m8x5b3q9cfg",
"forwarded": false,
"toll_free": false,
"start_dt": "2025-11-05T17:46:29Z",
"end_dt": "2025-11-05T17:46:33Z",
"duration": 4,
"call_price": 0.0594
},
"agent": {
"uuid": "USR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52",
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"profile_pic_url": "https://example.com/avatars/jd.png"
}
}
}

Response fields

FieldDescriptionExample values
uuidUnique identifier of the call detail recordCDR8b3e7a1f-6c94-4d52-ae17-5f2b9d4c8e63
callidUnique call session identifierr4kp7wvn2m8x5b3q9cfg
directionCall direction: O for outbound, I for inboundO
activeWhether the call is currently in progressfalse
fromUUID of the user or number that initiated the callUSR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52
to_numberDestination phone number in international format+595984153762
iso_country_codeTwo-letter country code of the destination numberPY
statusFinal status of the callCOMPLETED
is_whatsapp_callWhether the call was placed over WhatsAppfalse
is_sip_trunk_callWhether the call was placed over a SIP trunknull
caller_id_uuidUUID of the caller ID used for the callVCI6a2d8f4e-7c93-4b15-a3e8-1d5f9c7b2a46
caller_id_usedPhone number displayed to the recipient+61298374152
durationCall duration in seconds3
recording_urlURL to the call recording file (if available)https://.../.mp3
start_timeTimestamp when the call was answered2025-11-05T17:46:29Z
end_timeTimestamp when the call ended2025-11-05T17:46:32Z
agent_idUUID of the agent who handled the callUSR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52

Call cost fields

FieldDescriptionExample values
callidCall session identifier matching the parent recordr4kp7wvn2m8x5b3q9cfg
forwardedWhether the call was forwardedfalse
toll_freeWhether the call was to a toll-free numberfalse
start_dtBilling start timestamp2025-11-05T17:46:29Z
end_dtBilling end timestamp2025-11-05T17:46:33Z
durationBilled duration in seconds4
call_priceCost of the call in USD0.0594

Agent fields

FieldDescriptionExample values
uuidUnique identifier of the agentUSR5a8c3e7f-2d14-4b96-a7e3-9f1c6d4b8a52
first_nameAgent's first nameJane
last_nameAgent's last nameDoe
full_nameAgent's full display nameJane Doe
profile_pic_urlURL to the agent's profile picturehttps://example.com/avatars/jd.png