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

# Get Caller ID

> Registers a new caller ID number along with optional SIP credentials and friendly name.



## OpenAPI

````yaml POST /v2/twilio/post/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/post/callerids/:
    post:
      summary: Telnyx Buy Caller ID
      description: >-
        Registers a new caller ID number along with optional SIP credentials and
        friendly name.
      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/TelnyxBuyCallerIDRequest'
      responses:
        '200':
          description: Caller ID saved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxBuyCallerIDResponse'
              example:
                success: true
                message: Caller ID saved successfully
        '400':
          description: Invalid input or missing fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TelnyxBuyCallerIDRequest:
      type: object
      required:
        - phone_number
        - friendly_name
      properties:
        phone_number:
          type: string
          description: The phone number to be used as caller ID.
        friendly_name:
          type: string
          description: A custom name or label for the number.
          example: TEST
    TelnyxBuyCallerIDResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Caller ID saved successfully
        data:
          type: object
          properties:
            phone_number:
              type: string
            termination_uri:
              type: string
            sip_trunk_auth_username:
              type: string
            sip_trunk_auth_password:
              type: string
            nickname:
              type: string
    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

````