import requests
url = "https://api.diga.io/v1/call/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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>"
}Retrieve detailed information about a specific call including transcription summary, duration, cost, and recording URL if available.
import requests
url = "https://api.diga.io/v1/call/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier for the call
Successful Response
The unique identifier for the call
The unique identifier for the agent that handled the call
The unique identifier for the agent version that handled the call
The current status of the call
dialing, in_progress, completed, failed, transferred, no_answer The direction of the phone call
inbound, outbound Details of the contact that initiated or received the call
Mostrar atributos secundarios
The ID of the phone that was used to make or receive the call
The date and time when the call was created
The call recording URL.
The start time of the call
The end time of the call, if ended
The call duration in seconds. null if the call has not ended
The reason for call termination, if the call has ended