Microsoft Azure Communication Services Long running operations API

The Long running operations API from Microsoft Azure Communication Services — 1 operation(s) for long running operations.

GitHub OpenAPI

Operations 2

GET /phoneNumbers/operations/{operationId} Gets an operation by its id #
DELETE /phoneNumbers/operations/{operationId} Cancels an operation by its id #

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-long-running-operations-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. 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-long-running-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PhoneNumbersClient Long running operations API
  description: The phone numbers client uses Azure Communication Services to purchase and manage phone numbers.
  version: '2025-06-01'
tags:
- name: Long running operations
paths:
  /phoneNumbers/operations/{operationId}:
    get:
      tags:
      - Long running operations
      summary: Gets an operation by its id
      operationId: PhoneNumbers_GetOperation
      parameters:
      - in: path
        name: operationId
        description: The id of the operation
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: When the operation is completed, query the final result of the operation using the URL specified in the 'Location' attribute in the response header.
          headers:
            Location:
              description: Url to retrieve the final result after operation completes.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneNumberOperation'
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
    delete:
      tags:
      - Long running operations
      summary: Cancels an operation by its id
      operationId: PhoneNumbers_CancelOperation
      parameters:
      - in: path
        name: operationId
        description: The id of the operation
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '204':
          description: No Content
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CommunicationErrorResponse'
components:
  schemas:
    PhoneNumberOperation:
      required:
      - createdDateTime
      - id
      - operationType
      - status
      type: object
      properties:
        operationType:
          description: The type of operation, e.g. Search
          enum:
          - purchase
          - releasePhoneNumber
          - search
          - updatePhoneNumberCapabilities
          - reservationPurchase
          type: string
          x-ms-enum:
            name: PhoneNumberOperationType
            modelAsString: true
        status:
          description: Status of operation.
          enum:
          - notStarted
          - running
          - succeeded
          - failed
          type: string
          x-ms-enum:
            name: PhoneNumberOperationStatus
            modelAsString: true
        resourceLocation:
          description: URL for retrieving the result of the operation, if any.
          type: string
        createdDateTime:
          format: date-time
          description: The date that the operation was created.
          type: string
        error:
          $ref: '#/components/schemas/CommunicationError'
        id:
          description: Id of operation.
          type: string
        lastActionDateTime:
          format: date-time
          description: The most recent date that the operation was changed.
          type: string
          readOnly: true
    CommunicationErrorResponse:
      description: The Communication Services error.
      type: object
      required:
      - error
      properties:
        error:
          description: The Communication Services error.
          $ref: '#/components/schemas/CommunicationError'
    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'