Wavix Buy API

Numbers

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 5

GET /v1/buy/countries List countries #
GET /v1/buy/countries/{country_id}/regions List regions #
GET /v1/buy/countries/{country_id}/cities List cities #
GET /v1/buy/countries/{country_id}/regions/{region_id}/cities List region cities #
GET /v1/buy/countries/{country_id}/cities/{city_id}/dids List available phone numbers #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wavix-com:wavix-com-buy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wavix-com-buy-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wavix Buy API
  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: 3.2.0
servers:
- url: https://api.wavix.com
  description: https://api.wavix.com
  variables: {}
security:
- bearerAuth: []
tags:
- name: Buy
  description: Numbers
paths:
  /v1/buy/countries:
    get:
      tags:
      - Buy
      summary: List countries
      description: Returns a list of countries where phone numbers are available.
      operationId: buy_countries_list
      security:
      - bearerAuth:
        - numbers:read
      x-fern-sdk-group-name:
      - buy
      - countries
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: numbers
      parameters:
      - name: text_enabled_only
        in: query
        description: When `true`, returns only countries that offer text-enabled phone numbers.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          headers: {}
          description: Returns the list of countries with available phone numbers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CountryListResponse'
              examples:
                default:
                  value:
                    countries:
                    - id: 8669
                      has_provinces_or_states: false
                      name: Argentina
                    - id: 8650
                      has_provinces_or_states: true
                      name: Australia
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
      deprecated: false
  /v1/buy/countries/{country_id}/regions:
    get:
      tags:
      - Buy
      summary: List regions
      description: Returns a list of regions (states or provinces) for countries where `has_provinces_or_states` is `true`.
      operationId: buy_regions_list
      security:
      - bearerAuth:
        - numbers:read
      x-fern-sdk-group-name:
      - buy
      - regions
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: numbers
      parameters:
      - name: country_id
        in: path
        description: The unique ID of the country.
        required: true
        style: simple
        schema:
          type: integer
          format: int32
          example: 1892
      - name: text_enabled_only
        in: query
        description: When `true`, returns only regions that offer text-enabled numbers.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Returns the list of regions.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RegionListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    regions:
                    - id: 13
                      name: Alabama
                    - id: 15
                      name: Arizona
                    - id: 16
                      name: Arkansas
                    - id: 17
                      name: California
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
        '422':
          $ref: '#/components/responses/CountryHasNoRegionsErrorResponse'
      deprecated: false
  /v1/buy/countries/{country_id}/cities:
    get:
      tags:
      - Buy
      summary: List cities
      description: 'Returns a list of cities for countries where

        `has_provinces_or_states` is `false`.'
      operationId: buy_cities_list
      security:
      - bearerAuth:
        - numbers:read
      x-fern-sdk-group-name:
      - buy
      - cities
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: numbers
      parameters:
      - name: country_id
        in: path
        description: The unique ID of the country.
        required: true
        style: simple
        schema:
          type: integer
          format: int32
          example: 1891
      - name: text_enabled_only
        in: query
        description: When `true`, returns only cities that offer text-enabled numbers.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Returns the list of cities.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CityListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    cities:
                    - area_code: 113
                      id: 128791
                      name: Buenos Aires
                    - area_code: 341
                      id: 132655
                      name: Rosario
                    - area_code: 351
                      id: 132656
                      name: Cordoba
                    - area_code: 381
                      id: 141803
                      name: Tucuman
                    - area_code: 387
                      id: 141986
                      name: Salta
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
  /v1/buy/countries/{country_id}/regions/{region_id}/cities:
    get:
      tags:
      - Buy
      summary: List region cities
      description: Returns a list of cities in the specified region for countries where `has_provinces_or_states` is `true`.
      operationId: buy_region_cities_list
      security:
      - bearerAuth:
        - numbers:read
      x-fern-sdk-group-name:
      - buy
      - regionCities
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: numbers
      parameters:
      - name: country_id
        in: path
        description: The unique ID of the country.
        required: true
        style: simple
        schema:
          type: integer
          format: int32
          example: 1891
      - name: region_id
        in: path
        description: The unique ID of the region.
        required: true
        style: simple
        schema:
          type: integer
          format: int32
          example: 821
      - name: text_enabled_only
        in: query
        description: When `true`, returns only cities that offer text-enabled numbers.
        style: form
        explode: true
        schema:
          type: boolean
      responses:
        '200':
          description: Returns the list of cities.
          headers: {}
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CityListResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    cities:
                    - area_code: 113
                      id: 128791
                      name: Buenos Aires
                    - area_code: 341
                      id: 132655
                      name: Rosario
                    - area_code: 351
                      id: 132656
                      name: Cordoba
                    - area_code: 381
                      id: 141803
                      name: Tucuman
                    - area_code: 387
                      id: 141986
                      name: Salta
        '400':
          $ref: '#/components/responses/BadRequestErrorResponse'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
  /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
      security:
      - bearerAuth:
        - numbers:read
      x-fern-sdk-group-name:
      - buy
      - numbers
      x-fern-sdk-method-name: list
      x-mcp:
        readOnly: true
        destructive: false
        openWorld: false
        expose: true
        toolset: numbers
      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:
                $ref: '#/components/schemas/AvailableNumberListResponse'
              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'
        '401':
          $ref: '#/components/responses/UnauthorizedErrorResponse'
        '403':
          $ref: '#/components/responses/ForbiddenErrorResponse'
        '404':
          $ref: '#/components/responses/NotFoundErrorResponse'
      deprecated: false
components:
  schemas:
    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>
    City:
      title: City
      required:
      - id
      - name
      - area_code
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          description: City ID.
          format: int32
          example: 3213
        name:
          type: string
          description: City name.
          example: Paris
        area_code:
          type: number
          description: Rate center.
    Region:
      title: Region
      required:
      - id
      - name
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          description: Region ID.
          format: int32
          example: 17
        name:
          type: string
          description: Region name.
          example: California
      description: State or province of the country, if applicable.
    DocumentType:
      title: DocumentType
      type: string
      description: 'Document type required to activate a phone number. One of: `id` - any form of ID,

        `address` - proof of address, `localaddress` - proof of local address within the country.'
      enum:
      - id
      - address
      - localaddress
    Country:
      title: Country
      required:
      - id
      - name
      - has_provinces_or_states
      type: object
      additionalProperties: false
      properties:
        id:
          type: integer
          description: Country ID.
          format: int32
          example: 8148
        name:
          type: string
          description: Country name.
          example: France
        has_provinces_or_states:
          type: boolean
          description: Indicates whether the country has regions.
          example: false
    CountryHasNoRegionsErrorResponse:
      title: CountryHasNoRegionsErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request succeeded.
          example: false
        message:
          type: string
          description: Human-readable error message.
          example: Country has no states or provinces
    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'
    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
    CountryListResponse:
      title: CountryListResponse
      required:
      - countries
      type: object
      additionalProperties: false
      properties:
        countries:
          type: array
          description: Countries where phone numbers are available.
          items:
            $ref: '#/components/schemas/Country'
    RegionListResponse:
      title: RegionListResponse
      required:
      - regions
      type: object
      additionalProperties: false
      properties:
        regions:
          type: array
          description: States or provinces available for the requested country.
          items:
            $ref: '#/components/schemas/Region'
    UnauthorizedErrorResponse:
      title: UnauthorizedErrorResponse
      type: object
      properties:
        success:
          type: boolean
          description: Indicates whether the request was successful. Always `false` for this error.
          example: false
        error:
          type: boolean
          description: Indicates that the response represents an error. Always `true` for this error.
          example: true
        message:
          type: string
          description: Human-readable description stating that authentication is missing or invalid.
          example: Unauthorized
    CityListResponse:
      title: CityListResponse
      required:
      - cities
      type: object
      additionalProperties: false
      properties:
        cities:
          type: array
          description: Cities available for the requested country or region.
          items:
            $ref: '#/components/schemas/City'
    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
    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:
            $ref: '#/components/schemas/DocumentType'
          description: Documents to activate the number.
          example:
          - address
        sms_enabled:
          type: boolean
          description: "Indicates whether the phone number can receive inbound\n 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.
    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.
  responses:
    NotFoundErrorResponse:
      description: Request failed. An object with the specified ID is not found.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFoundErrorResponse'
    UnauthorizedErrorResponse:
      description: Unauthorized
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/UnauthorizedErrorResponse'
    ForbiddenErrorResponse:
      description: Request failed. The feature is disabled for your account.
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ForbiddenErrorResponse'
    CountryHasNoRegionsErrorResponse:
      description: Country has no states or provinces
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/CountryHasNoRegionsErrorResponse'
    BadRequestErrorResponse:
      description: Request failed. Missing or invalid parameter <param_name>
      headers: {}
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
  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).

        '