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

# List calls

> Dial history, newest first. Defaults to the last 30 days. Recordings and transcripts are only returned by the single-call endpoint.



## OpenAPI

````yaml /openapi.json get /calls
openapi: 3.1.0
info:
  title: Leadey API
  version: 1.4.0
  description: >-
    The Leadey API gives you programmatic access to your workspace: leads,
    companies, contacts, campaigns, meetings, opportunities and calls, plus the
    reporting metrics behind the Cockpit.


    Every request is authenticated with an organization-scoped API key, and
    every response is JSON. Reads work with any key. Writes — creating leads,
    adding notes, logging calls, managing tasks — need a key with write access,
    and are attributed to the workspace member that key belongs to. See [Writing
    data](/guides/writing-data).
servers:
  - url: https://backend.leadey.ai/v1
    description: Production
  - url: http://localhost:3001/v1
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Account
    description: The organization behind the API key.
  - name: Leads
    description: People enrolled in your campaigns.
  - name: Notes
    description: >-
      Free-text notes on a lead. Notes appear in the lead's timeline and in the
      Cockpit.
  - name: Tasks
    description: Follow-ups and reminders, each assigned to a workspace member.
  - name: Campaigns
    description: Outreach sequences and their performance.
  - name: Companies
    description: Companies in your workspace.
  - name: Contacts
    description: The canonical person record behind your leads.
  - name: Meetings
    description: Bookings merged across Calendly, Leadey and connected calendars.
  - name: Opportunities
    description: Deals, their value, and the pipelines they sit in.
  - name: Pipelines
    description: Deal pipelines and the stages inside them.
  - name: Calls
    description: Dial history, recordings and transcripts.
  - name: Metrics
    description: >-
      Aggregated reporting — meetings booked, sit rate, dial activity and
      pipeline value.
  - name: Reference
    description: The vocabularies other endpoints return values from.
paths:
  /calls:
    get:
      tags:
        - Calls
      summary: List calls
      description: >-
        Dial history, newest first. Defaults to the last 30 days. Recordings and
        transcripts are only returned by the single-call endpoint.
      operationId: listCalls
      parameters:
        - $ref: '#/components/parameters/Page'
        - $ref: '#/components/parameters/PageSize'
        - $ref: '#/components/parameters/From'
        - $ref: '#/components/parameters/To'
        - name: leadId
          in: query
          description: Only calls with this lead.
          schema:
            type: string
        - name: campaignId
          in: query
          description: Only calls on leads in this campaign.
          schema:
            type: string
        - name: userId
          in: query
          description: Only calls placed by this user.
          schema:
            type: string
        - name: direction
          in: query
          description: Call direction.
          schema:
            type: string
            enum:
              - inbound
              - outbound
              - missed
        - name: disposition
          in: query
          description: How the attempt ended, e.g. `voicemail`.
          schema:
            type: string
        - name: outcome
          in: query
          description: Classified conversation result, e.g. `booked_meeting`.
          schema:
            type: string
        - name: minDuration
          in: query
          description: Minimum talk time in seconds.
          schema:
            type: integer
        - name: connected
          in: query
          description: Set `true` to return only calls with talk time.
          schema:
            type: string
            enum:
              - 'true'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Call'
                  meta:
                    $ref: '#/components/schemas/PageMeta'
              example:
                data:
                  - id: call_3Zm6yPdL
                    direction: inbound
                    fromNumber: '+442038079420'
                    toNumber: '+442071838750'
                    contactName: Priya Raman
                    companyName: Northwind Logistics
                    leadId: lead_8Kq2mXvR
                    campaignId: fnl_Q3OutboundUK
                    duration: 412
                    connected: true
                    disposition: voicemail
                    outcome: connected
                    userId: user_2pXn4Rk
                    userName: Sam Whitfield
                    calledAt: '2026-08-03T11:04:12.000Z'
                meta:
                  page: 1
                  pageSize: 25
                  totalCount: 134
                  totalPages: 6
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    Page:
      name: page
      in: query
      description: 1-based page number.
      schema:
        type: integer
        minimum: 1
        default: 1
    PageSize:
      name: pageSize
      in: query
      description: Items per page (max 100).
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 25
    From:
      name: from
      in: query
      description: Start of the window, ISO 8601. A window longer than 62 days is clamped.
      schema:
        type: string
        format: date-time
    To:
      name: to
      in: query
      description: End of the window, ISO 8601.
      schema:
        type: string
        format: date-time
  schemas:
    Call:
      type: object
      properties:
        id:
          type: string
        direction:
          type: string
          enum:
            - inbound
            - outbound
            - missed
        fromNumber:
          type: string
        toNumber:
          type: string
        contactName:
          type:
            - string
            - 'null'
        companyName:
          type:
            - string
            - 'null'
        leadId:
          type:
            - string
            - 'null'
        campaignId:
          type:
            - string
            - 'null'
        duration:
          type: integer
          description: Talk time in seconds. 0 means the call never connected.
        connected:
          type: boolean
          description: >-
            Derived from talk time — a `completed` call of 0 seconds reached
            nobody.
        disposition:
          type: string
          description: How the attempt ended.
          example: voicemail
        outcome:
          type:
            - string
            - 'null'
          description: Classified result of the conversation, where one was determined.
        userId:
          type:
            - string
            - 'null'
        userName:
          type:
            - string
            - 'null'
        calledAt:
          type:
            - string
            - 'null'
          format: date-time
      required:
        - id
        - direction
        - calledAt
    PageMeta:
      type: object
      properties:
        page:
          type: integer
          example: 1
        pageSize:
          type: integer
          example: 25
        totalCount:
          type: integer
          example: 134
        totalPages:
          type: integer
          example: 6
      required:
        - page
        - pageSize
        - totalCount
        - totalPages
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Human-readable error message.
            details:
              type:
                - object
                - array
                - string
                - 'null'
              description: Optional structured detail.
          required:
            - message
  responses:
    Unauthorized:
      description: The API key is missing, invalid, or revoked.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Invalid or revoked API key.
              details: null
    RateLimited:
      description: Too many requests. Retry after the period in the `Retry-After` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              message: Rate limit exceeded. Retry in 42s.
              details: null
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your API key, created in the Leadey dashboard under Settings → API Keys.
        Send it as `Authorization: Bearer leadey_sk_live_…`.

````