Microsoft Azure Hook API

The Hook API from Microsoft Azure, for hook.

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 /hooks List notification hooks · Microsoft Azure List All Hooks #
Ask an LLM
“Which alert hooks have I set up for anomaly notifications?”
“Can I find a hook by name and page through the results?”
Tell an agent
List all my notification hooks.
Find hooks named {hook_name}, {page_size} per page.
POST /hooks Create a notification hook · Microsoft Azure Create A New Hook #
Ask an LLM
“How do I set up an email or webhook hook to receive alerts?”
“Can I add admins and an external link when creating a hook?”
Tell an agent
Create a {hook_type} hook named {hook_name}.
Create hook {hook_name} of type {hook_type} with admins {admins} and description {description}.
GET /hooks/{hookId} Get a notification hook · Microsoft Azure Get A Hook By Its Id #
Ask an LLM
“What settings does one of my alert hooks have?”
“Can I look up a hook's type and admins by its id?”
Tell an agent
Get hook {hook_id}.
Show the configuration of alert hook {hook_id}.
PATCH /hooks/{hookId} Update a notification hook · Microsoft Azure Update A Hook #
Ask an LLM
“Can I rename a hook or change who administers it?”
“What's the way to update the external link on an existing hook?”
Tell an agent
Rename {hook_type} hook {hook_id} to {hook_name}.
Set the external link on {hook_type} hook {hook_id} to {link}.
DELETE /hooks/{hookId} Delete a notification hook · Microsoft Azure Delete A Hook #
Ask an LLM
“How do I stop alerts going to a hook by deleting it?”
“Can I remove a hook I no longer use?”
Tell an agent destructive · confirm first
Delete hook {hook_id}.
Remove alert hook {hook_id} permanently.

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-hook-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-hook-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Metrics Advisor Hook API
  description: Microsoft Azure Metrics Advisor REST API (OpenAPI v2)
  version: '1.0'
security:
- apim_key: []
  ma_api_key: []
tags:
- name: Hook
paths:
  /hooks:
    get:
      tags:
      - Hook
      summary: Microsoft Azure List All Hooks
      operationId: microsoftAzureListhooks
      parameters:
      - in: query
        name: hookName
        description: filter hook by its name
        schema:
          type: string
      - in: query
        name: $skip
        description: for paging, skipped number
        schema:
          type: integer
          format: int32
      - in: query
        name: $maxpagesize
        description: the maximum number of items in one page
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HookList'
        default:
          description: Client error or server error (4xx or 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCode'
      x-ms-pageable:
        nextLinkName: '@nextLink'
      x-ms-examples:
        List all hooks:
          $ref: ./examples/listHooks.json
      description: Needs a more full description created.
    post:
      tags:
      - Hook
      summary: Microsoft Azure Create A New Hook
      operationId: microsoftAzureCreatehook
      responses:
        '201':
          description: Success
          headers:
            Location:
              description: Location of the newly created resource.
              schema:
                type: string
        default:
          description: Client error or server error (4xx or 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCode'
      x-ms-examples:
        Create a new hook:
          $ref: ./examples/createHook.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HookInfo'
        description: Create hook request
        required: true
  /hooks/{hookId}:
    get:
      tags:
      - Hook
      summary: Microsoft Azure Get A Hook By Its Id
      operationId: microsoftAzureGethook
      parameters:
      - in: path
        name: hookId
        description: Hook unique ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HookInfo'
        default:
          description: Client error or server error (4xx or 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCode'
      x-ms-examples:
        Get a hook by its id:
          $ref: ./examples/getHook.json
      description: Needs a more full description created.
    patch:
      tags:
      - Hook
      summary: Microsoft Azure Update A Hook
      operationId: microsoftAzureUpdatehook
      parameters:
      - in: path
        name: hookId
        description: Hook unique ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HookInfo'
        default:
          description: Client error or server error (4xx or 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCode'
      x-ms-examples:
        Update a hook:
          $ref: ./examples/updateHook.json
      description: Needs a more full description created.
      requestBody:
        content:
          application/merge-patch+json:
            schema:
              $ref: '#/components/schemas/HookInfoPatch'
        description: Update hook request
        required: true
    delete:
      tags:
      - Hook
      summary: Microsoft Azure Delete A Hook
      operationId: microsoftAzureDeletehook
      parameters:
      - in: path
        name: hookId
        description: Hook unique ID
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: The resource is deleted successfully or does not exist.
        default:
          description: Client error or server error (4xx or 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorCode'
      x-ms-examples:
        Delete a hook:
          $ref: ./examples/deleteHook.json
      description: Needs a more full description created.
components:
  schemas:
    HookInfoPatch:
      required:
      - hookType
      type: object
      properties:
        hookType:
          description: hook type
          enum:
          - Webhook
          - Email
          type: string
          x-ms-enum:
            name: HookType
            modelAsString: true
        hookName:
          description: hook unique name
          type: string
        description:
          description: hook description
          type: string
        externalLink:
          description: hook external link
          type: string
        admins:
          description: hook administrators
          uniqueItems: true
          type: array
          items:
            type: string
      discriminator:
        propertyName: hookType
    HookList:
      type: object
      properties:
        '@nextLink':
          type: string
          readOnly: true
        value:
          uniqueItems: true
          type: array
          items:
            $ref: '#/components/schemas/HookInfo'
          readOnly: true
    HookInfo:
      required:
      - hookName
      - hookType
      type: object
      properties:
        hookType:
          description: hook type
          enum:
          - Webhook
          - Email
          type: string
          x-ms-enum:
            name: HookType
            modelAsString: true
        hookId:
          format: uuid
          description: Hook unique id
          type: string
          readOnly: true
        hookName:
          description: hook unique name
          type: string
        description:
          description: hook description
          default: ''
          type: string
        externalLink:
          description: hook external link
          default: ''
          type: string
        admins:
          description: hook administrators
          uniqueItems: true
          type: array
          items:
            type: string
      discriminator:
        propertyName: hookType
    ErrorCode:
      type: object
      properties:
        message:
          type: string
        code:
          type: string
  securitySchemes:
    ma_api_key:
      type: apiKey
      name: x-api-key
      in: header
    apim_key:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
x-ms-parameterized-host:
  hostTemplate: '{endpoint}/metricsadvisor/v1.0'
  useSchemePrefix: false
  parameters:
  - $ref: '#/components/parameters/Endpoint'