Detail
curl --location 'https://{{base_url}}/v3/cdr/35a4bf10-d536-40a6-826f-7ff10ed43d94' \
--header 'Content-type: application/json' \
--header 'Authorization: Bearer {{token}}'
Response trả về:
{
"id": "35a4bf10-d536-40a6-826f-7ff10ed43d94",
"parent_id": "35a4bf10-d536-40a6-826f-7ff10ed43d94",
"sip_call_id": "3188d6eb-3755-123c-18b6-fa163e71cc82",
"cause": "USER_BUSY",
"duration": 20,
"direction": "outbound",
"recording_url": "",
"extension": "",
"from_number": "02873003586",
"to_number": "0775702222",
"receive_dest": "",
"time_started": "2023-03-07 13:36:12",
"time_answered": "",
"time_ended": "2023-03-07 13:36:32",
"time_ringging": "2023-03-07 13:36:12",
"status": "busy",
"billsec": 0,
"app": "autocall",
"press_key": "{}",
"fullname": "",
"email": "",
"username": "",
"sip_hangup_disposition": "recv_refuse",
"campaign_uuid": "fdccdbf2-bc4b-4a0f-a7ea-cb0239daaa7d",
"lead_uuid": "2f8b1c0f-da79-4dfb-959d-1b611cf0cd6a",
"rate": "",
"digits": "",
"note": "",
"customer_fullname": "",
"customer_email": "",
"demand_customer": "",
"interest_segment": "",
"additional": {
"data1": 1,
"miengiam": "Giảm 50% gốc",
"phone_number": "0775702222",
"sdt": "0981218888",
"ten": "Đỗ Thị Ngà"
},
"autocall_presskey_epoch": "",
"time_presskey": "",
"presskey_delay": 0,
"autocall_recording_url": ""
}
API dùng để lấy một cdr cụ thể. Id có thể id của CDR hoặc sip_call_id trong bản tin
HTTP Request
GET https://{{base_url}}/v3/cdr/{{id}}
URL Parameters
Parameter | Description |
---|---|
id | Id của CDR hoặc sip_call_id trong bản tin |
Get CDR by Ref ID
curl --location 'https://{{base_url}}/v3/autocall/log/ABC123/ref_id' \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json'
Response trả về:
{
"id": "d6142fb6-6b3a-48fb-bd21-30f83ccb28c9",
"parent_id": "d6142fb6-6b3a-48fb-bd21-30f83ccb28c9",
"sip_call_id": "f3c8f4e8-3737-123c-fc9b-fa163e71cc82",
"cause": "NORMAL_CLEARING",
"duration": 6,
"direction": "outbound",
"recording_url": "",
"extension": "",
"from_number": "02873003586",
"to_number": "0332665711",
"receive_dest": "",
"time_started": "2023-03-07 10:06:53",
"time_answered": "2023-03-07 10:06:58",
"time_ended": "2023-03-07 10:06:59",
"time_ringging": "2023-03-07 10:06:53",
"status": "answered",
"billsec": 1,
"app": "autocall",
"press_key": "{}",
"fullname": "",
"email": "",
"username": "",
"sip_hangup_disposition": "recv_bye",
"campaign_uuid": "f77dfcf4-0759-4179-93cb-741f481a776e",
"lead_uuid": "1fc20735-a93f-4b9e-b348-e63b503a1ee1",
"rate": "",
"digits": "",
"note": "",
"customer_fullname": "",
"customer_email": "",
"demand_customer": "",
"interest_segment": "",
"additional": {
"campaign_uuid": "f77dfcf4-0759-4179-93cb-741f481a776e",
"code_otp": "LUAN001",
"phone_number": "0332665711",
"ref_id": "ABC123",
"template": "otp_script_01"
},
"autocall_presskey_epoch": "",
"time_presskey": "",
"presskey_delay": 0,
"autocall_recording_url": ""
}
API thực hiện cuộc gọi OTP
HTTP Request
GET https://{{base_url}}/v3/autocall/log/{{ref_id}}/ref_id
Query Parameters
Parameter | Description |
---|---|
ref_id | Ref ID - Mã tham chiếu của cuộc gọi (optional) |