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

# Search Available Phone Numbers

> Search the purchasable number inventory.



## OpenAPI

````yaml get /v1/agent/available-phone-numbers
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/available-phone-numbers:
    get:
      tags:
        - Phone Numbers
      summary: Search Available Phone Numbers
      description: >-
        Search the purchasable number inventory. Buy an entry with

        `POST /v1/agent/phone-numbers`; availability is not a reservation, so a
        listed

        number can still be claimed by someone else first.
      parameters:
        - in: query
          name: country_code
          description: ISO 3166-1 alpha-2 country code.
          required: false
          schema:
            default: US
            title: Country Code
            type: string
          deprecated: false
        - in: query
          name: area_code
          description: Restrict to one area code, e.g. 415.
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Area Code
          deprecated: false
        - in: query
          name: number_type
          description: >-
            The managed inventory is US local numbers only; `toll_free`
            currently returns 400.
          required: false
          schema:
            default: local
            enum:
              - local
              - toll_free
            title: Number Type
            type: string
          deprecated: false
        - in: query
          name: provider
          description: >-
            Inventory to search. Only the managed `twilio` inventory
            (call-transfer support) is available; the parameter is kept so
            importing your own numbers can extend it later.
          required: false
          schema:
            anyOf:
              - const: twilio
                type: string
              - type: 'null'
            default: null
            title: Provider
          deprecated: false
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  available_phone_numbers:
                    description: >-
                      Inventory entries forwarded from the provider (number,
                      region, pricing).
                    items:
                      additionalProperties: true
                      type: object
                    title: Available Phone Numbers
                    type: array
                required:
                  - available_phone_numbers
                type: object
        '400':
          description: Bad request syntax or unsupported method
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
        '502':
          description: Invalid responses from another server/proxy
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````