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

# List calls of a lead

> Returns call records attached to the given lead, with pagination metadata.

Notes:
- leadId is required and must be > 0; otherwise 404 LEAD_NOT_FOUND.
- Caller must have manage permission on the lead; otherwise 400 PERMISSION_DENIED.
- total in _metadata reflects the full result size before pagination.



## OpenAPI

````yaml openapi/openapi.json GET /v1.0/calls
openapi: 3.0.1
info:
  title: Lofty Service Open APIs
  description: Lofty service API description
  version: '1.0'
servers:
  - url: https://api.lofty.com
security: []
tags:
  - name: Tasks & Appointments V2
    description: >-
      Unified V2 API for lead tasks and appointments: list, create, read,
      update, finish, unfinish and delete. Tasks and appointments share the same
      taskId namespace; each endpoint resolves the target by ID regardless of
      underlying type.
  - name: Opportunity
    description: Operations about opportunity
  - name: Communication V2
    description: >-
      Fetch a single communication record (text / email / call) by its
      communication ID. Closes the webhook follow-up gap where only list-by-lead
      endpoints existed for text and email.
  - name: Vendor
    description: >-
      Team vendor directory: team members, sub-accounts and associated agents
      within the caller's team.
  - name: Lead Routing
    description: >-
      Lead routing configuration: read and update routing rules and default
      (supplement) rules per business type, and list the members and roles
      available for assignment.
  - name: Lead Activity V2 API
    description: >-
      Unified lead activity timeline: returns call, text and email activities
      for a lead in chronological order, including both auto-captured and
      agent-logged entries.
  - name: Tasks & Appointments
    description: >-
      Agent tasks and lead appointments. Supports listing a lead's appointments,
      listing / reading / creating / updating / deleting tasks on a lead.
  - name: Transactions V2
    description: V2 transaction APIs.
  - name: Lead Manual Log
    description: >-
      Agent-recorded log of communications that happened outside the Lofty CRM
      (calls placed on a personal line, emails sent from another mailbox, SMS
      sent from another device). Three channels are supported: logCall,
      logEmail, logText. Direction fields are recorded from the agent's point of
      view: 'outbound' = agent -> lead, 'inbound' = lead -> agent. Persistence
      is asynchronous: a POST returns the new entry's ID once the write is
      enqueued, and the entry becomes readable after a short delay.
  - name: Calls
    description: >-
      Calls placed or received through the Lofty dialer. Supports fetching a
      recording URL, retrieving a single call record, and listing calls attached
      to a lead.
  - name: Listing V2
    description: Listing search V2
  - name: Agent User
    description: >-
      Agent onboarding and team directory operations. Create a new agent under
      the caller's team and attach tags to existing agents.
  - name: Sales Agents V2
    description: >-
      Sales Agent (AI Assistant) management: read the caller's assistant and
      quota, query leads followed by AI, mute leads, manage working-pool
      membership and plan tasks, and update Sales Agent settings.
  - name: Calendar V2 API
    description: >-
      Unified V2 API for tasks and appointments on a lead: create, update,
      delete, finish, unfinish, query a paginated list, and find available
      meeting slots. Calendar IDs returned by POST /v2.0/calendar are composite
      strings of the form '<numericId>-task' or '<numericId>-appointment' and
      must be sent back as-is to the per-entry endpoints.
  - name: Lead System Logs
    description: Query a lead's system log.
  - name: Lead Transaction
    description: Operations about leads
  - name: Notifications V2
    description: Operations for sending notifications to agents
  - name: Notes
    description: >-
      Free-text notes attached to a lead. Supports create, list, get-by-id,
      update and delete. Notes may be pinned to surface them at the top of the
      lead's timeline. System-generated notes (automated activity) are included
      on the list endpoint only when explicitly requested.
  - name: Listing
    description: >-
      Listing data access: retrieve published listings for a site feed (XML),
      and search active / sold listings by agent, office or MLS id.
  - name: Intelligent Features
    description: AI-powered features for lead analysis and communication
  - name: Leads
    description: >-
      Lead lifecycle operations: create / read / update / delete a lead, search
      leads by stage, source, tag, create time or update time, place an inquiry
      or property on a lead, list lead activities, resolve assignee by lead
      info, and handle Brokermint contact callbacks.
  - name: Members
    description: >-
      Team member directory: look up members by user ID, by account (email), or
      list all members of the caller's team. Also supports retrieving the
      current user's profile.
  - name: Team Features
    description: >-
      Team-scoped metadata: lead tags, custom fields, and lead ponds. Supports
      listing existing entries, adding a new custom field, and retrieving a
      specific lead pond.
  - name: Agent Organization
    description: >-
      Team organizational structure: read the caller's organization info, manage
      company and office records, and list permission profiles available to the
      team.
  - name: Communication
    description: >-
      Lead communication history and outbound messaging: list call / email /
      text history for a lead, search communications for an agent, and send SMS
      or email to a lead.
  - name: Webhooks
    description: >
      Use webhooks to be notified about events that happen in a lofty account.


      Supported webhook event types (listId):


      | listId | Event Type | Description |

      |--------|-----------|-------------|

      | 1 | Agent Info | Agent created or updated |

      | 2 | Lead Info | Lead created, updated, or deleted |

      | 3 | Lead Activity | Lead site activity (e.g. SiteBrowse, SiteFavorite,
      SiteSearch) |

      | 4 | Listing Alert | Listing alert changed |

      | 5 | Transaction | Transaction created, updated, or deleted |

      | 6 | Call | Call event (MANUAL and LOGGED only, excludes AUTO) |

      | 7 | Email | Email event (MANUAL and LOGGED only, excludes AUTO) |

      | 8 | Text | Text message event (MANUAL and LOGGED only, excludes AUTO) |

      | 9 | Note | Note created, updated, or deleted |

      | 10 | Task | Task created, updated, finished, or deleted |

      | 11 | Appointment | Appointment created, updated, finished, or deleted |

      | 12 | Pipeline Change | Lead pipeline stage changed |


      ### Notification Recipient Rules


      Here "team" means the entire Lofty client account (the organization), not
      the Lofty "Team add-on" product.


      Which subscribed users receive a callback depends on the subscription's
      delivery mode (`permissionMode`). In both modes, only users in the lead's
      account (team) who have subscribed to the event type are considered.


      **Assignment-based delivery — `permissionMode: 0` (default)**


      A subscriber receives the callback only for leads assigned to them or that
      they administer:

      - If the lead is a **hidden lead**, only the **assigned agent** receives
      the notification.

      - Otherwise, the subscriber receives it if they are the **assigned agent**
      of the lead, or a **Company Owner** or **Company Admin**.

      - All other subscribers do **not** receive the notification.


      **Ownership-based delivery — `permissionMode: 1`**


      A subscriber receives the callback for any lead they manage, regardless of
      who it is assigned to:

      - Every assignment-based case above still applies (assigned agent, Company
      Owner / Company Admin).

      - In addition, the subscriber receives the callback for any lead within
      their **ownership scope** — a lead owned by their **team** or **office**,
      or **personally owned** by them — even if it is assigned to someone else.

      - Hidden leads are still delivered only to users who manage them.


      Ownership-based mode is intended for team/account-level integrations that
      must cover every lead in their scope, not only assigned leads. Set
      `permissionMode` when creating the subscription (POST /v1.0/webhook); it
      defaults to `0`, so existing subscriptions are unaffected.


      ### Delivery Timing


      Webhooks are typically delivered within **1 minute** of the event being
      triggered. During periods of high traffic, delivery may be delayed, but
      will always be sent within **5 minutes**.


      For detailed callback payload structures, see [Webhook Event
      Payloads](/concepts/webhooks#event-payloads).
paths:
  /v1.0/calls:
    get:
      tags:
        - Calls
      summary: List calls of a lead
      description: >-
        Returns call records attached to the given lead, with pagination
        metadata.


        Notes:

        - leadId is required and must be > 0; otherwise 404 LEAD_NOT_FOUND.

        - Caller must have manage permission on the lead; otherwise 400
        PERMISSION_DENIED.

        - total in _metadata reflects the full result size before pagination.
      operationId: getList
      parameters:
        - name: limit
          in: query
          description: Number of results to return per page.
          required: false
          schema:
            minimum: 1
            type: integer
            format: int32
            default: 10
          example: 10
        - name: offset
          in: query
          description: Zero-based index of the first entry to return.
          required: false
          schema:
            minimum: 0
            type: integer
            format: int32
            default: 0
          example: 0
        - name: leadId
          in: query
          description: ID of the lead whose calls to return.
          required: true
          schema:
            minimum: 1
            type: integer
            format: int64
          example: 100001
        - name: Authorization
          in: header
          description: Bearer [access_token]
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Page of call records with pagination metadata.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallListResponseV1'
        '400':
          description: Caller has no access to the lead (20017 PERMISSION_DENIED).
          content:
            application/json:
              schema:
                type: string
        '401':
          description: Missing or invalid authentication token.
          content:
            application/json:
              schema:
                type: string
        '404':
          description: leadId is missing, <= 0, or does not exist (20006 LEAD_NOT_FOUND).
          content:
            application/json:
              schema:
                type: string
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                type: string
components:
  schemas:
    CallListResponseV1:
      type: object
      properties:
        get_metadata:
          $ref: '#/components/schemas/MetaData'
        calls:
          type: array
          description: Call records on this page.
          items:
            $ref: '#/components/schemas/CallResponse'
      description: >-
        Response for GET /v1.0/calls: a page of call records with pagination
        metadata.
    MetaData:
      type: object
      properties:
        collection:
          type: string
          description: The element of the array
          example: note
        limit:
          type: integer
          description: Quantitative limitation of responded elements
          format: int32
          example: 10
        offset:
          type: integer
          description: Start index of the responded elements
          format: int64
          example: 0
        total:
          type: integer
          description: The sum of retrieved elements
          format: int64
          example: 50
        scrollId:
          type: string
          description: >-
            Scroll ID for the search. You can then use the scroll ID to retrieve
            the next batch of results for the request.
      description: Pagination metadata (offset, limit, total, collection).
    CallResponse:
      type: object
      properties:
        id:
          type: integer
          description: ID of the call.
          format: int64
          example: 563172647619608
        dialerCallRecordId:
          type: integer
          description: Internal dialer call record ID.
          format: int64
          example: 400000012345
        userId:
          type: integer
          description: User ID of the agent on the call.
          format: int64
          example: 100234
        userPhoneNumber:
          type: string
          description: Phone number used by the agent.
          example: '+14155550100'
        leadId:
          type: integer
          description: ID of the lead on the call.
          format: int64
          example: 100001
        leadPhoneNumber:
          type: string
          description: Phone number of the lead.
          example: '+14155550199'
        direction:
          type: string
          description: Direction of the call from the agent's point of view.
          example: Outbound
          enum:
            - Outbound
            - Inbound
        status:
          type: string
          description: Final call status.
          example: Completed
          enum:
            - Completed
            - Missed
            - Failed
            - Busy
            - NoAnswer
            - VoiceMail
        startTime:
          type: string
          description: Start time of the call, formatted as 'yyyy-MM-dd HH:mm:ss' in UTC.
          example: '2026-04-22 10:15:00'
        endTime:
          type: string
          description: End time of the call, formatted as 'yyyy-MM-dd HH:mm:ss' in UTC.
          example: '2026-04-22 10:18:45'
        duration:
          type: integer
          description: Call duration in seconds.
          format: int32
          example: 225
        callingOutcome:
          type: string
          description: Outcome tag assigned by the agent.
          example: Talked
          enum:
            - Talked
            - VoiceMessage
            - NoAnswer
            - BadNumber
            - DNCNumber
            - DNCContact
        rateScore:
          type: integer
          description: Agent's subjective rating of the call, 0-5.
          format: int32
          example: 4
        recordingSwitch:
          type: boolean
          description: Whether the call was recorded.
          example: true
        showUserNumber:
          type: string
          description: Phone number displayed to the lead (caller ID).
          example: '+14155550100'
        createTime:
          type: string
          description: >-
            Creation time of the call record, formatted as 'yyyy-MM-dd HH:mm:ss'
            in UTC.
          example: '2026-04-22 10:15:00'
        updateTime:
          type: string
          description: >-
            Last-updated time of the call record, formatted as 'yyyy-MM-dd
            HH:mm:ss' in UTC.
          example: '2026-04-22 10:18:45'
        note:
          type: string
          description: Free-text note entered by the agent for the call.
          example: Discussed pre-approval timeline.
        isMachineAnswered:
          type: boolean
          description: Whether the call was answered by a voicemail / answering machine.
          example: false
        price:
          type: number
          description: Cost of the call in USD.
          format: double
          example: 0.02
        agentId:
          type: integer
          description: User ID of the related agent.
          format: int64
          example: 100234
        elapsedTime:
          type: string
          description: Time from dialing to connection, formatted as 'mm:ss' or similar.
          example: '00:08'
      description: Call record.

````