import requests
url = "https://api.diga.io/v1/log/call/{call_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"level": "<string>",
"category": "<string>",
"event": "<string>",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace_id": "<string>",
"data": {}
}
],
"has_more": true,
"first_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_page": 123,
"total_pages": 123
}Retrieve external logs for a specific call. Returns customer-visible logs only.
import requests
url = "https://api.diga.io/v1/log/call/{call_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"level": "<string>",
"category": "<string>",
"event": "<string>",
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trace_id": "<string>",
"data": {}
}
],
"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.
The call ID to get logs for
x >= 11 <= x <= 1000asc, desc Log category codes for event classification.
CALL_LIFECYCLE, USER, AGENT, CALL_TOOLS, INTEGRATION_TOOLS, CONVERSATIONAL_PATHS, TRANSFER, METRICS, SECURITY, WEBHOOKS, WORKFLOWS, KNOWLEDGE Log severity levels with numeric codes.
DEBUG, INFO, WARNING, ERROR, CRITICAL