Microsoft Azure Communication Services Browse for available countries, cities and area codes API

The Browse for available countries, cities and area codes API from Microsoft Azure Communication Services — 4 operation(s) for browse for available countries, cities and area codes.

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 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /availablePhoneNumbers/countries/{countryCode}/areaCodes List area codes with available numbers · Gets the list of available area codes #
Ask an LLM
“Which area codes in the US have toll-free numbers available?”
“Can I find geographic area codes in a specific state?”
Tell an agent
List area codes in {countryCode} for {phoneNumberType} numbers.
Find area codes in {countryCode} for {phoneNumberType} numbers in {locality}.
GET /availablePhoneNumbers/countries List countries that support phone numbers · Gets the list of supported countries #
Ask an LLM
“Which countries can I buy phone numbers in?”
“What country codes are supported for phone number availability?”
Tell an agent
List the countries that support phone numbers.
Show supported countries for phone number availability.
GET /availablePhoneNumbers/countries/{countryCode}/localities List cities with available phone numbers · Gets the list of cities or towns with available phone numbers #
Ask an LLM
“Which cities in Canada have local phone numbers available?”
“Can I narrow the available cities to one state?”
Tell an agent
List cities in {countryCode} with available phone numbers.
Find available cities in {countryCode} for {phoneNumberType} numbers in {administrativeDivision}.
GET /availablePhoneNumbers/countries/{countryCode}/offerings List phone number offerings and rates · List available offerings of capabilities with rates for the given country #
Ask an LLM
“What are the rates for toll-free numbers in the US?”
“Can I see offerings for numbers assigned to an application?”
Tell an agent
List phone number offerings and rates in {countryCode}.
Show {phoneNumberType} offerings in {countryCode} for {assignmentType} 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/microsoft-azure-communication-services:microsoft-azure-communication-services-browse-for-available-countries-cities-and-area-codes-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

microsoft-azure-communication-services-browse-for-available-countries-cities-and-area-codes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PhoneNumbersClient Browse for available countries, cities…
  description: The phone numbers client uses Azure Communication Services to purchase and manage phone numbers.
  version: '2025-06-01'
tags:
- name: Browse for available countries, cities and area codes
paths:
  /availablePhoneNumbers/countries/{countryCode}/areaCodes:
    get:
      tags:
      - Browse for available countries, cities and area codes
      summary: Gets the list of available area codes
      operationId: PhoneNumbers_ListAreaCodes
      parameters:
      - in: path
        name: countryCode
        description: The ISO 3166-2 country code, e.g. US.
        required: true
        schema:
          type: string
      - in: query
        name: phoneNumberType
        description: Filter by numberType, e.g. Geographic, TollFree, Mobile.
        required: true
        x-ms-enum:
          name: PhoneNumberType
          modelAsString: true
        schema:
          type: string
          enum:
          - geographic
          - tollFree
          - mobile
      - in: query
        name: skip
        description: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0.
        schema:
          type: integer
          format: int32
          default: 0
      - in: query
        name: maxPageSize
        description: An optional parameter for how many entries to return, for pagination purposes. The default value is 100.
        schema:
          type: integer
          format: int32
          default: 100
      - in: query
        name: assignmentType
        description: Filter by assignmentType, e.g. Person, Application.
        x-ms-enum:
          name: PhoneNumberAssignmentType
          modelAsString: true
        schema:
          type: string
          enum:
          - person
          - application
      - in: query
        name: locality
        description: The name of locality or town in which to search for the area code. This is required if the number type is Geographic.
        schema:
          type: string
      - in: query
        name: administrativeDivision
        description: The name of the state or province in which to search for the area code.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - in: header
        name: accept-language
        description: The locale to display in the localized fields in the response. e.g. 'en-US'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberAreaCodes'
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: areaCodes
  /availablePhoneNumbers/countries:
    get:
      tags:
      - Browse for available countries, cities and area codes
      summary: Gets the list of supported countries
      operationId: PhoneNumbers_ListAvailableCountries
      parameters:
      - in: query
        name: skip
        description: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0.
        schema:
          type: integer
          format: int32
          default: 0
      - in: query
        name: maxPageSize
        description: An optional parameter for how many entries to return, for pagination purposes. The default value is 100.
        schema:
          type: integer
          format: int32
          default: 100
      - $ref: '#/components/parameters/ApiVersionParameter'
      - in: header
        name: accept-language
        description: The locale to display in the localized fields in the response. e.g. 'en-US'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberCountries'
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: countries
  /availablePhoneNumbers/countries/{countryCode}/localities:
    get:
      tags:
      - Browse for available countries, cities and area codes
      summary: Gets the list of cities or towns with available phone numbers
      operationId: PhoneNumbers_ListAvailableLocalities
      parameters:
      - in: path
        name: countryCode
        description: The ISO 3166-2 country code, e.g. US.
        required: true
        schema:
          type: string
      - in: query
        name: skip
        description: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0.
        schema:
          type: integer
          format: int32
          default: 0
      - in: query
        name: maxPageSize
        description: An optional parameter for how many entries to return, for pagination purposes. The default value is 100.
        schema:
          type: integer
          format: int32
          default: 100
      - in: query
        name: administrativeDivision
        description: An optional parameter for the name of the state or province in which to search for the area code.
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      - in: header
        name: accept-language
        description: The locale to display in the localized fields in the response. e.g. 'en-US'
        schema:
          type: string
      - in: query
        name: phoneNumberType
        description: Filter by numberType, e.g. Geographic, TollFree, Mobile.
        x-ms-enum:
          name: PhoneNumberType
          modelAsString: true
        schema:
          type: string
          enum:
          - geographic
          - tollFree
          - mobile
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberLocalities'
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: phoneNumberLocalities
  /availablePhoneNumbers/countries/{countryCode}/offerings:
    get:
      tags:
      - Browse for available countries, cities and area codes
      summary: List available offerings of capabilities with rates for the given country
      operationId: PhoneNumbers_ListOfferings
      parameters:
      - in: path
        name: countryCode
        description: The ISO 3166-2 country code, e.g. US.
        required: true
        schema:
          type: string
      - in: query
        name: skip
        description: An optional parameter for how many entries to skip, for pagination purposes. The default value is 0.
        schema:
          type: integer
          format: int32
          default: 0
      - in: query
        name: maxPageSize
        description: An optional parameter for how many entries to return, for pagination purposes. The default value is 100.
        schema:
          type: integer
          format: int32
          default: 100
      - in: query
        name: phoneNumberType
        description: Filter by numberType, e.g. Geographic, TollFree, Mobile.
        x-ms-enum:
          name: PhoneNumberType
          modelAsString: true
        schema:
          type: string
          enum:
          - geographic
          - tollFree
          - mobile
      - in: query
        name: assignmentType
        description: Filter by assignmentType, e.g. Person, Application.
        x-ms-enum:
          name: PhoneNumberAssignmentType
          modelAsString: true
        schema:
          type: string
          enum:
          - person
          - application
      - $ref: '#/components/parameters/ApiVersionParameter'
      - in: header
        name: accept-language
        description: The locale to display in the localized fields in the response. e.g. 'en-US'
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OfferingsResponse'
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
        itemName: phoneNumberOfferings
components:
  schemas:
    PhoneNumberCapabilities:
      description: Capabilities of a phone number.
      required:
      - calling
      - sms
      type: object
      properties:
        calling:
          description: Capability value for calling.
          enum:
          - none
          - inbound
          - outbound
          - inbound+outbound
          type: string
          x-ms-enum:
            name: PhoneNumberCapabilityType
            modelAsString: true
        sms:
          description: Capability value for SMS.
          enum:
          - none
          - inbound
          - outbound
          - inbound+outbound
          type: string
          x-ms-enum:
            name: PhoneNumberCapabilityType
            modelAsString: true
    PhoneNumberAdministrativeDivision:
      description: Represents an administrative division. e.g. state or province.
      required:
      - abbreviatedName
      - localizedName
      type: object
      properties:
        localizedName:
          description: Represents the localized name of the administrative division of the locality. e.g. state or province localized name.
          type: string
        abbreviatedName:
          description: Represents the abbreviated name of the administrative division of the locality. e.g. state or province abbreviation such as WA (Washington).
          type: string
    PhoneNumberCountry:
      description: Represents a country.
      required:
      - countryCode
      - localizedName
      type: object
      properties:
        localizedName:
          description: Represents the name of the country.
          type: string
        countryCode:
          description: Represents the abbreviated name of the country.
          type: string
    PhoneNumberCost:
      description: The incurred cost for a single phone number.
      required:
      - amount
      - billingFrequency
      - currencyCode
      type: object
      properties:
        amount:
          format: double
          description: The cost amount.
          type: number
        currencyCode:
          description: The ISO 4217 currency code for the cost amount, e.g. USD.
          type: string
        billingFrequency:
          description: The frequency with which the cost gets billed.
          enum:
          - monthly
          type: string
          x-ms-enum:
            name: BillingFrequency
            modelAsString: true
    PhoneNumberLocalities:
      description: Represents a wrapper around a list of cities or towns.
      type: object
      properties:
        phoneNumberLocalities:
          description: Represents the underlying list of localities, e.g. cities or town.
          type: array
          items:
            $ref: '#/components/schemas/PhoneNumberLocality'
        nextLink:
          description: Represents the URL link to the next page.
          type: string
    OfferingsResponse:
      description: Represents a wrapper around a list of offerings.
      type: object
      properties:
        phoneNumberOfferings:
          description: Represents the underlying list of offerings.
          type: array
          items:
            $ref: '#/components/schemas/PhoneNumberOffering'
        nextLink:
          description: Represents the URL link to the next page.
          type: string
    PhoneNumberAreaCodes:
      description: The list of available area codes.
      required:
      - areaCodes
      type: object
      properties:
        areaCodes:
          description: Represents a list of available toll-free area codes.
          type: array
          items:
            $ref: '#/components/schemas/PhoneNumberAreaCode'
        nextLink:
          description: Represents the URL link to the next page.
          type: string
    PhoneNumberAreaCode:
      description: Represents an Area Code.
      type: object
      properties:
        areaCode:
          description: An area code.
          type: string
    CommunicationErrorResponse:
      description: The Communication Services error.
      type: object
      required:
      - error
      properties:
        error:
          description: The Communication Services error.
          $ref: '#/components/schemas/CommunicationError'
    PhoneNumberCountries:
      description: Represents a wrapper around a list of countries.
      type: object
      properties:
        countries:
          description: Represents the underlying list of countries.
          type: array
          items:
            $ref: '#/components/schemas/PhoneNumberCountry'
        nextLink:
          description: Represents the URL link to the next page
          type: string
    PhoneNumberLocality:
      description: Represents a locality.
      required:
      - localizedName
      type: object
      properties:
        localizedName:
          description: Represents the localized name of the locality.
          type: string
        administrativeDivision:
          $ref: '#/components/schemas/PhoneNumberAdministrativeDivision'
    PhoneNumberOffering:
      description: Represents a phone number capability offering
      required:
      - cost
      type: object
      properties:
        phoneNumberType:
          description: Represents the number type of the offering.
          enum:
          - geographic
          - tollFree
          - mobile
          type: string
          x-ms-enum:
            name: PhoneNumberType
            modelAsString: true
        assignmentType:
          description: Represents the assignment type of the offering.
          enum:
          - person
          - application
          type: string
          x-ms-enum:
            name: PhoneNumberAssignmentType
            modelAsString: true
        availableCapabilities:
          $ref: '#/components/schemas/PhoneNumberCapabilities'
        cost:
          $ref: '#/components/schemas/PhoneNumberCost'
    CommunicationError:
      description: The Communication Services error.
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          description: The error code.
        message:
          type: string
          description: The error message.
        target:
          type: string
          readOnly: true
          description: The error target.
        details:
          type: array
          items:
            $ref: '#/components/schemas/CommunicationError'
          readOnly: true
          description: Further details about specific errors that led to this error.
        innererror:
          x-ms-client-name: innerError
          readOnly: true
          $ref: '#/components/schemas/CommunicationError'
          description: The inner error if any.
  parameters:
    ApiVersionParameter:
      in: query
      name: api-version
      description: Version of API to invoke
      required: true
      x-ms-parameter-location: client
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/Endpoint'