PhoneNumberSearchResult

The result of a phone number search operation.

Microsoft AzureCPaaSCallingChatCommunicationsContact CenterEmailIdentityMessagingPhone NumbersRoomsRoutingSIPSMSTelephonyTokensVideoVoiceWhatsApp

Properties

Name Type Description
searchId string The search id.
phoneNumbers array The phone numbers that are available. Can be fewer than the desired search quantity.
phoneNumberType string The phone number's type, e.g. geographic, tollFree, mobile.
assignmentType string Phone number's assignment type.
capabilities object
cost object
searchExpiresBy string The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z.
isAgreementToNotResellRequired boolean Indicates if do not resell agreement is required. If true, the phone numbers cannot be acquired unless the customer provides explicit agreement to not resell them.
errorCode integer The error code of the search.
error string Mapping Error Messages to Codes
View JSON Schema on GitHub

JSON Schema

microsoft-azure-communication-services-phone-number-search-result-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-communication-services/json-schema/microsoft-azure-communication-services-phone-number-search-result-schema.json",
  "title": "PhoneNumberSearchResult",
  "description": "The result of a phone number search operation.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-communication-services-phonenumbers-api-openapi.yml#/components/schemas/PhoneNumberSearchResult",
  "required": [
    "assignmentType",
    "capabilities",
    "cost",
    "phoneNumbers",
    "phoneNumberType",
    "searchExpiresBy",
    "searchId"
  ],
  "type": "object",
  "properties": {
    "searchId": {
      "description": "The search id.",
      "type": "string"
    },
    "phoneNumbers": {
      "description": "The phone numbers that are available. Can be fewer than the desired search quantity.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "phoneNumberType": {
      "description": "The phone number's type, e.g. geographic, tollFree, mobile.",
      "enum": [
        "geographic",
        "tollFree",
        "mobile"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "PhoneNumberType",
        "modelAsString": true
      }
    },
    "assignmentType": {
      "description": "Phone number's assignment type.",
      "enum": [
        "person",
        "application"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "PhoneNumberAssignmentType",
        "modelAsString": true
      }
    },
    "capabilities": {
      "$ref": "#/$defs/PhoneNumberCapabilities"
    },
    "cost": {
      "$ref": "#/$defs/PhoneNumberCost"
    },
    "searchExpiresBy": {
      "format": "date-time",
      "description": "The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z.",
      "type": "string"
    },
    "isAgreementToNotResellRequired": {
      "description": "Indicates if do not resell agreement is required. If true, the phone numbers cannot be acquired unless the customer provides explicit agreement to not resell them.",
      "type": "boolean"
    },
    "errorCode": {
      "format": "int32",
      "description": "The error code of the search.",
      "type": "integer"
    },
    "error": {
      "description": "Mapping Error Messages to Codes",
      "enum": [
        "NoError",
        "UnknownErrorCode",
        "OutOfStock",
        "AuthorizationDenied",
        "MissingAddress",
        "InvalidAddress",
        "InvalidOfferModel",
        "NotEnoughLicenses",
        "NoWallet",
        "NotEnoughCredit",
        "NumbersPartiallyAcquired",
        "AllNumbersNotAcquired",
        "ReservationExpired",
        "PurchaseFailed",
        "BillingUnavailable",
        "ProvisioningFailed",
        "UnknownSearchError"
      ],
      "type": "string",
      "x-ms-enum": {
        "name": "Error",
        "modelAsString": true
      }
    }
  },
  "$defs": {
    "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
          }
        }
      }
    },
    "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
          }
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-communication-services-phone-number-search-result"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. See our Privacy Policy and Terms.

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