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

# Get Campaign Calls

> Get campaign contacts with their call status (paginated).
Shows contacts immediately after creation with status:
- PENDING: Campaign not started, no task created
- QUEUED: Task created, waiting to be processed
- IN_PROGRESS: Call is in progress
- COMPLETED: Call completed successfully
- FAILED: Call failed
- CANCELLED: Task was cancelled

Query params:
- page: Page number (1-indexed, default: 1)
- page_size: Items per page (default: 10, options: 10, 20, 50)



## OpenAPI

````yaml https://originshq.b-cdn.net/openapi_sayna.json get /api/campaigns/{campaign_id}/calls
openapi: 3.1.0
info:
  title: core
  version: 0.1.0
servers: []
security: []
paths:
  /api/campaigns/{campaign_id}/calls:
    get:
      tags:
        - campaigns
      summary: Get Campaign Calls
      description: |-
        Get campaign contacts with their call status (paginated).
        Shows contacts immediately after creation with status:
        - PENDING: Campaign not started, no task created
        - QUEUED: Task created, waiting to be processed
        - IN_PROGRESS: Call is in progress
        - COMPLETED: Call completed successfully
        - FAILED: Call failed
        - CANCELLED: Task was cancelled

        Query params:
        - page: Page number (1-indexed, default: 1)
        - page_size: Items per page (default: 10, options: 10, 20, 50)
      operationId: get_campaign_calls_api_campaigns__campaign_id__calls_get
      parameters:
        - name: campaign_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Campaign Id
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 10
            title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCallsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginatedCallsResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ContactWithStatus'
          type: array
          title: Items
        total:
          type: integer
          title: Total
        page:
          type: integer
          title: Page
        page_size:
          type: integer
          title: Page Size
        total_pages:
          type: integer
          title: Total Pages
      type: object
      required:
        - items
        - total
        - page
        - page_size
        - total_pages
      title: PaginatedCallsResponse
      description: Paginated response for campaign calls.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ContactWithStatus:
      properties:
        id:
          type: integer
          title: Id
        to_number:
          type: string
          title: To Number
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        status:
          type: string
          title: Status
        task_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Task Id
        call_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Call Id
        call_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Call Status
        call_duration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Call Duration
        call_recording_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Call Recording Url
        from_number:
          anyOf:
            - type: string
            - type: 'null'
          title: From Number
        initiation_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Initiation Time
        answer_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Answer Time
        end_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: End Time
        hangup_cause_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Hangup Cause Name
        call_transcription:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Call Transcription
          default: []
        call_insights:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Call Insights
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
      type: object
      required:
        - id
        - to_number
        - status
      title: ContactWithStatus
      description: Contact with task and call status for campaign calls list.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````