Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

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.
GET https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Query parameters

locationId
string
required
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.
callType
string
Call type filter.
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)
sortBy
string
Field to sort by. Defaults to newest if omitted.
sort
string
Sort direction. Applies only when sortBy is provided.
page
number
Page number (1-based).
pageSize
number
Page size (max 50).

Respuestas

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
callLogs
object[]
required
Array of call logs
{
  "total": 150,
  "page": 2,
  "pageSize": 10,
  "callLogs": [
    {
      "id": "507f1f77bcf86cd799439011",
      "contactId": "507f1f77bcf86cd799439012",
      "agentId": "507f1f77bcf86cd799439013",
      "isAgentDeleted": false,
      "fromNumber": "+1234567890",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "duration": 180,
      "trialCall": false,
      "executedCallActions": [
        {
          "actionId": "507f1f77bcf86cd799439015",
          "actionType": "CALL_TRANSFER",
          "actionName": "Transfer to Manager",
          "actionParameters": {
            "transferToType": "number",
            "transferToValue": "+12345678901",
            "triggerMessage": "Let me transfer you to a manager right away",
            "hearWhisperMessage": true
          },
          "executedAt": "2024-01-15T10:32:00.000Z",
          "triggerReceivedAt": "2024-01-15T10:31:45.000Z"
        },
        {
          "actionId": "507f1f77bcf86cd799439016",
          "actionType": "SMS",
          "actionName": "Send Confirmation SMS",
          "actionParameters": {
            "triggerPrompt": "When caller asks for booking confirmation",
            "triggerMessage": "I'll send you a confirmation text",
            "messageBody": "Your appointment is confirmed for tomorrow at 2 PM"
          },
          "executedAt": "2024-01-15T10:33:30.000Z",
          "triggerReceivedAt": "2024-01-15T10:33:15.000Z"
  // truncado: 131 lineas mas
}
{}
{}

Ejemplo

curl -X GET 'https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28'