Get a specific call detail record
Query an individual call detail record using its session identifier or correlation data.
/openapi/V2.0.8/getOneCdrCommon request fields
The authentication object is required. Use the account credentials provided during onboarding; see the API overview. Request seq and userData are separate from authentication.seq.
| Field | Type | Required | Length / constraints | Description |
|---|---|---|---|---|
| seq | String | No | 0–20 | Message sequence number; currently not used by these request fields. |
| userData | String | No | 0–60 | Customer-defined correlation data; truncated beyond 60 characters. Use letters, digits and the documented ASCII punctuation. |
Query parameters
| Field | Type | Required | Length / constraints | Description |
|---|---|---|---|---|
| session | String | Conditional | — | System-generated CDR session. At least one of session or userData must be non-empty. |
| agent | String | No | 1–7 | Agent staff number. |
| caller | String | No | 1–30 | Calling number. |
| numberX | String | No | 1–30 | Virtual number (X number). |
| callee | String | No | 1–30 | Called number. |
| timeLengthMin | Int | No | — | Minimum call duration. |
| timeLengthMax | Int | No | — | Maximum call duration. |
| startTime | Int | No | Unix seconds | Start of creation-time filter. |
| endTime | Int | No | Unix seconds | End of creation-time filter. |
Request example
{
"authentication": {
"customer": "<CUSTOMER_ID>",
"timestamp": "<REQUEST_TIMESTAMP>",
"seq": "<UNIQUE_SEQUENCE>",
"digest": "<COMPUTED_DIGEST>"
},
"request": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"session": "<CALL_SESSION>",
"agent": "",
"caller": "",
"numberX": "",
"callee": ""
}
}Response envelope
The top-level result describes the request; data.response carries command-specific status and echoed correlation fields. logs may include debugging information when enabled.
| Field | Type | Description |
|---|---|---|
| result.error | String | Error code. |
| result.msg | String | Request result description. |
| data.seq | String | Message sequence number. |
| data.response | Object | Command-level response. |
| data.response.seq | String | Echoed request sequence. |
| data.response.userData | String | Echoed customer data. |
| data.response.result | Object | Command result; inspect error. |
CDR response
data.response.total contains the result count; data.response.cdr is the list of call records. The source uses timeLen, record_name and voiceSign in this endpoint.
| Field | Type | Description |
|---|---|---|
| key | String | CDR ID. |
| agent | String | Agent staff number. |
| startTime | String | Call start time. |
| ringTime | String | Ringing start time. |
| answerTime | String | Call answer time. |
| byeTime | String | Call end time. |
| caller | String | Calling number. |
| numberX | String | Virtual number (X number). |
| callee | String | Called number. |
| fee | String | Charge. |
| filename | String | Recording file reference. |
| result | String | 1 = answered; 2 = not answered; 3 = invalid/unassigned number. |
| area | String | Province / region. |
| city | String | City. |
| spName | String | Carrier. |
| keyPress | String | All keypad input, concatenated in order (e.g., 24). |
| callResult | String | Call analysis result. |
| typeResult | String | Result type. |
| errMsg | String | Error returned by the API route. |
| errMsgCN | String | Route error translated into Chinese. |
| trunkIndex | String | Trunk ID. |
| trunkType | String | 1 = SIP trunk; 2 = AG trunk. |
| trunkName | String | SIP trunk name or AG trunk username. |
| trunkPeerIP | String | SIP peer details; blank for AG trunk. |
| trunkUsername | String | Registered trunk username; blank for non-registered SIP or AG trunk. |
| releaseCause | String | Release cause code. |
| releasePart | String | Party that released the call. |
| record_name | String | Recording file name. |
| timeLen | String | Call duration. |
| voiceSign | String | Recording identifier. |
{
"result": {
"error": 0,
"msg": "Success"
},
"data": {
"seq": "<SEQUENCE>",
"response": {
"seq": "<REQUEST_SEQUENCE>",
"userData": "<REFERENCE>",
"result": {
"error": 0
},
"total": 1,
"cdr": [
{
"key": "",
"agent": "",
"startTime": "",
"ringTime": "",
"answerTime": "",
"byeTime": "",
"caller": "",
"numberX": "",
"callee": "",
"fee": "",
"filename": "",
"result": "",
"area": "",
"city": "",
"spName": "",
"keyPress": "",
"callResult": "",
"typeResult": "",
"errMsg": "",
"errMsgCN": "",
"trunkIndex": "",
"trunkType": "",
"trunkName": "",
"trunkPeerIP": "",
"trunkUsername": "",
"releaseCause": "",
"releasePart": "",
"record_name": "",
"timeLen": "",
"voiceSign": ""
}
]
}
},
"logs": null
}Recording access
Use the recording file reference from the CDR. Access requires the requesting IP to be allowlisted and the customer to be authorized. See Download or listen to recording.