OpsGenie Heartbeats API

Operations for creating, managing, and pinging heartbeat monitors.

Operations 8

POST /v2/heartbeats Create heartbeat #
GET /v2/heartbeats List heartbeats #
GET /v2/heartbeats/{name} Get heartbeat #
PATCH /v2/heartbeats/{name} Update heartbeat #
DELETE /v2/heartbeats/{name} Delete heartbeat #
GET /v2/heartbeats/{name}/ping Ping heartbeat #
POST /v2/heartbeats/{name}/enable Enable heartbeat #
POST /v2/heartbeats/{name}/disable Disable heartbeat #

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/opsgenie-heartbeats-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-heartbeats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OpsGenie Account Heartbeats API
  description: The OpsGenie Account API provides endpoints for retrieving account-level information and configuration settings. Developers can use this API to access details about their OpsGenie account, including plan information and account metadata. It serves as a foundational API for administrative operations and account management within the OpsGenie platform.
  version: 2.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: Heartbeats
  description: Operations for creating, managing, and pinging heartbeat monitors.
paths:
  /v2/heartbeats:
    post:
      operationId: createHeartbeat
      summary: Create heartbeat
      description: Creates a new heartbeat monitor with the specified configuration including name, interval, and alert settings.
      tags:
      - Heartbeats
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateHeartbeatRequest'
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatResponse'
        '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: listHeartbeats
      summary: List heartbeats
      description: Returns a list of all heartbeat monitors in the account.
      tags:
      - Heartbeats
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListHeartbeatsResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/heartbeats/{name}:
    get:
      operationId: getHeartbeat
      summary: Get heartbeat
      description: Retrieves the details of a specific heartbeat by its name.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    patch:
      operationId: updateHeartbeat
      summary: Update heartbeat
      description: Updates the specified heartbeat's configuration.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateHeartbeatRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '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: deleteHeartbeat
      summary: Delete heartbeat
      description: Deletes the specified heartbeat monitor.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      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'
  /v2/heartbeats/{name}/ping:
    get:
      operationId: pingHeartbeat
      summary: Ping heartbeat
      description: Sends a ping to the specified heartbeat to indicate the monitored system is healthy. If no ping is received within the configured interval, OpsGenie generates an alert.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      responses:
        '202':
          description: Accepted
          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'
  /v2/heartbeats/{name}/enable:
    post:
      operationId: enableHeartbeat
      summary: Enable heartbeat
      description: Enables the specified heartbeat monitor.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v2/heartbeats/{name}/disable:
    post:
      operationId: disableHeartbeat
      summary: Disable heartbeat
      description: Disables the specified heartbeat monitor.
      tags:
      - Heartbeats
      parameters:
      - $ref: '#/components/parameters/HeartbeatName'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatResponse'
        '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:
    CreateHeartbeatRequest:
      type: object
      required:
      - name
      - interval
      - intervalUnit
      - enabled
      properties:
        name:
          type: string
          description: Name of the heartbeat.
        description:
          type: string
          description: Description of what the heartbeat monitors.
        interval:
          type: integer
          minimum: 1
          description: Interval duration for the heartbeat ping.
        intervalUnit:
          type: string
          enum:
          - minutes
          - hours
          - days
          description: Unit for the heartbeat interval.
        enabled:
          type: boolean
          description: Whether the heartbeat is active.
        ownerTeam:
          type: object
          description: Team that owns the heartbeat.
          properties:
            id:
              type: string
              description: Team ID.
            name:
              type: string
              description: Team name.
        alertMessage:
          type: string
          description: Custom alert message when the heartbeat expires.
        alertTags:
          type: array
          items:
            type: string
          description: Tags to add to the alert created by an expired heartbeat.
        alertPriority:
          type: string
          enum:
          - P1
          - P2
          - P3
          - P4
          - P5
          description: Priority of the alert created by an expired heartbeat.
    ListHeartbeatsResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            heartbeats:
              type: array
              items:
                $ref: '#/components/schemas/Heartbeat'
              description: List of heartbeats.
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    UpdateHeartbeatRequest:
      type: object
      properties:
        description:
          type: string
          description: Updated description.
        interval:
          type: integer
          minimum: 1
          description: Updated interval.
        intervalUnit:
          type: string
          enum:
          - minutes
          - hours
          - days
          description: Updated interval unit.
        enabled:
          type: boolean
          description: Updated enabled status.
        ownerTeam:
          type: object
          description: Updated owner team.
          properties:
            id:
              type: string
              description: Team ID.
            name:
              type: string
              description: Team name.
        alertMessage:
          type: string
          description: Updated alert message.
        alertTags:
          type: array
          items:
            type: string
          description: Updated alert tags.
        alertPriority:
          type: string
          enum:
          - P1
          - P2
          - P3
          - P4
          - P5
          description: Updated alert priority.
    Heartbeat:
      type: object
      properties:
        name:
          type: string
          description: Name of the heartbeat.
        description:
          type: string
          description: Description of the heartbeat.
        interval:
          type: integer
          description: Heartbeat interval.
        intervalUnit:
          type: string
          enum:
          - minutes
          - hours
          - days
          description: Unit for the interval.
        enabled:
          type: boolean
          description: Whether the heartbeat is enabled.
        expired:
          type: boolean
          description: Whether the heartbeat has expired.
        lastPingTime:
          type: string
          format: date-time
          description: Time of the last successful ping.
        ownerTeam:
          type: object
          properties:
            id:
              type: string
              description: Team ID.
            name:
              type: string
              description: Team name.
          description: Owner team.
        alertMessage:
          type: string
          description: Alert message for expired heartbeats.
        alertTags:
          type: array
          items:
            type: string
          description: Alert tags.
        alertPriority:
          type: string
          description: Alert priority.
    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.
    HeartbeatResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Heartbeat'
        took:
          type: number
          description: Time taken in seconds.
        requestId:
          type: string
          description: Unique identifier for the request.
    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.
  parameters:
    HeartbeatName:
      name: name
      in: path
      required: true
      description: Name of the heartbeat monitor.
      schema:
        type: string
  securitySchemes:
    genieKey:
      type: apiKey
      in: header
      name: Authorization
      description: API key authentication using the GenieKey scheme.
externalDocs:
  description: OpsGenie Account API Documentation
  url: https://docs.opsgenie.com/docs/account-api