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

# List campaign calls

> List the calls of an outbound campaign, newest first: first contacts, retries, callbacks and redirects, whether queued, under way or done.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/convai/outbound-campaigns/campaigns/{campaign_id}/calls
openapi: 3.1.0
info:
  title: Threetone API
  description: >-
    APIs for the Threetone Agents Platform and shared workspace resources.
    Authenticate programmatic requests with an API key in the x-api-key header.
  version: '1.0'
servers:
  - url: https://api.threetone.in
    description: Production
security: []
paths:
  /v1/convai/outbound-campaigns/campaigns/{campaign_id}/calls:
    get:
      tags:
        - Agents Platform
      summary: List campaign calls
      description: >-
        List the calls of an outbound campaign, newest first: first contacts,
        retries, callbacks and redirects, whether queued, under way or done.
      operationId: list_campaign_calls
      parameters:
        - name: campaign_id
          in: path
          required: true
          schema:
            type: string
            title: Campaign Id
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            description: How many items to return at most.
            default: 100
            title: Page Size
          description: How many items to return at most.
        - name: lead_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Only this lead's calls.
            title: Lead Id
          description: Only this lead's calls.
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/CallStatus'
              - type: 'null'
            description: Only calls in this status.
            title: Status
          description: Only calls in this status.
        - name: call_result
          in: query
          required: false
          schema:
            anyOf:
              - type: array
                items:
                  $ref: '#/components/schemas/CallResult'
              - type: 'null'
            description: Only calls that ended in one of these results.
            title: Call Result
          description: Only calls that ended in one of these results.
        - name: stage
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - queued
                  - sent
                  - delivered
                  - read
                  - replied
                  - failed
                type: string
              - type: 'null'
            description: Only messages at this delivery stage. Message campaigns only.
            title: Stage
          description: Only messages at this delivery stage. Message campaigns only.
        - name: cursor
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Used for fetching next page. Cursor is returned in the response.
            title: Cursor
          description: Used for fetching next page. Cursor is returned in the response.
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Your API key for programmatic access. Send it in the x-api-key
              header; you can create and manage keys from the Developers page.
            title: X-Api-Key
          description: >-
            Your API key for programmatic access. Send it in the x-api-key
            header; you can create and manage keys from the Developers page.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignCallsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CallStatus:
      type: string
      enum:
        - queued
        - submitted
        - completed
        - cancelled
        - attention
      title: CallStatus
    CallResult:
      type: string
      enum:
        - answered
        - voicemail
        - busy
        - no_answer
        - failed
      title: CallResult
    CampaignCallsResponse:
      properties:
        calls:
          items:
            $ref: '#/components/schemas/CallView'
          type: array
          title: Calls
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
        - calls
        - next_cursor
        - has_more
      title: CampaignCallsResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CallView:
      properties:
        intent_id:
          type: string
          title: Intent Id
        lead_id:
          type: string
          title: Lead Id
        intent_type:
          $ref: '#/components/schemas/CampaignConversationType'
          description: >-
            `initial` for a lead's first call, else a `retry`, `callback` or
            `redirect`.
        cold_attempt:
          anyOf:
            - type: integer
            - type: 'null'
          title: Cold Attempt
          description: >-
            `1` for the first call and `+1` per retry of it; unset for
            callbacks, redirects and their retries.
        status:
          $ref: '#/components/schemas/CallStatus'
          description: >-
            `submitted` calls have been handed off for dialing; `attention`
            calls are held back by an attention item.
        phone_number:
          type: string
          title: Phone Number
        scheduled_time_unix:
          type: integer
          title: Scheduled Time Unix
          description: When the call is due to be placed.
        conversation_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Conversation Id
        outcome:
          anyOf:
            - $ref: '#/components/schemas/BatchCallRecipientStatus'
            - type: 'null'
          description: The call's final dialing status, set once it ends.
        call_result:
          anyOf:
            - $ref: '#/components/schemas/CallResult'
            - type: 'null'
          description: How the call ended.
        outcome_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Outcome At Unix
          description: When the call ended.
        decision_disposition:
          anyOf:
            - $ref: '#/components/schemas/DecisionDisposition'
            - type: 'null'
          description: >-
            What the campaign did after the call, such as queue a retry or a
            callback, or finish the lead.
        collected_dynamic_variables:
          additionalProperties: true
          type: object
          title: Collected Dynamic Variables
          description: >-
            Data collection results this call copied into the lead's dynamic
            variables for later calls, with secrets redacted.
        delivery:
          anyOf:
            - $ref: '#/components/schemas/LeadDeliveryView'
            - type: 'null'
          description: The message's delivery; set on message campaigns.
      type: object
      required:
        - intent_id
        - lead_id
        - intent_type
        - cold_attempt
        - status
        - phone_number
        - scheduled_time_unix
        - conversation_id
        - outcome
        - call_result
        - outcome_at_unix
        - decision_disposition
      title: CallView
    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
    CampaignConversationType:
      type: string
      enum:
        - initial
        - retry
        - callback
        - redirect
      title: CampaignConversationType
    BatchCallRecipientStatus:
      type: string
      enum:
        - pending
        - dispatched
        - initiated
        - in_progress
        - completed
        - failed
        - cancelled
        - voicemail
      title: BatchCallRecipientStatus
    DecisionDisposition:
      type: string
      enum:
        - completed
        - retry_queued
        - callback_queued
        - redirect_queued
        - attention
        - cancelled
        - do_not_call
        - suppressed
        - window_suspended
        - attempt_ceiling_reached
        - callback_ceiling_reached
        - redirect_ceiling_reached
        - callback_time_invalid
        - redirect_number_invalid
        - couldnt_process
        - suppressed_do_not_call
        - suppressed_after_stop
        - permission_not_granted
        - permission_declined
        - permission_request_blocked
        - permission_expired
      title: DecisionDisposition
      description: How a settled call's decision left its lead.
    LeadDeliveryView:
      properties:
        status:
          $ref: '#/components/schemas/BatchCallRecipientStatus'
        stage:
          type: string
          enum:
            - queued
            - sent
            - delivered
            - read
            - replied
            - failed
          title: Stage
          description: The furthest the message got, or `failed` if sending it failed.
        sent_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Sent At Unix
        delivered_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Delivered At Unix
        read_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Read At Unix
        replied_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Replied At Unix
        failed_at_unix:
          anyOf:
            - type: integer
            - type: 'null'
          title: Failed At Unix
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
          description: Why the message failed to reach the contact.
      type: object
      required:
        - status
        - stage
        - sent_at_unix
        - delivered_at_unix
        - read_at_unix
        - replied_at_unix
        - failed_at_unix
        - error_message
      title: LeadDeliveryView

````

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