Prometheus silence API

Everything related to Alertmanager silences

Operations 4

GET /silences #
POST /silences #
GET /silence/{silenceID} #
DELETE /silence/{silenceID} #

Documentation

Specifications

Schemas & Data

Other Resources

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-silence-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

prometheus-io-silence-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 0.0.1
  title: Alertmanager admin Silence 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: silence
  description: Everything related to Alertmanager silences
paths:
  /silences:
    get:
      tags:
      - silence
      operationId: getSilences
      description: Get a list of silences
      responses:
        '200':
          description: Get silences response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gettableSilences'
        '400':
          $ref: '#/components/responses/BadRequest'
        '500':
          $ref: '#/components/responses/InternalServerError'
      parameters:
      - name: filter
        in: query
        description: A matcher expression to filter silences. For example `alertname="MyAlert"`. It can be repeated to apply multiple matchers.
        required: false
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
    post:
      tags:
      - silence
      operationId: postSilences
      description: Post a new silence or update an existing one
      responses:
        '200':
          description: Create / update silence response
          content:
            application/json:
              schema:
                type: object
                properties:
                  silenceID:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          description: A silence with the specified ID was not found
          content:
            application/json:
              schema:
                type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/postableSilence'
        description: The silence to create
        required: true
  /silence/{silenceID}:
    parameters:
    - in: path
      name: silenceID
      required: true
      description: ID of the silence to get
      schema:
        type: string
        format: uuid
    get:
      tags:
      - silence
      operationId: getSilence
      description: Get a silence by its ID
      responses:
        '200':
          description: Get silence response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/gettableSilence'
        '404':
          description: A silence with the specified ID was not found
        '500':
          $ref: '#/components/responses/InternalServerError'
    delete:
      tags:
      - silence
      operationId: deleteSilence
      description: Delete a silence by its ID
      parameters:
      - in: path
        name: silenceID
        required: true
        description: ID of the silence to get
        schema:
          type: string
          format: uuid
      responses:
        '200':
          description: Delete silence response
        '404':
          description: A silence with the specified ID was not found
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: string
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            type: string
  schemas:
    postableSilence:
      allOf:
      - type: object
        properties:
          id:
            type: string
      - $ref: '#/components/schemas/silence'
    silenceStatus:
      type: object
      properties:
        state:
          type: string
          enum:
          - expired
          - active
          - pending
      required:
      - state
    gettableSilences:
      type: array
      items:
        $ref: '#/components/schemas/gettableSilence'
    matcher:
      type: object
      properties:
        name:
          type: string
        value:
          type: string
        isRegex:
          type: boolean
        isEqual:
          type: boolean
          default: true
      required:
      - name
      - value
      - isRegex
    labelSet:
      type: object
      additionalProperties:
        type: string
    silence:
      type: object
      properties:
        matchers:
          $ref: '#/components/schemas/matchers'
        startsAt:
          type: string
          format: date-time
        endsAt:
          type: string
          format: date-time
        createdBy:
          type: string
        comment:
          type: string
        annotations:
          $ref: '#/components/schemas/labelSet'
      required:
      - matchers
      - startsAt
      - endsAt
      - createdBy
      - comment
    gettableSilence:
      allOf:
      - type: object
        properties:
          id:
            type: string
          status:
            $ref: '#/components/schemas/silenceStatus'
          updatedAt:
            type: string
            format: date-time
        required:
        - id
        - status
        - updatedAt
        - annotations
      - $ref: '#/components/schemas/silence'
    matchers:
      type: array
      items:
        $ref: '#/components/schemas/matcher'
      minItems: 1