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

# Callback History

> Fetches the list of scheduled callbacks for all agencies.



## OpenAPI

````yaml GET /v2/scheduled-callbacks/agency/
openapi: 3.1.0
info:
  title: CloserX.ai API
  description: >-
    The CloserX.ai API provides programmatic access to manage AI-powered calling
    operations, including agent creation, campaign management, contact handling,
    telephony integration, and more. This API enables seamless automation and
    integration with CRM systems, telephony providers, and other third-party
    services for enhanced client communication and business operations.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.closerx.ai/api
security:
  - api_key: []
paths:
  /v2/scheduled-callbacks/agency/:
    get:
      summary: Retrieve scheduled callbacks for all agencies
      description: Fetches the list of scheduled callbacks for all agencies.
      parameters:
        - name: Company-Name
          in: header
          required: true
          description: The schema name for multi-tenancy (company-wise DB separation)
          schema:
            type: string
      responses:
        '200':
          description: Successfully retrieved scheduled callbacks
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CallbackHistory'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CallbackHistory:
      type: object
      properties:
        total_count:
          type: integer
          description: Total number of records available
        total_page:
          type: integer
          description: Total number of pages available for pagination
        current_page_no:
          type: integer
          description: The current page number
        next_page_number:
          type: integer
          description: >-
            The page number for the next page, or null if no more pages are
            available
        previous_page_number:
          type: integer
          description: The page number for the previous page, or null if on the first page
        page_size:
          type: integer
          description: The number of items per page
        data:
          type: array
          description: List of campaign data objects
          items:
            type: object
            properties:
              id:
                type: string
                description: The unique ID of the campaign
              status:
                type: string
                description: >-
                  The current status of the campaign (e.g., 'completed',
                  'paused')
              name:
                type: string
                description: The name of the campaign
              new_agent:
                type: string
                description: The name of the new agent assigned to the campaign
              calling_number:
                type: string
                description: The phone number used for the campaign
              direction:
                type: string
                description: The direction of the call, either 'Outbound' or 'Inbound'
              status_choices:
                type: array
                description: >-
                  Possible status choices for the campaign (e.g.,
                  'dial_no_answer', 'agent_hangup')
                items:
                  type: string
              number_rotation:
                type: boolean
                description: Indicates whether number rotation is enabled
              calling_number_pool:
                type: array
                description: A pool of numbers used for calling (if applicable)
                items:
                  type: string
              rotate_number_after_calls:
                type: integer
                description: The number of calls after which the calling number is rotated
              release_buyed_when:
                type: string
                description: >-
                  Condition for releasing the purchased number, e.g.,
                  'subscription_complete'
              updated_at:
                type: string
                format: date-time
                description: Timestamp for when the campaign was last updated
              created_at:
                type: string
                format: date-time
                description: Timestamp for when the campaign was created
            required:
              - id
              - status
              - name
              - new_agent
              - calling_number
              - direction
              - status_choices
              - number_rotation
              - rotate_number_after_calls
              - release_buyed_when
              - updated_at
              - created_at
      required:
        - total_count
        - total_page
        - current_page_no
        - next_page_number
        - previous_page_number
        - page_size
        - data
    Error:
      required:
        - success
        - message
        - data
      type: object
      properties:
        success:
          type: boolean
        message:
          type: string
        data:
          type: object
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: api_key

````