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

# Get Calls by Customer

> Returns all calls for a given customer



## OpenAPI

````yaml GET /calls/customer/{customerId}
openapi: 3.1.0
info:
  title: Finosu API
  description: Finosu API
  license:
    name: MIT
  version: 1.0.0
servers: []
security:
  - apiKeyAuth: []
paths:
  /calls/customer/{customerId}:
    get:
      description: Returns all calls for a given customer
      parameters:
        - name: customerId
          in: path
          description: ID of customer
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: The maximum number of results to return
          schema:
            type: integer
            format: int32
        - name: offset
          in: query
          description: The offset of the first result to return
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Calls response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/NewCall'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    NewCall:
      type: object
      properties:
        customerId:
          description: ID of the customer
          type: string
        toPhoneNumber:
          description: Phone number that was called (E.164 format)
          type: string
          example: '+14155551234'
        transcript:
          description: Transcript of the call
          type: string
        recordingUrl:
          description: >-
            S3 presigned URL for the call recording. Note: This URL expires
            after 1 hour.
          type: string
        timestamp:
          description: Timestamp when the call occurred (ISO 8601 format)
          type: string
          format: date-time
        flags:
          description: >-
            Array of post-processing flags indicating call outcomes and events.
            Common flags include: NO_ANSWER, VOICEMAIL, CONNECT, LIVE_CONNECT,
            VOICEMAIL_CONNECT, AUTO_SYSTEM_CONNECT, MESSAGE_LEFT, RPC (Right
            Party Contact), THIRD_PARTY_CONTACT, WRONG_NUMBER, CUSTOMER_HANGUP,
            DNC (Do Not Call), COMPLAINT, THREAT_OR_ABUSE, DECEASED,
            INCARCERATED, MILITARY, BANKRUPTCY, HARDSHIP_REQUEST, DEBT_DISPUTE,
            ATTORNEY_REP, FRAUD_CLAIM, ACCESSIBILITY_ISSUE, CALLBACK_REQUEST,
            TRANSFER_FAILED, VOICEMAIL_FULL, VOICEMAIL_NOT_SET_UP, CIP_PASSED,
            CIP_FAILED, CIP_PARTIAL, CIP_REFUSED, SUCCESSFUL_TRANSFER,
            FALLBACK_TRANSFER, and others
          type: array
          items:
            type: string
          example:
            - CONNECT
            - LIVE_CONNECT
            - RPC
            - MESSAGE_LEFT
        summarization:
          description: AI-generated summary of the call conversation and outcomes
          type: string
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````