Prometheus Alert API

Everything related to Alertmanager alerts

GitHub OpenAPI
Business capability
SaaS Platform Operations Management BC-4220

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 /alerts List active and silenced alerts · Get alerts #
Ask an LLM
“Which alerts are currently firing and which are silenced or inhibited?”
“Can I filter the alert list to one receiver or a matcher expression?”
Tell an agent
List all active alerts.
Show alerts matching {filter}.
POST /alerts Send new alerts to Alertmanager · Post alerts #
Ask an LLM
“How do I push new alerts into Alertmanager?”
“Can I create alerts for a specific receiver?”
Tell an agent
Create new alerts.
Send these new alerts to Alertmanager.

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/prometheus-io:prometheus-io-alert-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

prometheus-io-alert-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 0.0.1
  title: Alertmanager Alert API
  description: API of the Prometheus Alertmanager (https://github.com/prometheus/alertmanager)
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: /api/v2/
tags:
- name: Alert
  description: Everything related to Alertmanager alerts
paths:
  /alerts:
    get:
      tags:
      - Alert
      operationId: getAlerts
      description: Get a list of alerts
      parameters:
      - in: query
        name: active
        description: Include active alerts in results. If false, excludes active alerts and returns only suppressed (silenced or inhibited) alerts.
        schema:
          type: boolean
          default: true
      - in: query
        name: silenced
        description: Include silenced alerts in results. If false, excludes silenced alerts. Note that true (default) shows both silenced and non-silenced alerts.
        schema:
          type: boolean
          default: true
      - in: query
        name: inhibited
        description: Include inhibited alerts in results. If false, excludes inhibited alerts. Note that true (default) shows both inhibited and non-inhibited alerts.
        schema:
          type: boolean
          default: true
      - in: query
        name: unprocessed
        description: Include unprocessed alerts in results. If false, excludes unprocessed alerts. Note that true (default) shows both processed and unprocessed alerts.
        schema:
          type: boolean
          default: true
      - name: filter
        in: query
        description: A matcher expression to filter alerts. For example `alertname="MyAlert"`. It can be repeated to apply multiple matchers.
        required: false
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - name: receiver
        in: query
        description: A regex matching receivers to filter alerts by
        required: false
        schema:
          type: string
      - $ref: '#/components/parameters/receiverMatchers'
      responses:
        '200':
          description: Get alerts response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gettableAlerts'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalServerError'
      summary: Get alerts
      x-summary-source: derived
    post:
      tags:
      - Alert
      operationId: postAlerts
      description: Create new Alerts
      responses:
        '200':
          description: Create alerts response
        '500':
          $ref: '#/components/responses/InternalServerError'
        '400':
          $ref: '#/components/responses/BadRequest'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postableAlerts'
        description: The alerts to create
        required: true
      summary: Post alerts
      x-summary-source: derived
components:
  schemas:
    gettableAlerts:
      type: array
      items:
        $ref: '#/components/schemas/gettableAlert'
    gettableAlert:
      allOf:
      - type: object
        properties:
          annotations:
            $ref: '#/components/schemas/labelSet'
          receivers:
            type: array
            items:
              $ref: '#/components/schemas/receiverReference'
          fingerprint:
            type: string
          startsAt:
            type: string
            format: date-time
          updatedAt:
            type: string
            format: date-time
          endsAt:
            type: string
            format: date-time
          status:
            $ref: '#/components/schemas/alertStatus'
        required:
        - receivers
        - fingerprint
        - startsAt
        - updatedAt
        - endsAt
        - annotations
        - status
      - $ref: '#/components/schemas/alert'
    alertStatus:
      type: object
      properties:
        state:
          type: string
          enum:
          - unprocessed
          - active
          - suppressed
        silencedBy:
          type: array
          items:
            type: string
        inhibitedBy:
          type: array
          items:
            type: string
        mutedBy:
          type: array
          items:
            type: string
      required:
      - state
      - silencedBy
      - inhibitedBy
      - mutedBy
    postableAlerts:
      type: array
      items:
        $ref: '#/components/schemas/postableAlert'
    labelSet:
      type: object
      additionalProperties:
        type: string
    receiverReference:
      type: object
      properties:
        name:
          type: string
      required:
      - name
    postableAlert:
      allOf:
      - type: object
        properties:
          startsAt:
            type: string
            format: date-time
          endsAt:
            type: string
            format: date-time
          annotations:
            $ref: '#/components/schemas/labelSet'
      - $ref: '#/components/schemas/alert'
    alert:
      type: object
      properties:
        labels:
          $ref: '#/components/schemas/labelSet'
        generatorURL:
          type: string
          format: uri
      required:
      - labels
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: string
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: string
  parameters:
    receiverMatchers:
      name: receiver_matchers
      in: query
      description: A matcher expression to filter by receiver labels. For example `owner="my-team"`. Can be repeated to apply multiple matchers.
      required: false
      style: form
      explode: true
      schema:
        type: array
        items:
          type: string