Microsoft Azure Widgets API

The Widgets API from Microsoft Azure, for widgets.

GitHub OpenAPI

Operations 5

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 /widgets List widget resources · Microsoft Azure Get Widgets #
Ask an LLM
“Which widgets exist in this sample service?”
“Can I see every widget resource at once?”
Tell an agent
List all widgets.
Show every widget resource on API version {api_version}.
GET /widgets/{widgetName} Fetch a widget by name · Microsoft Azure Get Widgets Widgetname #
Ask an LLM
“What manufacturer is a particular widget from?”
“Can I look up one widget by its name?”
Tell an agent
Show widget {widgetName}.
Fetch the details of the widget called {widgetName}.
PATCH /widgets/{widgetName} Create or update a widget · Microsoft Azure Patch Widgets Widgetname #
Ask an LLM
“How do I create a widget and set who manufactured it?”
“Can I change the manufacturer of a widget that already exists?”
Tell an agent
Create widget {widgetName} made by manufacturer {manufacturerId}.
Set the manufacturer of widget {widgetName} to {manufacturerId}.
DELETE /widgets/{widgetName} Delete a widget · Microsoft Azure Delete Widgets Widgetname #
Ask an LLM
“Can I remove a widget I no longer need?”
“Does deleting a widget happen in the background?”
Tell an agent destructive · confirm first
Delete widget {widgetName}.
Start the asynchronous removal of widget {widgetName}.
GET /widgets/{widgetName}/operations/{operationId} Check a widget operation's status · Microsoft Azure Get Widgets Widgetname Operations Operationid #
Ask an LLM
“Has the background create or delete on my widget finished?”
“Can I poll a long-running widget operation?”
Tell an agent
Check the status of operation {operationId} on widget {widgetName}.
Tell me whether widget {widgetName}'s operation {operationId} completed.

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-widgets-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-widgets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Contoso Widget Manager Widgets API
  version: 2022-11-01-preview
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- AadOauth2Auth:
  - https://contoso.azure.com/.default
tags:
- name: Widgets
paths:
  /widgets:
    get:
      operationId: microsoftAzureWidgetsListwidgets
      description: List Widget resources
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagedWidgetSuite'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Widgets_ListWidgets:
          $ref: ./examples/Widgets_ListWidgetsSample.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Widgets
      tags:
      - Widgets
  /widgets/{widgetName}:
    get:
      operationId: microsoftAzureWidgetsGetwidget
      description: Fetch a Widget by name.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: widgetName
        in: path
        description: The widget name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetSuite'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Get widget by widget name.:
          $ref: ./examples/Widgets_GetWidgetSample.json
      summary: Microsoft Azure Get Widgets Widgetname
      tags:
      - Widgets
    patch:
      operationId: microsoftAzureWidgetsCreateorupdatewidget
      description: Creates or updates a Widget asynchronously.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: widgetName
        in: path
        description: The widget name.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          headers:
            Operation-Location:
              description: The location for monitoring the operation state.
              schema:
                type: string
                format: uri
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetSuite'
        '201':
          description: The request has succeeded and a new resource has been created as a result.
          headers:
            Operation-Location:
              description: The location for monitoring the operation state.
              schema:
                type: string
                format: uri
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetSuite'
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Widgets_CreateOrUpdateWidget:
          $ref: ./examples/Widgets_CreateOrUpdateWidgetSample.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Patch Widgets Widgetname
      tags:
      - Widgets
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/WidgetSuiteCreateOrUpdate'
        description: The resource instance.
        required: true
    delete:
      operationId: microsoftAzureWidgetsDeletewidget
      description: Delete a Widget asynchronously.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: widgetName
        in: path
        description: The widget name.
        required: true
        schema:
          type: string
      responses:
        '202':
          description: The request has been accepted for processing, but processing has not yet completed.
          headers:
            Operation-Location:
              description: The location for monitoring the operation state.
              schema:
                type: string
                format: uri
          content:
            application/json:
              schema:
                type: object
                description: Provides status details for long running operations.
                properties:
                  id:
                    type: string
                    description: The unique ID of the operation.
                  status:
                    $ref: '#/components/schemas/Azure.Core.Foundations.OperationState'
                    description: The status of the operation
                  error:
                    $ref: '#/components/schemas/Azure.Core.Foundations.Error'
                    description: Error object that describes the error when status is "Failed".
                required:
                - id
                - status
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Delete widget by widget name using long-running operation.:
          $ref: ./examples/Widgets_DeleteWidgetSample.json
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Widgets Widgetname
      tags:
      - Widgets
  /widgets/{widgetName}/operations/{operationId}:
    get:
      operationId: microsoftAzureWidgetsGetwidgetoperationstatus
      description: Gets status of a Widget operation.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: widgetName
        in: path
        description: The widget name.
        required: true
        schema:
          type: string
      - name: operationId
        in: path
        description: The unique ID of the operation.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                type: object
                description: Provides status details for long running operations.
                properties:
                  id:
                    type: string
                    description: The unique ID of the operation.
                  status:
                    $ref: '#/components/schemas/Azure.Core.Foundations.OperationState'
                    description: The status of the operation
                  error:
                    $ref: '#/components/schemas/Azure.Core.Foundations.Error'
                    description: Error object that describes the error when status is "Failed".
                  result:
                    $ref: '#/components/schemas/WidgetSuite'
                    description: The result of the operation.
                required:
                - id
                - status
        default:
          description: An unexpected error response.
          headers:
            x-ms-error-code:
              description: String error code indicating what went wrong.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Azure.Core.Foundations.ErrorResponse'
      x-ms-examples:
        Widgets_GetWidgetOperationStatus:
          $ref: ./examples/Widgets_GetWidgetOperationStatusSample.json
      summary: Microsoft Azure Get Widgets Widgetname Operations Operationid
      tags:
      - Widgets
components:
  schemas:
    Azure.Core.Foundations.OperationState:
      type: string
      description: Enum describing allowed operation states.
      enum:
      - NotStarted
      - Running
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: OperationState
        modelAsString: true
        values:
        - name: NotStarted
          value: NotStarted
          description: The operation has not started.
        - name: Running
          value: Running
          description: The operation is in progress.
        - name: Succeeded
          value: Succeeded
          description: The operation has completed successfully.
        - name: Failed
          value: Failed
          description: The operation has failed.
        - name: Canceled
          value: Canceled
          description: The operation has been canceled by the user.
    Azure.Core.Foundations.Error:
      type: object
      description: The error object.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        message:
          type: string
          description: A human-readable representation of the error.
        target:
          type: string
          description: The target of the error.
        details:
          type: array
          description: An array of details about specific errors that led to this reported error.
          items:
            $ref: '#/components/schemas/Azure.Core.Foundations.Error'
          x-ms-identifiers: []
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: An object containing more specific information than the current object about the error.
      required:
      - code
      - message
    Azure.Core.Foundations.InnerError:
      type: object
      description: An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
      properties:
        code:
          type: string
          description: One of a server-defined set of error codes.
        innererror:
          $ref: '#/components/schemas/Azure.Core.Foundations.InnerError'
          description: Inner error.
    FakedSharedModelCreateOrUpdate:
      type: object
      description: Faked shared model
      properties:
        tag:
          type: string
          description: The tag.
        createdAt:
          type: string
          format: date-time
          description: The created date.
    WidgetSuiteCreateOrUpdate:
      type: object
      description: A widget.
      properties:
        manufacturerId:
          type: string
          description: The ID of the widget's manufacturer.
        sharedModel:
          $ref: '#/components/schemas/FakedSharedModelCreateOrUpdate'
          description: The faked shared model.
    PagedWidgetSuite:
      type: object
      description: Paged collection of WidgetSuite items
      properties:
        value:
          type: array
          description: The WidgetSuite items on this page
          items:
            $ref: '#/components/schemas/WidgetSuite'
          x-ms-identifiers: []
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    Azure.Core.Foundations.ErrorResponse:
      type: object
      description: A response containing error details.
      properties:
        error:
          $ref: '#/components/schemas/Azure.Core.Foundations.Error'
          description: The error object.
      required:
      - error
    FakedSharedModel:
      type: object
      description: Faked shared model
      properties:
        tag:
          type: string
          description: The tag.
        createdAt:
          type: string
          format: date-time
          description: The created date.
      required:
      - tag
      - createdAt
    WidgetSuite:
      type: object
      description: A widget.
      properties:
        name:
          type: string
          description: The widget name.
          readOnly: true
        manufacturerId:
          type: string
          description: The ID of the widget's manufacturer.
        sharedModel:
          $ref: '#/components/schemas/FakedSharedModel'
          description: The faked shared model.
      required:
      - name
      - manufacturerId
  parameters:
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
  securitySchemes:
    AadOauth2Auth:
      type: oauth2
      flows:
        authorizationCode:
          scopes:
            https://contoso.azure.com/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
          tokenUrl: https://login.microsoftonline.com/common/oauth2/token
      description: The Azure Active Directory OAuth2 Flow