> ## 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.

# Buy Caller ID

> Fetches existing verified caller IDs from Twilio along with their friendly names and SIDs.



## OpenAPI

````yaml POST /v2/twilio/fetch/callerids/
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/twilio/fetch/callerids/:
    post:
      summary: Fetch Twilio Caller IDs
      description: >-
        Fetches existing verified caller IDs from Twilio along with their
        friendly names and SIDs.
      parameters:
        - name: Company-Name
          in: header
          required: true
          description: Schema name for multi-tenancy
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TwilioFetchCallerIDsRequest'
      responses:
        '200':
          description: Caller IDs retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwilioFetchCallerIDsResponse'
        '400':
          description: Invalid credentials or request data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TwilioFetchCallerIDsRequest:
      type: object
      properties:
        account_sid:
          type: string
          description: Twilio Account SID
        auth_token:
          type: string
          description: Twilio Auth Token
      required:
        - account_sid
        - auth_token
    TwilioFetchCallerIDsResponse:
      type: object
      properties:
        caller_ids:
          type: array
          description: List of verified caller IDs from Twilio
          items:
            type: object
            properties:
              phone_number:
                type: string
                description: The verified Twilio phone number
                example: '+919821985448'
              friendly_name:
                type: string
                description: The friendly name set for the number
                example: abc
              sid:
                type: string
                description: The SID of the verified caller ID
          example:
            - phone_number: '+919821985448'
              friendly_name: avc
            - phone_number: '+918570904784'
              friendly_name: jkl
    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

````