OpsGenie Maintenance API

Operations for creating, listing, retrieving, and deleting maintenance windows.

Operations 5

POST /v1/maintenance Create maintenance #
GET /v1/maintenance List maintenances #
GET /v1/maintenance/{id} Get maintenance #
DELETE /v1/maintenance/{id} Delete maintenance #
POST /v1/maintenance/{id}/cancel Cancel maintenance #

Documentation

Specifications

Schemas & Data

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/opsgenie-maintenance-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

opsgenie-maintenance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpsGenie Maintenance API
  description: The OpsGenie Maintenance API allows developers to manage maintenance windows that suppress alert notifications during planned maintenance periods. It provides endpoints for creating, updating, listing, and deleting maintenance windows with configurable time ranges and rules for which integrations or policies are affected. This helps operations teams avoid unnecessary alerting during scheduled downtime.
  version: 1.0.0
  contact:
    name: Atlassian Support
    url: https://support.atlassian.com/opsgenie/
  termsOfService: https://www.atlassian.com/legal/cloud-terms-of-service
servers:
- url: https://api.opsgenie.com
  description: Production Server
- url: https://api.eu.opsgenie.com
  description: EU Production Server
security:
- genieKey: []
tags:
- name: Maintenance
  description: Operations for creating, listing, retrieving, and deleting maintenance windows.
paths:
  /v1/maintenance:
    post:
      operationId: createMaintenance
      summary: Create maintenance
      description: Creates a new maintenance window that suppresses alert notifications during the specified time period.
      tags:
      - Maintenance
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateMaintenanceRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMaintenanceResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listMaintenances
      summary: List maintenances
      description: Returns a list of maintenance windows filtered by type.
      tags:
      - Maintenance
      parameters:
      - name: type
        in: query
        description: Filter by maintenance type. Non-expired returns active and future windows.
        schema:
          type: string
          enum:
          - all
          - past
          - non-expired
          default: non-expired
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListMaintenancesResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/maintenance/{id}:
    get:
      operationId: getMaintenance
      summary: Get maintenance
      description: Retrieves the details of a specific maintenance window by its ID.
      tags:
      - Maintenance
      parameters:
      - name: id
        in: path
        required: true
        description: Unique identifier of the maintenance window.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMaintenanceResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    delete:
      operationId: deleteMaintenance
      summary: Delete maintenance
      description: Deletes the specified maintenance window.
      tags:
      - Maintenance
      parameters:
      - name: id
        in: path
        required: true
        description: Unique identifier of the maintenance window.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/maintenance/{id}/cancel:
    post:
      operationId: cancelMaintenance
      summary: Cancel maintenance
      description: Cancels an active or scheduled maintenance window.
      tags:
      - Maintenance
      parameters:
      - name: id
        in: path
        required: true
        description: Unique identifier of the maintenance window.
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message.
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    CreateMaintenanceRequest:
      type: object
      required:
      - description
      - time
      - rules
      properties:
        description:
          type: string
          description: Description of the maintenance window.
        time:
          type: object
          required:
          - type
          description: Time configuration for the maintenance window.
          properties:
            type:
              type: string
              enum:
              - for-5-minutes
              - for-30-minutes
              - for-1-hour
              - indefinitely
              - schedule
              description: Type of maintenance duration.
            startDate:
              type: string
              format: date-time
              description: Start date for scheduled maintenance.
            endDate:
              type: string
              format: date-time
              description: End date for scheduled maintenance.
        rules:
          type: array
          description: Rules defining which integrations or policies are affected.
          items:
            type: object
            properties:
              entity:
                type: object
                properties:
                  id:
                    type: string
                    description: Entity ID (integration or policy ID).
                  type:
                    type: string
                    enum:
                    - integration
                    - policy
                    description: Type of entity affected.
                description: Entity affected by the maintenance rule.
    SuccessResponse:
      type: object
      properties:
        result:
          type: string
          description: Result message.
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    Maintenance:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier.
        status:
          type: string
          enum:
          - active
          - planned
          - past
          - cancelled
          description: Current status of the maintenance.
        description:
          type: string
          description: Description of the maintenance window.
        time:
          type: object
          properties:
            type:
              type: string
              description: Type of maintenance duration.
            startDate:
              type: string
              format: date-time
              description: Start date.
            endDate:
              type: string
              format: date-time
              description: End date.
          description: Time configuration.
        rules:
          type: array
          items:
            type: object
            properties:
              entity:
                type: object
                properties:
                  id:
                    type: string
                    description: Entity ID.
                  type:
                    type: string
                    description: Entity type.
                description: Affected entity.
          description: Maintenance rules.
    GetMaintenanceResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Maintenance'
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    ListMaintenancesResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Maintenance'
          description: List of maintenance windows.
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
  securitySchemes:
    genieKey:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication using the GenieKey scheme.
externalDocs:
  description: OpsGenie Maintenance API Documentation
  url: https://docs.opsgenie.com/docs/maintenance-api