Microsoft Azure Long Running Operations API

The Long Running Operations API from Microsoft Azure, for long running operations.

GitHub OpenAPI

Operations 2

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 /phoneNumbers/operations/{operationId} Check a phone number operation's status · Microsoft Azure Gets An Operation By Its Id #
Ask an LLM
“Has my phone number purchase or search operation finished yet?”
“What status is a long-running phone numbers operation in?”
Tell an agent
Get phone numbers operation {operationId}.
Check the progress of long-running operation {operationId}.
DELETE /phoneNumbers/operations/{operationId} Cancel a phone number operation · Microsoft Azure Cancels An Operation By Its Id #
Ask an LLM
“Can I cancel a phone numbers operation that's still running?”
“How do I stop a pending long-running operation by its ID?”
Tell an agent destructive · confirm first
Cancel phone numbers operation {operationId}.
Abort pending operation {operationId}.

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:microsoft-azure-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. 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-long-running-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure PhoneNumbersClient Long Running Operations…
  description: The phone numbers client uses Azure Communication Services to purchase and manage phone numbers.
  version: 2022-01-11-preview2
tags:
- name: Long Running Operations
paths:
  /phoneNumbers/operations/{operationId}:
    get:
      tags:
      - Long Running Operations
      summary: Microsoft Azure Gets An Operation By Its Id
      operationId: microsoftAzurePhonenumbersGetoperation
      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: ../../../Common/stable/2021-03-07/common.json#/definitions/CommunicationErrorResponse
      x-ms-examples:
        Get long running operation status by operation id:
          $ref: ./examples/GetOperation.json
      description: Needs a more full description created.
    delete:
      tags:
      - Long Running Operations
      summary: Microsoft Azure Cancels An Operation By Its Id
      operationId: microsoftAzurePhonenumbersCanceloperation
      parameters:
      - in: path
        name: operationId
        description: The id of the operation
        required: true
        schema:
          type: string
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '204':
          description: Success
        default:
          description: Failure
          content:
            application/json:
              schema:
                $ref: ../../../Common/stable/2021-03-07/common.json#/definitions/CommunicationErrorResponse
      x-ms-examples:
        Delete long running operation with the given operation id:
          $ref: ./examples/DeleteOperation.json
      description: Needs a more full description created.
components:
  parameters:
    ApiVersionParameter:
      in: query
      name: api-version
      description: Version of API to invoke.
      required: true
      schema:
        type: string
  schemas:
    PhoneNumberOperation:
      description: Long running operation.
      required:
      - createdDateTime
      - id
      - operationType
      - status
      type: object
      properties:
        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: ../../../Common/stable/2021-03-07/common.json#/definitions/CommunicationError
        id:
          description: Id of operation.
          type: string
        operationType:
          description: The type of operation, e.g. Search
          enum:
          - purchase
          - releasePhoneNumber
          - search
          - updatePhoneNumberCapabilities
          type: string
          x-ms-enum:
            name: PhoneNumberOperationType
            modelAsString: true
        lastActionDateTime:
          format: date-time
          description: The most recent date that the operation was changed.
          type: string
          readOnly: true
  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'