Returns call logs for Voice AI agents scoped to a account. Supports filtering by agent, contact, call type, action types, and date range (interpreted in the provided IANA timezone). Also supports sorting and 1-based pagination.
Autorización
Bearer token generado desde el portal Leadway. Ver Autenticación .
Version string
default: "2021-07-28"
required
Versión de la API.
Query parameters
Account identifier. Filters results to this account.
agentId string
default: "507f1f77bcf86cd799439011"
Agent identifier. When provided, returns logs for this agent only.
contactId string
default: "contact123,contact456"
Contact IDs (comma-separated) to filter by.
startDate number
default: "1679308800000"
Start date filter (Unix timestamp). Must be less than endDate. Both startDate and endDate must be provided together.
endDate number
default: "1679395199000"
End date filter (Unix timestamp). Must be greater than startDate. Both startDate and endDate must be provided together.
actionType string
default: "SMS,CALL_TRANSFER,WORKFLOW_TRIGGER"
Action type filter for call logs (comma-separated ACTION_TYPE values)
Field to sort by. Defaults to newest if omitted.
Sort direction. Applies only when sortBy is provided.
Respuestas
200 - Successfully retrieved call logs
total number
default: "150"
required
Total number of items
page number
default: "2"
required
Page number starting from 1
pageSize number
default: "10"
required
Number of items per page
Array of call logs id string
default: "507f1f77bcf86cd799439011"
required
Unique identifier for the call
contactId string
default: "507f1f77bcf86cd799439012"
Associated contact ID
agentId string
default: "507f1f77bcf86cd799439013"
required
Agent ID associated with the call
isAgentDeleted boolean
default: "False"
required
Whether the agent is deleted
fromNumber string
default: "+1234567890"
Caller phone number
createdAt string
default: "2024-01-15T10:30:00.000Z"
required
Timestamp when the call was created
duration number
default: "180"
required
Call duration in seconds
trialCall boolean
default: "False"
required
Whether this call was a trial call
Actions performed during the call. Note: The APPOINTMENT_BOOKING action will only be visible in executedCallActions from Sep 9th 2025. actionId string
default: "507f1f77bcf86cd799439015"
Action ID reference
actionType string
default: "SMS"
required
Action type Posibles valores: ‘CALL_TRANSFER’, ‘DATA_EXTRACTION’, ‘IN_CALL_DATA_EXTRACTION’, ‘WORKFLOW_TRIGGER’, ‘SMS’, ‘APPOINTMENT_BOOKING’, ‘CUSTOM_ACTION’, ‘KNOWLEDGE_BASE’
actionName string
default: "Send SMS Confirmation"
required
Action name
Action parameters - structure varies by actionType
executedAt string
default: "2024-01-15T10:32:00.000Z"
When the action was executed
triggerReceivedAt string
default: "2024-01-15T10:31:45.000Z"
When the trigger was received
Transcript translation details
Dynamic data extracted from the call based on agent configuration
messageId string
default: "507f1f77bcf86cd799439014"
Message identifier associated with the call
Ejemplo