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

# Telnyx Buy Number

> Retrieves both purchased and available Telnyx numbers based on filters like country code and number slice options.



## OpenAPI

````yaml GET /v2/telnyx/numbers-combined/
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/telnyx/numbers-combined/:
    get:
      summary: Telnyx Purchased Number List (Combined)
      description: >-
        Retrieves both purchased and available Telnyx numbers based on filters
        like country code and number slice options.
      parameters:
        - name: Company-Name
          in: header
          required: true
          description: Schema name for multi-tenancy
          schema:
            type: string
        - name: country_code
          in: query
          required: true
          description: Country code for filtering phone numbers
          schema:
            type: string
            example: US
        - name: number_slice
          in: query
          required: false
          description: Custom substring used to match numbers (e.g. area code or prefix)
          schema:
            type: string
            example: '21'
        - name: number_slice_filter
          in: query
          required: false
          description: >-
            Filter type used for the number slice (e.g. 'first_part' or
            'last_part')
          schema:
            type: string
            enum:
              - first_part
              - last_part
            example: first_part
      responses:
        '200':
          description: Purchased and available Telnyx numbers retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TelnyxCombinedNumbersResponse'
        '400':
          description: Invalid query or country code
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    TelnyxCombinedNumbersResponse:
      type: object
      properties:
        purchased_numbers:
          type: array
          description: List of already purchased Telnyx numbers
          items:
            type: string
            example: '+12183009429'
        available_numbers:
          type: array
          description: List of available Telnyx numbers for purchase
          items:
            type: string
            example: '+12702035492'
        is_masked:
          type: boolean
          description: Indicates if numbers are partially masked for security or preview
          example: false
    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

````