> ## 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.

# Get Call Log

> Returns a call log by callId.

Returns a call log by callId.

```http theme={null}
GET https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs/{callId}
```

## Autorización

<ParamField header="Authorization" type="string" required>
  Bearer token generado desde el portal Leadway. Ver [Autenticación](/authentication).
</ParamField>

<ParamField header="Version" type="string" required default="2021-07-28">
  Versión de la API.
</ParamField>

## Path parameters

<ParamField path="callId" type="string" required default="507f1f77bcf86cd799439011">
  Call ID
</ParamField>

## Query parameters

<ParamField query="locationId" type="string" required default="LOC123456789ABCDEF">
  Account ID
</ParamField>

## Respuestas

<Accordion title="200 - Successfully retrieved call log">
  <ResponseField name="id" type="string" required default="507f1f77bcf86cd799439011">
    Unique identifier for the call
  </ResponseField>

  <ResponseField name="contactId" type="string" default="507f1f77bcf86cd799439012">
    Associated contact ID
  </ResponseField>

  <ResponseField name="agentId" type="string" required default="507f1f77bcf86cd799439013">
    Agent ID associated with the call
  </ResponseField>

  <ResponseField name="isAgentDeleted" type="boolean" required default="False">
    Whether the agent is deleted
  </ResponseField>

  <ResponseField name="fromNumber" type="string" default="+1234567890">
    Caller phone number
  </ResponseField>

  <ResponseField name="createdAt" type="string" required default="2024-01-15T10:30:00.000Z">
    Timestamp when the call was created
  </ResponseField>

  <ResponseField name="duration" type="number" required default="180">
    Call duration in seconds
  </ResponseField>

  <ResponseField name="trialCall" type="boolean" required default="False">
    Whether this call was a trial call
  </ResponseField>

  <ResponseField name="executedCallActions" type="object[]" required>
    Actions performed during the call. Note: The APPOINTMENT\_BOOKING action will only be visible in executedCallActions from Sep 9th 2025.

    <Expandable title="cada item">
      <ResponseField name="actionId" type="string" default="507f1f77bcf86cd799439015">
        Action ID reference
      </ResponseField>

      <ResponseField name="actionType" type="string" required default="SMS">
        Action type Posibles valores: 'CALL\_TRANSFER', 'DATA\_EXTRACTION', 'IN\_CALL\_DATA\_EXTRACTION', 'WORKFLOW\_TRIGGER', 'SMS', 'APPOINTMENT\_BOOKING', 'CUSTOM\_ACTION', 'KNOWLEDGE\_BASE'
      </ResponseField>

      <ResponseField name="actionName" type="string" required default="Send SMS Confirmation">
        Action name
      </ResponseField>

      <ResponseField name="actionParameters" type="object">
        Action parameters - structure varies by actionType
      </ResponseField>

      <ResponseField name="executedAt" type="string" default="2024-01-15T10:32:00.000Z">
        When the action was executed
      </ResponseField>

      <ResponseField name="triggerReceivedAt" type="string" default="2024-01-15T10:31:45.000Z">
        When the trigger was received
      </ResponseField>
    </Expandable>
  </ResponseField>

  <ResponseField name="summary" type="string" required default="Customer called to inquire about product pricing and was transferred to sales team.">
    Call summary
  </ResponseField>

  <ResponseField name="transcript" type="string" required default="bot: Hello, how can I help you today? human: I would like to know about your pricing...">
    Call transcript
  </ResponseField>

  <ResponseField name="translation" type="object">
    Transcript translation details
  </ResponseField>

  <ResponseField name="extractedData" type="object">
    Dynamic data extracted from the call based on agent configuration
  </ResponseField>

  <ResponseField name="messageId" type="string" default="507f1f77bcf86cd799439014">
    Message identifier associated with the call
  </ResponseField>

  ```json theme={null}
  {
    "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"
      },
      {
        "actionId": "507f1f77bcf86cd799439017",
        "actionType": "DATA_EXTRACTION",
        "actionName": "Extract Phone Number",
    // truncado: 124 lineas mas
  }
  ```
</Accordion>

<Accordion title="400 - Bad Request">
  ```json theme={null}
  {}
  ```
</Accordion>

<Accordion title="401 - Unauthorized">
  ```json theme={null}
  {}
  ```
</Accordion>

## Ejemplo

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET 'https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs/YOUR_callId' \
    -H 'Authorization: Bearer YOUR_TOKEN' \
    -H 'Version: 2021-07-28'
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs/YOUR_callId', {
    method: 'GET',
    headers: {
      Authorization: `Bearer ${process.env.LEADWAY_TOKEN}`,
      Version: '2021-07-28',
    },
  });
  const data = await response.json();
  ```

  ```python Python theme={null}
  import os, requests
  response = requests.request(
      'GET',
      'https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs/YOUR_callId',
      headers={
          'Authorization': f"Bearer {os.environ['LEADWAY_TOKEN']}",
          'Version': '2021-07-28',
      },
  )
  data = response.json()
  ```

  ```php PHP theme={null}
  <?php
  $ch = curl_init('https://services.leadconnectorhq.com/voice-ai/dashboard/call-logs/YOUR_callId');
  curl_setopt_array($ch, [
      CURLOPT_RETURNTRANSFER => true,
      CURLOPT_CUSTOMREQUEST => 'GET',
      CURLOPT_HTTPHEADER => [
          'Authorization: Bearer ' . getenv('LEADWAY_TOKEN'),
          'Version: 2021-07-28',
      ],
  ]);
  $data = json_decode(curl_exec($ch), true);
  ```
</CodeGroup>
