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

# Find calls

> Find calls for the active team



## OpenAPI

````yaml /swagger.yml get /public/calls
openapi: 3.0.0
info:
  title: Public API Docs
  description: Clerk Public API
  version: '1.0'
  contact: {}
servers:
  - url: https://web-api.clerk.chat
    description: Production server
  - url: http://localhost:3000
    description: Production server
security: []
tags: []
paths:
  /public/calls:
    get:
      tags:
        - Calls
      summary: Find calls
      description: Find calls for the active team
      operationId: PublicCallsController_findCalls
      parameters:
        - name: callerNumber
          in: query
          required: false
          description: Filter calls by the phone number that initiated the call
          example: '+14155550123'
          schema:
            type: string
        - name: inboxId
          in: query
          required: false
          description: Filter calls by the inbox they belong to
          schema:
            type: string
        - name: status
          in: query
          required: false
          description: Filter calls by one or more statuses
          schema:
            type: array
            items:
              $ref: '#/components/schemas/CallStatus'
        - name: direction
          in: query
          required: false
          description: Filter calls by direction
          schema:
            $ref: '#/components/schemas/Direction'
        - name: start
          in: query
          required: false
          description: Only calls that started after this date until the end date or now
          schema:
            type: string
            format: date-time
        - name: end
          in: query
          required: false
          description: Only calls that started up to this date
          schema:
            type: string
            format: date-time
        - name: limit
          in: query
          required: false
          description: Number of items to return (max 50)
          example: 10
          schema:
            type: number
        - name: page
          in: query
          required: false
          description: Page number
          example: 1
          schema:
            type: number
      responses:
        '200':
          description: A paginated list of calls
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCallsResponse'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized request
        '403':
          description: You do not have permission to access this resource
        '404':
          description: Resource not found
        '422':
          description: Invalid request parameters
        '429':
          description: Too many requests for this resource
        '500':
          description: Internal server error
      security:
        - api_key: []
components:
  schemas:
    CallStatus:
      type: string
      description: The status of the call
      enum:
        - busy
        - cancelled
        - completed
        - failed
        - in_progress
        - no_answer
        - queued
    Direction:
      type: string
      description: Whether the call was inbound or outbound
      enum:
        - inbound
        - outbound
    PaginatedCallsResponse:
      type: object
      required:
        - data
        - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/CallObject'
        links:
          type: object
          properties:
            next:
              type: string
              description: The URL for the next page
            prev:
              type: string
              description: The URL for the previous page
            self:
              type: string
              description: The URL for the current page
        total:
          type: number
          description: The total number of calls
          example: 1
    CallObject:
      type: object
      description: Represents a call resource
      required:
        - id
        - conversationId
        - userId
        - callerNumber
        - direction
        - callStatus
        - callStatusReason
        - callStartTime
        - callEndTime
        - summary
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          description: The ID of the resource
          example: 00000000-0000-0000-0000-000000000000
          readOnly: true
        conversationId:
          type: string
          description: The associated Conversation ID
          example: 00000000-0000-0000-0000-000000000000
          readOnly: true
        userId:
          type: string
          description: The ID of the user who created the resource
          example: 00000000-0000-0000-0000-000000000000
          readOnly: true
          nullable: true
        callerNumber:
          type: string
          description: The phone number that initiated the call
          example: '+14155550123'
        direction:
          type: string
          description: Whether the call was inbound or outbound
          enum:
            - inbound
            - outbound
          example: inbound
        callStatus:
          type: string
          description: The status of the call
          enum:
            - busy
            - cancelled
            - completed
            - failed
            - in_progress
            - no_answer
            - queued
          example: completed
        callStatusReason:
          type: string
          description: The reason associated with the current call status
          nullable: true
          enum:
            - agent_error
            - server_error
            - pipeline_error
            - hangup_participant
            - hangup_inbox
            - hangup
            - transfer_succeeded
            - transfer_failed
            - merge_succeeded
            - merge_failed
            - dial_error
            - dial_busy
            - dial_declined
            - dial_noanswer
            - dial_unavailable
            - dial_networktimeout
            - dial_invalidnumber
            - dial_test
            - call_timeout
            - voicemail
            - multiple_inbound_pipelines
            - pipeline_not_found
            - pipeline_failure
          example: hangup_participant
        callStartTime:
          type: string
          format: date-time
          description: The date and time the call started
          example: '2021-01-01T00:00:00.000Z'
        callEndTime:
          type: string
          format: date-time
          description: The date and time the call ended
          example: '2021-01-01T00:05:00.000Z'
          nullable: true
        summary:
          type: string
          description: An AI-generated summary of the call
          nullable: true
        createdAt:
          type: string
          format: date-time
          example: '2021-01-01T00:00:00.000Z'
          readOnly: true
          description: The date and time the resource was created
        updatedAt:
          type: string
          format: date-time
          example: '2021-01-01T00:00:00.000Z'
          readOnly: true
          description: The date and time the resource was last updated
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: apiKey

````