> ## Documentation Index
> Fetch the complete documentation index at: https://openphone-dev.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# List calls

> Fetch a paginated list of calls associated with a specific Quo number and another number.



## OpenAPI

````yaml https://openphone-public-api-dev.s3.us-west-2.amazonaws.com/public/openphone-public-api-v1-dev.json get /v1/calls
openapi: 3.1.0
info:
  title: Quo Public API
  version: 1.0.0
  description: API for connecting with Quo.
  contact:
    name: Quo Support
    email: support@quo.com
    url: https://support.quo.com/
  termsOfService: https://www.quo.com/terms
servers:
  - description: Development server
    url: https://dev-public-api.openphone.dev
security:
  - apiKey: []
tags:
  - description: Operations related to the organization's A2P registration
    name: A2P Registration
  - description: Operations related to calls placed by an AI agent
    name: Agent Calls
  - description: Operations related to text conversations held by an AI agent
    name: Agent Conversations
  - description: Operations related to calls
    name: Calls
  - description: >-
      Operations related to call summaries, including AI-generated summaries and
      Sona voice assistant summaries
    name: Call Summaries
  - description: >-
      Operations related to call transcripts, including AI-generated transcripts
      and Sona voice assistant transcripts
    name: Call Transcripts
  - description: Operations related to contacts
    name: Contacts
  - description: Operations related to contact shares
    name: Contact Shares
  - description: Operations related to contact notes
    name: Contact Notes
  - description: Operations related to contact properties
    name: Contact Properties
  - description: Operations related to conversations
    name: Conversations
  - description: Operations related to workspace invitations
    name: Invites
  - description: Operations related to text messages
    name: Messages
  - description: Operations related to the organization
    name: Organization
  - description: Operations related to phone numbers
    name: Phone Numbers
  - description: Operations related to users
    name: Users
  - description: Operations related to webhooks
    name: Webhooks
  - description: >-
      Operations related to webhook events, including delivery history and test
      events
    name: Webhook Events
paths:
  /v1/calls:
    get:
      tags:
        - Calls
      summary: List calls
      description: >-
        Fetch a paginated list of calls associated with a specific Quo number
        and another number.
      operationId: listCalls_v1
      parameters:
        - in: query
          name: phoneNumberId
          required: true
          schema:
            description: The unique identifier of the Quo number associated with the call.
            examples:
              - PN123abc
            type: string
            pattern: ^PN(.*)$
          example: PN123abc
        - in: query
          name: userId
          required: false
          schema:
            description: >-
              The unique identifier of the user whose access scope is applied to
              the results. Scopes the response to calls accessible to the
              specified user. Defaults to the workspace owner.
            examples:
              - US123abc
            type: string
            pattern: ^US(.*)$
          example: US123abc
        - in: query
          name: participants
          required: true
          schema:
            type: array
            items:
              type: string
              minLength: 1
            maxItems: 1
            description: >-
              The phone numbers of participants involved in the call
              conversation, excluding your Quo number. Each number should
              contain the country code and conform to the E.164 format.
              Currently limited to one-to-one (1:1) conversations only. Pass the
              "participants" key without brackets, e.g.
              "participants=%2B15555555555".
            examples:
              - '+15555555555'
          example: '+15555555555'
        - in: query
          name: since
          required: false
          schema:
            deprecated: true
            description: >-
              DEPRECATED, use "createdAfter" or "createdBefore" instead. "since"
              incorrectly behaves as "createdBefore" and will be removed in an
              upcoming release.
            examples:
              - '2022-01-01T00:00:00Z'
            type: string
            format: date-time
          example: '2022-01-01T00:00:00Z'
        - in: query
          name: createdAfter
          required: false
          schema:
            description: >-
              Filter results to only include calls created after the specified
              date and time, in ISO 8601 format.
            examples:
              - '2022-01-01T00:00:00Z'
            type: string
            format: date-time
          example: '2022-01-01T00:00:00Z'
        - in: query
          name: createdBefore
          required: false
          schema:
            description: >-
              Filter results to only include calls created before the specified
              date and time, in ISO 8601 format.
            examples:
              - '2022-01-01T00:00:00Z'
            type: string
            format: date-time
          example: '2022-01-01T00:00:00Z'
        - in: query
          name: maxResults
          required: true
          schema:
            type: integer
            description: Maximum number of results to return per page.
            default: 10
            maximum: 100
            minimum: 1
        - in: query
          name: pageToken
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - totalItems
                  - nextPageToken
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - answeredAt
                        - answeredBy
                        - initiatedBy
                        - direction
                        - status
                        - completedAt
                        - createdAt
                        - callRoute
                        - duration
                        - forwardedFrom
                        - forwardedTo
                        - aiHandled
                        - id
                        - phoneNumberId
                        - participants
                        - updatedAt
                        - userId
                      properties:
                        answeredAt:
                          anyOf:
                            - description: >-
                                The timestamp when the call was answered in ISO
                                8601 format. Null if the call was not answered.
                              examples:
                                - '2022-01-01T00:00:00Z'
                              example: '2022-01-01T00:00:00Z'
                              type: string
                              format: date-time
                            - type: 'null'
                        answeredBy:
                          anyOf:
                            - type: string
                              description: >-
                                The unique identifier of the Quo user who
                                answered the incoming call. Null for outgoing
                                calls or unanswered incoming calls.
                              examples:
                                - USlHhXmRMz
                              example: USlHhXmRMz
                            - type: 'null'
                        initiatedBy:
                          anyOf:
                            - type: string
                              description: >-
                                The unique identifier of the Quo user who
                                initiated the outgoing call. Null for incoming
                                calls.
                              examples:
                                - USlHhXmRMz
                              example: USlHhXmRMz
                            - type: 'null'
                        direction:
                          type: string
                          enum:
                            - incoming
                            - outgoing
                          description: >-
                            The direction of the call relative to the Quo
                            number.
                          examples:
                            - incoming
                          example: incoming
                        status:
                          type: string
                          enum:
                            - queued
                            - initiated
                            - ringing
                            - in-progress
                            - completed
                            - busy
                            - failed
                            - no-answer
                            - canceled
                            - missed
                            - answered
                            - forwarded
                            - abandoned
                          description: The current status of the call.
                          examples:
                            - completed
                          example: completed
                        completedAt:
                          anyOf:
                            - description: >-
                                The timestamp when the call ended, in ISO 8601
                                format. Null if the call is ongoing or was not
                                completed.
                              examples:
                                - '2022-01-01T00:00:00Z'
                              example: '2022-01-01T00:00:00Z'
                              type: string
                              format: date-time
                            - type: 'null'
                        createdAt:
                          description: >-
                            The timestamp when the call record was created, in
                            ISO 8601 format.
                          examples:
                            - '2022-01-01T00:00:00Z'
                          example: '2022-01-01T00:00:00Z'
                          type: string
                          format: date-time
                        callRoute:
                          anyOf:
                            - description: >-
                                How the call reached the user's inbox: either by
                                direct dial to their number or routed through a
                                phone menu. Null for outbound calls.
                              examples:
                                - phone-number
                                - phone-menu
                              example: phone-number
                              type: string
                            - type: 'null'
                        duration:
                          type: integer
                          description: The total duration of the call in seconds.
                          examples:
                            - 60
                          example: 60
                        forwardedFrom:
                          anyOf:
                            - anyOf:
                                - type: string
                                  description: >-
                                    A phone number in E.164 format, including
                                    the country code.
                                  examples:
                                    - '+15555555555'
                                  pattern: ^\+[1-9]\d{1,14}$
                                  example: '+15555555555'
                                - type: string
                                  pattern: ^US(.*)$
                              description: >-
                                The phone number or Quo user ID from which the
                                call was forwarded. Null if the call was not
                                forwarded.
                              examples:
                                - US123abc
                              example: US123abc
                            - type: 'null'
                        forwardedTo:
                          anyOf:
                            - anyOf:
                                - type: string
                                  description: >-
                                    A phone number in E.164 format, including
                                    the country code.
                                  examples:
                                    - '+15555555555'
                                  pattern: ^\+[1-9]\d{1,14}$
                                  example: '+15555555555'
                                - type: string
                                  pattern: ^PN(.*)$
                                - type: string
                                  pattern: ^US(.*)$
                              description: >-
                                The phone number, Quo phone number ID, or Quo
                                user ID to which the call was forwarded. Null if
                                the call was not forwarded.
                              examples:
                                - '+15555555555'
                                - PN123abc
                                - US123abc
                              example: '+15555555555'
                            - type: 'null'
                        aiHandled:
                          anyOf:
                            - description: >-
                                Type of AI that answered the call. Set to
                                'ai-agent' for AI responses, or null for human
                                responses.
                              examples:
                                - ai-agent
                              example: ai-agent
                              type: string
                            - type: 'null'
                        id:
                          description: The unique identifier of the call.
                          examples:
                            - AC123abc
                          example: AC123abc
                          type: string
                          pattern: ^AC(.*)$
                        phoneNumberId:
                          description: >-
                            The unique identifier of the Quo number associated
                            with the call.
                          examples:
                            - PN123abc
                          example: PN123abc
                          type: string
                          pattern: ^PN(.*)$
                        participants:
                          type: array
                          items:
                            type: string
                            description: >-
                              A phone number in E.164 format, including the
                              country code.
                            examples:
                              - '+15555555555'
                            pattern: ^\+[1-9]\d{1,14}$
                            example: '+15555555555'
                          maxItems: 2
                          description: >-
                            An array of phone numbers involved in the call,
                            including the Quo number. Each number includes the
                            country code and conforms to the E.164 format.
                            Currently limited to one-to-one conversations.
                          examples:
                            - - '+15555555555'
                          example:
                            - '+15555555555'
                        updatedAt:
                          anyOf:
                            - description: >-
                                The timestamp when the call record was last
                                updated, in ISO 8601 format. Null if never
                                updated.
                              examples:
                                - '2022-01-01T00:00:00Z'
                              example: '2022-01-01T00:00:00Z'
                              type: string
                              format: date-time
                            - type: 'null'
                        userId:
                          description: >-
                            The unique identifier of the Quo user account
                            associated with the call.
                          examples:
                            - US123abc
                          example: US123abc
                          type: string
                          pattern: ^US(.*)$
                      additionalProperties: false
                    description: Array of items
                  totalItems:
                    type: integer
                    description: >-
                      Total number of items available. ⚠️ Note: `totalItems` is
                      not accurately returning the total number of items that
                      can be paginated. We are working on fixing this issue.
                  nextPageToken:
                    anyOf:
                      - type: string
                      - type: 'null'
        '400':
          description: Bad Request | Too Many Participants
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/BadRequestError'
                  - $ref: '#/components/schemas/TooManyParticipantsError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - error
                    properties:
                      error:
                        type: object
                        required:
                          - message
                          - key
                        properties:
                          message:
                            type: string
                          key:
                            type: string
                            const: Unauthorized
                          trace:
                            type: string
                  - type: object
                    required:
                      - message
                      - code
                      - status
                      - docs
                      - title
                    properties:
                      message:
                        type: string
                      code:
                        type: string
                        const: '0100401'
                      status:
                        type: number
                        const: 401
                      docs:
                        type: string
                        const: https://quo.com/docs
                      title:
                        type: string
                        const: Unauthorized
                      trace:
                        type: string
                      errors:
                        type: array
                        items:
                          type: object
                          required:
                            - path
                            - message
                            - schema
                          properties:
                            path:
                              type: string
                            message:
                              type: string
                            value: {}
                            schema:
                              type: object
                              required:
                                - type
                              properties:
                                type:
                                  type: string
        '403':
          description: Forbidden | Not Phone Number User
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/ForbiddenError'
                  - $ref: '#/components/schemas/NotPhoneNumberUserError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                  - code
                  - status
                  - docs
                  - title
                properties:
                  message:
                    type: string
                  code:
                    type: string
                    const: '0100404'
                  status:
                    type: number
                    const: 404
                  docs:
                    type: string
                    const: https://quo.com/docs
                  title:
                    type: string
                    const: Not Found
                  trace:
                    type: string
                  errors:
                    type: array
                    items:
                      type: object
                      required:
                        - path
                        - message
                        - schema
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                        value: {}
                        schema:
                          type: object
                          required:
                            - type
                          properties:
                            type:
                              type: string
        '500':
          description: Unexpected Error | Unknown Error
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/UnexpectedError2'
                  - $ref: '#/components/schemas/UnknownError2'
      security:
        - apiKey: []
components:
  schemas:
    BadRequestError:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0100400'
        status:
          type: number
          const: 400
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Bad Request
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Bad Request
    TooManyParticipantsError:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0101400'
        status:
          type: number
          const: 400
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Too Many Participants
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Too Many Participants
    ForbiddenError:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0100403'
        status:
          type: number
          const: 403
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Forbidden
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Forbidden
    NotPhoneNumberUserError:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0101403'
        status:
          type: number
          const: 403
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Not Phone Number User
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Not Phone Number User
    UnexpectedError2:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0100500'
        status:
          type: number
          const: 500
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unexpected
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Unexpected Error
    UnknownError2:
      type: object
      required:
        - message
        - code
        - status
        - docs
        - title
      properties:
        message:
          type: string
        code:
          type: string
          const: '0101500'
        status:
          type: number
          const: 500
        docs:
          type: string
          const: https://quo.com/docs
        title:
          type: string
          const: Unknown
        trace:
          type: string
        errors:
          type: array
          items:
            type: object
            required:
              - path
              - message
              - schema
            properties:
              path:
                type: string
              message:
                type: string
              value: {}
              schema:
                type: object
                required:
                  - type
                properties:
                  type:
                    type: string
      title: Unknown Error
  securitySchemes:
    apiKey:
      in: header
      name: Authorization
      type: apiKey

````