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

# List available phone numbers

> Returns a paginated list of phone numbers available for purchase in the specified city.



## OpenAPI

````yaml https://wavix.github.io/wavix-openapi/wavix-api.yaml get /v1/buy/countries/{country_id}/cities/{city_id}/dids
openapi: 3.1.0
info:
  title: Wavix APIs
  description: >-
    Wavix provides robust APIs that let you integrate voice and text messaging
    features directly into your app. Send text, place calls, and access detailed
    reports  programmatically.
  termsOfService: https://wavix.com/terms-and-conditions
  license:
    name: MIT
    identifier: MIT
  contact:
    name: Wavix
    url: https://wavix.com
    email: support@wavix.com
  version: '1.0'
servers:
  - url: https://api.wavix.com
    description: https://api.wavix.com
    variables: {}
security:
  - bearerAuth: []
tags:
  - name: SIP trunks
    description: SIP trunks
  - name: Buy
    description: Numbers
  - name: Cart
    description: Numbers
  - name: My numbers
    description: Numbers
  - name: Billing
    description: Billing, transactions, and invoices
  - name: Profile
    description: Account profile and customer information
  - name: CDRs
    description: Call detail records and call history
  - name: Speech Analytics
    description: Call transcription and speech analytics
  - name: SMS and MMS
    description: Messaging
  - name: Number Validator
    description: Phone number validation
  - name: Link shortener
    description: Short link and click metrics
  - name: 2FA
    description: Two-factor authentication
  - name: 10DLC
    description: 10DLC Campaigns and Brands
  - name: API Keys
    description: API key management
  - name: Call webhooks
    description: Webhook configuration for call events
  - name: Call control
    description: Programmable Voice
  - name: Call streaming
    description: Real-time call audio streaming over WebSocket
  - name: Call recording
    description: Call recording
  - name: Sub-accounts
    description: Sub-account management
  - name: Voice campaigns
    description: Outbound voice campaigns
  - name: Wavix Embeddable
    description: WebRTC embeddable widget
paths:
  /v1/buy/countries/{country_id}/cities/{city_id}/dids:
    get:
      tags:
        - Buy
      summary: List available phone numbers
      description: >-
        Returns a paginated list of phone numbers available for purchase in the
        specified city.
      operationId: buy_numbers_list
      parameters:
        - name: country_id
          in: path
          description: The unique ID of the country.
          required: true
          style: simple
          schema:
            type: integer
            format: int32
        - name: city_id
          in: path
          description: The unique ID of the city.
          required: true
          style: simple
          schema:
            type: integer
            format: int32
        - name: text_enabled_only
          in: query
          description: When `true`, returns only text-enabled phone numbers.
          style: form
          explode: true
          schema:
            type: boolean
        - name: page
          in: query
          description: Page number to retrieve. Default `1`.
          style: form
          explode: true
          schema:
            type: integer
            format: int32
        - name: per_page
          in: query
          description: Number of records to return per page. Default `25`.
          style: form
          explode: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Returns a paginated list of available phone numbers.
          headers: {}
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/AvailableNumberListResponse'
                  - example:
                      dids:
                        - activation_fee: '15.0'
                          channels: '4'
                          city: Buenos Aires
                          cnam: false
                          country: Argentina
                          country_short_name: AR
                          domestic_cli: false
                          free_min: 0
                          id: 541139862174
                          monthly_fee: '10.0'
                          number: '541139862174'
                          per_min: '0.01'
                          require_docs: []
                          sms_enabled: false
                          sms_price: 0
                      pagination:
                        total: 1
                        total_pages: 1
                        current_page: 1
                        per_page: 50
              examples:
                success:
                  summary: Successful response
                  value:
                    dids:
                      - activation_fee: '15.0'
                        channels: '4'
                        city: Buenos Aires
                        cnam: false
                        country: Argentina
                        country_short_name: AR
                        domestic_cli: false
                        free_min: 0
                        id: 541139862174
                        monthly_fee: '10.0'
                        number: '541139862174'
                        per_min: '0.01'
                        require_docs: []
                        sms_enabled: false
                        sms_price: 0
                    pagination:
                      total: 1
                      total_pages: 1
                      current_page: 1
                      per_page: 50
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
      security:
        - bearerAuth:
            - numbers:read
components:
  schemas:
    AvailableNumberListResponse:
      title: AvailableNumberListResponse
      required:
        - dids
        - pagination
      type: object
      additionalProperties: false
      properties:
        dids:
          type: array
          description: Phone numbers available for purchase that match the search criteria.
          items:
            $ref: '#/components/schemas/AvailableNumber'
        pagination:
          $ref: '#/components/schemas/Pagination'
    AvailableNumber:
      title: AvailableNumber
      required:
        - id
        - activation_fee
        - monthly_fee
        - per_min
        - channels
        - city
        - country
        - country_short_name
        - cnam
        - free_min
        - number
        - require_docs
        - sms_enabled
        - sms_price
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          description: Phone number ID.
          format: int64
          example: 541139862174
        activation_fee:
          type: string
          description: One-time activation fee in USD.
          example: '15.0'
        monthly_fee:
          type: string
          description: Monthly fee in USD.
          example: '10.0'
        per_min:
          type: string
          description: Price per inbound minute in USD.
          example: '0.01'
        channels:
          type: string
          description: Maximum number of concurrent inbound calls.
          format: int32
          example: '4'
        city:
          type: string
          description: City where the phone number originates.
          example: Buenos Aires
        country:
          type: string
          description: Country where the phone number originates.
          example: Argentina
        country_short_name:
          type: string
          description: Two-letter ISO country code.
          example: AR
        cnam:
          type:
            - boolean
            - 'null'
          description: Indicates whether CNAM can be activated.
          example: false
        free_min:
          type: integer
          description: Number of free inbound minutes.
          format: int32
          example: 0
        number:
          type: string
          description: Phone number in E.164 format.
          example: '541139862174'
        require_docs:
          type: array
          items:
            type: integer
            format: int32
          description: Documents required to activate the phone number.
          example:
            - 1
            - 3
        sms_enabled:
          type: boolean
          description: |-
            Indicates whether the phone number can receive inbound
             SMS and MMS messages.
          example: false
        sms_price:
          type: number
          format: float
          description: Price per inbound SMS segment in USD.
          example: 0
        domestic_cli:
          type: boolean
          description: >-
            Indicates whether the number can be used as the Caller ID for local
            calls.
          example: true
      description: Phone number available for purchase.
    Pagination:
      title: Pagination
      required:
        - current_page
        - per_page
        - total
        - total_pages
      type: object
      additionalProperties: false
      properties:
        current_page:
          type: integer
          description: Current page number.
          format: int32
          example: 2
        per_page:
          type: integer
          description: Number of records per page.
          format: int32
          example: 25
        total:
          type: integer
          description: Total number of records.
          format: int32
          example: 101
        total_pages:
          type: integer
          description: Total number of pages.
          format: int32
          example: 5
    ValidationErrorResponse:
      title: ValidationErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: >-
            Human-readable description naming the missing or invalid request
            parameter.
          example: Missing or invalid parameter <param_name>
    ForbiddenErrorResponse:
      title: ForbiddenErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: Human-readable description of why access is forbidden.
          example: The service is not provisioned for your account.
    NotFoundErrorResponse:
      title: NotFoundErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: >-
            Indicates whether the request was successful. Always `false` for
            this error.
          example: false
        message:
          type: string
          description: >-
            Human-readable description stating that no resource matches the
            given ID.
          example: Record not found
  responses:
    BadRequestErrorResponse:
      description: Request failed. Missing or invalid parameter <param_name>
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >
        Wavix API key. Pass as `Authorization: Bearer <api_key>`. Keys support
        per-resource scopes (none / read / write). See [Restricted keys and
        scopes](https://docs.wavix.com/api-reference/authentication#restricted-keys-and-scopes).

````