> ## Documentation Index
> Fetch the complete documentation index at: https://octanist.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Lead Calls

> Get the tracked phone calls of a lead with GET /api/leads/{id}/calls: status, numbers, times, duration, summary and transcript of the 10 most recent calls.

Returns the phone calls that [call tracking](https://octanist.com/docs/incoming-integrations/call-tracking.md) linked to one lead. The 10 most recent calls are returned, newest first. A lead without calls returns an empty array.

## Path Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `id` | string | Yes | Octanist lead ID |

## Example Request

```bash theme={null}
curl -X GET \
  -H "X-API-KEY: your_api_key" \
  "https://octanist.com/api/leads/lead_abc123/calls"
```

## Example Response

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": "call_abc123",
      "status": "completed",
      "callerNumber": "+31612345678",
      "calledNumber": "+31852081234",
      "startedAt": "2026-01-15T10:30:00.000Z",
      "answeredAt": "2026-01-15T10:30:08.000Z",
      "endedAt": "2026-01-15T10:34:20.000Z",
      "durationSeconds": 252,
      "summary": "Caller asked for a quote for 20 licenses.",
      "transcript": "...",
      "createdAt": "2026-01-15T10:30:00.000Z"
    }
  ],
  "meta": {
    "requestId": "req_a1b2c3d4e5f6",
    "timestamp": "2026-03-10T12:00:00.000Z"
  }
}
```

## Response Fields

| Field | Type | Description |
| - | - | - |
| `id` | string | Call ID |
| `status` | string | `initiated`, `answered`, `transferred`, `completed`, `failed`, or `missed` |
| `callerNumber` | string | Number of the person who called |
| `calledNumber` | string | Tracking number the person dialed |
| `startedAt` | string \| null | When the call started (ISO 8601) |
| `answeredAt` | string \| null | When the call was answered |
| `endedAt` | string \| null | When the call ended |
| `durationSeconds` | integer \| null | Length of the call in seconds |
| `summary` | string \| null | Summary of the call, when one was made |
| `transcript` | string \| null | Transcript of the call, when one was made |
| `createdAt` | string | When Octanist recorded the call |

## Error Responses

| Status | Code | Description |
| - | - | - |
| 401 | `UNAUTHORIZED` | Missing or invalid API key |
| 403 | `LEAD_LOCKED` | The lead is over your plan's lead limit. See [Locked leads](https://octanist.com/docs/api-reference/endpoint/get-lead.md#locked-leads). |
| 404 | `NOT_FOUND` | No lead with this ID in your organization |
| 500 | `INTERNAL_ERROR` | Server error |


## OpenAPI

````yaml GET /api/leads/{id}/calls
openapi: 3.0.1
info:
  title: Octanist API
  description: >-
    The Octanist API allows you to create, update and read leads, run reports,
    read workspace settings, retrieve statistics, and access ad spend data.
  version: 2.5.0
  contact:
    name: Octanist Support
    url: https://octanist.com/docs
servers:
  - url: https://octanist.com
    description: Production server
security:
  - apiKeyAuth: []
paths:
  /api/leads/{id}/calls:
    get:
      tags:
        - Leads
      summary: Get Lead Calls
      description: The 10 most recent tracked phone calls of a lead, newest first.
      parameters:
        - name: id
          in: path
          required: true
          description: Octanist lead ID
          schema:
            type: string
            example: lead_abc123
      responses:
        '200':
          description: Calls
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LeadCall'
                  meta:
                    $ref: '#/components/schemas/Meta'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'LEAD_LOCKED: the lead is over the plan''s lead limit'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Lead not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    LeadCall:
      type: object
      properties:
        id:
          type: string
          example: call_abc123
        status:
          type: string
          enum:
            - initiated
            - answered
            - transferred
            - completed
            - failed
            - missed
          example: completed
        callerNumber:
          type: string
          description: Number of the person who called
          example: '+31612345678'
        calledNumber:
          type: string
          description: Tracking number the person dialed
          example: '+31852081234'
        startedAt:
          type: string
          format: date-time
          nullable: true
        answeredAt:
          type: string
          format: date-time
          nullable: true
        endedAt:
          type: string
          format: date-time
          nullable: true
        durationSeconds:
          type: integer
          nullable: true
          example: 252
        summary:
          type: string
          nullable: true
        transcript:
          type: string
          nullable: true
        createdAt:
          type: string
          format: date-time
    Meta:
      type: object
      properties:
        requestId:
          type: string
          example: req_a1b2c3d4e5f6
        timestamp:
          type: string
          format: date-time
          example: '2026-03-10T12:00:00.000Z'
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
              example: VALIDATION_ERROR
            message:
              type: string
              description: Human readable error message
              example: Human readable error message
            details:
              type: object
              description: Optional additional error details
        meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY
      description: API key for authentication

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.