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

# List or get calls

> List calls, newest first, or pass `id` for one.



## OpenAPI

````yaml /openapi.json get /api/v1/public/calls
openapi: 3.1.0
info:
  description: >-
    Customer-facing API for managing outreach, leads, conversations, voice
    agents, knowledge bases, analytics, and webhooks.
  title: Sendora Public API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.sendora.ai
security: []
tags:
  - description: Leads, lead lists, importing, enriching and finding new prospects.
    name: Leads
  - description: Build, run and measure outreach, and enroll leads.
    name: Campaigns
  - description: Read and send messages, and manage who must not be contacted.
    name: Conversations
  - description: >-
      Voice and chat agents, their tools, knowledge bases, voices and website
      widgets.
    name: Agents
  - description: >-
      Start calls, and manage phone numbers, SMS registration, sending accounts
      and email domains.
    name: Calls and numbers
  - description: Webhooks, jobs, analytics and the Copilot assistant.
    name: Platform
  - description: Manage client workspaces, plans and branding.
    name: Agency
paths:
  /api/v1/public/calls:
    get:
      tags:
        - Calls and numbers
      summary: List or get calls
      description: List calls, newest first, or pass `id` for one.
      operationId: list_or_get_calls_api_v1_public_calls_get
      parameters:
        - description: Return this one call with its transcript.
          in: query
          name: id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Return this one call with its transcript.
            title: Id
        - description: >-
            The lead's id: the `id` from List or get leads. It is also the last
            part of that page's address in the app.
          in: query
          name: lead_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Lead Id
        - description: >-
            The voice agent's id: the `id` from List or get agents. It is also
            the last part of that page's address in the app.
          in: query
          name: agent_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Agent Id
        - description: >-
            The campaign's id: the `id` from List or get campaigns. It is also
            the last part of that page's address in the app.
          in: query
          name: campaign_id
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Campaign Id
        - description: answered, voicemail, no-answer, busy or failed.
          in: query
          name: disposition
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: answered, voicemail, no-answer, busy or failed.
            title: Disposition
        - in: query
          name: page
          required: false
          schema:
            default: 1
            minimum: 1
            title: Page
            type: integer
        - in: query
          name: per_page
          required: false
          schema:
            default: 50
            maximum: 200
            minimum: 1
            title: Per Page
            type: integer
        - in: header
          name: X-API-Key
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Api-Key
        - in: header
          name: Authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      responses:
        '200':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PaginatedCalls'
                  - $ref: '#/components/schemas/CallDetail'
                title: Response List Or Get Calls Api V1 Public Calls Get
          description: Successful Response
        '401':
          description: The X-API-Key header is missing, invalid, expired, or revoked.
        '402':
          description: >-
            The workspace is suspended for billing, or the request would exceed
            a plan or usage limit.
        '403':
          description: >-
            The key is valid but lacks the required scope, or the workspace has
            no active plan, lacks the entitlement, or has this feature turned
            off or view-only.
        '410':
          description: The workspace behind this key has been deleted.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '500':
          description: >-
            An unexpected Sendora error occurred. Retry only if the operation is
            safe to repeat.
        '503':
          description: >-
            An entitlement or billing check is temporarily unavailable. Retry
            after the Retry-After interval.
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - label: cURL
          lang: bash
          source: >-
            curl -X GET 'https://api.sendora.ai/api/v1/public/calls' -H
            "X-API-Key: $SENDORA_API_KEY"
        - label: Python
          lang: python
          source: |-
            import requests

            url = 'https://api.sendora.ai/api/v1/public/calls'
            headers = {'X-API-Key': '$SENDORA_API_KEY'}
            response = requests.get(url, headers=headers)
            response.raise_for_status()
            print(response.json())
        - label: JavaScript
          lang: javascript
          source: >-
            const response = await
            fetch("https://api.sendora.ai/api/v1/public/calls", {
              method: "GET",
              headers: { 'X-API-Key': process.env.SENDORA_API_KEY },
            });

            if (!response.ok) throw new Error(await response.text());

            console.log(await response.json());
        - label: Go
          lang: go
          source: >-
            req, err := http.NewRequest("GET",
            "https://api.sendora.ai/api/v1/public/calls", nil)

            if err != nil { log.Fatal(err) }

            req.Header.Set("X-API-Key", os.Getenv("SENDORA_API_KEY"))

            resp, err := http.DefaultClient.Do(req)

            if err != nil { log.Fatal(err) }

            defer resp.Body.Close()
components:
  schemas:
    PaginatedCalls:
      properties:
        items:
          description: Items returned by the Sendora API.
          items:
            $ref: '#/components/schemas/api__v1__public__voice_calls__CallOut'
          title: Items
          type: array
        page:
          description: Page returned by the Sendora API.
          title: Page
          type: integer
        per_page:
          description: Per page returned by the Sendora API.
          title: Per Page
          type: integer
        total:
          description: Total returned by the Sendora API.
          title: Total
          type: integer
      required:
        - items
        - total
        - page
        - per_page
      title: PaginatedCalls
      type: object
    CallDetail:
      description: >-
        Single-call detail.


        connected service call-control identifiers are deliberately not part of
        this public

        schema. They are internal handles for Sendora's vendor accounts and are
        not

        needed by API consumers; exposing them increases correlation and
        support-

        impersonation risk.
      properties:
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The voice agent that placed the call: an `id` from List or get
            agents.
          title: Agent Id
        ai_summary:
          anyOf:
            - type: string
            - type: 'null'
          description: Ai summary returned by the Sendora API.
          title: Ai Summary
        campaign_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The campaign that placed the call, when there is one: an `id` from
            List or get campaigns.
          title: Campaign Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Created at returned by the Sendora API.
          title: Created At
        disposition:
          anyOf:
            - type: string
            - type: 'null'
          description: Disposition returned by the Sendora API.
          title: Disposition
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: Duration seconds returned by the Sendora API.
          title: Duration Seconds
        ended_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Ended at returned by the Sendora API.
          title: Ended At
        id:
          description: The call's id.
          title: Id
          type: string
        lead_id:
          anyOf:
            - type: string
            - type: 'null'
          description: 'The lead that was called: an `id` from List or get leads.'
          title: Lead Id
        recording_ref:
          anyOf:
            - type: string
            - type: 'null'
          description: Recording ref returned by the Sendora API.
          title: Recording Ref
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Started at returned by the Sendora API.
          title: Started At
        transcript:
          anyOf:
            - items:
                type: object
              type: array
            - type: 'null'
          description: Transcript returned by the Sendora API.
          title: Transcript
      required:
        - id
      title: CallDetail
      type: object
    HTTPValidationError:
      properties:
        detail:
          description: Detail returned by the Sendora API.
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      required: []
      title: HTTPValidationError
      type: object
    api__v1__public__voice_calls__CallOut:
      properties:
        agent_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The voice agent that placed the call: an `id` from List or get
            agents.
          title: Agent Id
        ai_summary:
          anyOf:
            - type: string
            - type: 'null'
          description: Ai summary returned by the Sendora API.
          title: Ai Summary
        campaign_id:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The campaign that placed the call, when there is one: an `id` from
            List or get campaigns.
          title: Campaign Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Created at returned by the Sendora API.
          title: Created At
        disposition:
          anyOf:
            - type: string
            - type: 'null'
          description: Disposition returned by the Sendora API.
          title: Disposition
        duration_seconds:
          anyOf:
            - type: integer
            - type: 'null'
          description: Duration seconds returned by the Sendora API.
          title: Duration Seconds
        ended_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Ended at returned by the Sendora API.
          title: Ended At
        id:
          description: The call's id. Pass it to List or get calls.
          title: Id
          type: string
        lead_id:
          anyOf:
            - type: string
            - type: 'null'
          description: 'The lead that was called: an `id` from List or get leads.'
          title: Lead Id
        recording_ref:
          anyOf:
            - type: string
            - type: 'null'
          description: Recording ref returned by the Sendora API.
          title: Recording Ref
        started_at:
          anyOf:
            - type: string
            - type: 'null'
          description: Started at returned by the Sendora API.
          title: Started At
      required:
        - id
      title: CallOut
      type: object
    ValidationError:
      properties:
        loc:
          description: Loc returned by the Sendora API.
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          description: Msg returned by the Sendora API.
          title: Message
          type: string
        type:
          description: Type returned by the Sendora API.
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Customer API key created in the Sendora dashboard.
      in: header
      name: X-API-Key
      type: apiKey

````

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