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

# Search available phone numbers

> Query carrier inventory for numbers matching the given filters. Returns up to 50 results per call.



## OpenAPI

````yaml /openapi.json get /v1/phone-numbers/search
openapi: 3.1.0
info:
  title: RevDesk v1 API
  version: 1.0.0
  description: >-
    Programmatic access to the RevDesk voice platform — calls, numbers, caller
    trust, and brands.
  contact:
    name: RevDesk
    email: support@revdesk.com
servers:
  - url: https://api.revdesk.com
security:
  - bearerAuth: []
tags:
  - name: Phone Numbers
  - name: Caller IDs
  - name: Enterprise Registration
  - name: Branded Calling
  - name: Calls
  - name: SMS
  - name: WebRTC
  - name: Reputation
  - name: Usage
  - name: Account
  - name: Agents
  - name: Documents
  - name: Sub-entities
paths:
  /v1/phone-numbers/search:
    get:
      tags:
        - Phone Numbers
      summary: Search available phone numbers
      description: >-
        Query carrier inventory for numbers matching the given filters. Returns
        up to 50 results per call.
      operationId: v1_phone_numbers_search_get
      parameters:
        - name: country
          in: query
          required: true
          schema:
            default: US
            type: string
            minLength: 2
            maxLength: 2
        - name: area_code
          in: query
          required: false
          schema:
            type: string
            pattern: ^\d{3}$
        - name: contains
          in: query
          required: false
          schema:
            type: string
        - name: in_region
          in: query
          required: false
          schema:
            type: string
        - name: limit
          in: query
          required: true
          schema:
            default: 20
            type: integer
            minimum: 1
            maximum: 50
        - name: number_type
          in: query
          required: true
          schema:
            default: local
            type: string
            enum:
              - local
              - tollFree
              - mobile
              - national
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $schema: http://json-schema.org/draft-07/schema#
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        phone_number:
                          type: string
                        locality:
                          type: string
                        region:
                          type: string
                        features:
                          type: array
                          items:
                            type: string
                      required:
                        - phone_number
                        - locality
                        - region
                        - features
                      additionalProperties: false
                  meta:
                    type: object
                    properties:
                      page_size:
                        type: number
                    required:
                      - page_size
                    additionalProperties: false
                required:
                  - data
                  - meta
                additionalProperties: false
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          description: Conflict (incl. idempotency conflicts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ErrorEnvelope:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            fields:
              type: object
              additionalProperties:
                type: string
            doc_url:
              type: string
              format: uri
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````