Saltar al contenido principal
GET
/
v1
/
log
/
call
/
{call_id}
Get logs for a call
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
}

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parámetros de ruta

call_id
string<uuid>
requerido

The call ID to get logs for

Parámetros de consulta

after
string<uuid> | null
before
string<uuid> | null
page
integer | null
Rango requerido: x >= 1
limit
integer
predeterminado:100
Rango requerido: 1 <= x <= 1000
order
enum<string>
predeterminado:desc
Opciones disponibles:
asc,
desc
category
enum<string> | null

Log category codes for event classification.

Opciones disponibles:
CALL_LIFECYCLE,
USER,
AGENT,
CALL_TOOLS,
INTEGRATION_TOOLS,
CONVERSATIONAL_PATHS,
TRANSFER,
METRICS,
SECURITY,
WEBHOOKS,
WORKFLOWS,
KNOWLEDGE
level
enum<string> | null

Log severity levels with numeric codes.

Opciones disponibles:
DEBUG,
INFO,
WARNING,
ERROR,
CRITICAL

Respuesta

Successful Response

data
CallLogResponse · object[]
requerido
has_more
boolean
requerido
first_id
string<uuid> | null
last_id
string<uuid> | null
current_page
integer | null
total_pages
integer | null