import requests
url = "https://api.diga.io/v1/call/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "dialing",
"type": "inbound",
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_date": "2023-11-07T05:31:56Z",
"identifier": "<string>",
"contact_type": "call"
},
"phone_register_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_date": "2023-11-07T05:31:56Z",
"recording_url": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"duration": 123,
"end_reason": "<string>"
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_page": 123,
"total_pages": 123
}Retrieve a paginated list of calls for the company. Supports filtering by status, date range, and other criteria. Includes recording URLs when available.
import requests
url = "https://api.diga.io/v1/call/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "dialing",
"type": "inbound",
"contact": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_date": "2023-11-07T05:31:56Z",
"identifier": "<string>",
"contact_type": "call"
},
"phone_register_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_date": "2023-11-07T05:31:56Z",
"recording_url": "<string>",
"start_time": "2023-11-07T05:31:56Z",
"end_time": "2023-11-07T05:31:56Z",
"duration": 123,
"end_reason": "<string>"
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_page": 123,
"total_pages": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
x >= 11 <= x <= 1000asc, desc dialing, in_progress, completed, failed, transferred, no_answer inbound, outbound