> ## 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 Purchased Number

> Retrieves a list of phone numbers associated with the provided Twilio SID and Auth Token.



## OpenAPI

````yaml POST /twilio/user/number/
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:
  /twilio/user/number/:
    post:
      summary: Fetch Twilio Phone Numbers
      description: >-
        Retrieves a list of phone numbers associated with the provided Twilio
        SID and Auth Token.
      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/TwilioUserNumberRequest'
      responses:
        '200':
          description: Twilio numbers fetched successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TwilioUserNumberResponse'
        '400':
          description: Invalid credentials or request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TwilioUserNumberRequest:
      type: object
      properties:
        twilio_sid:
          type: string
          description: Twilio Account SID
        auth_token:
          type: string
          description: Twilio Auth Token
      required:
        - twilio_sid
        - auth_token
    TwilioUserNumberResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Data found
        data:
          type: object
          properties:
            numbers:
              type: array
              description: List of Twilio phone numbers
              items:
                type: object
                properties:
                  phone_number:
                    type: string
                    example: '+16504498873'
    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

````