Active Calls
API dùng để lấy danh sách các cuộc gọi theo thời gian thực.
curl -L -X GET 'https://{{base_url}}/v1/call' \
-H 'Authorization: Bearer {{token}}'
-H 'Content-Type: application/json'
Response trả về:
{
"data": [
{
"call_id": "01b7d166-b564-42ec-80a1-4ad343225934",
"context": "test.tel4vn.com",
"created_time": "2021-06-08 17:37:37",
"destination": "0899123456",
"direction": "outbound",
"ip": "1.2.3.4",
"source": "101",
"state": "CS_EXECUTE"
},
...
],
"total": 1
}
HTTP Request
GET https://{{base_url}}/v1/call