Better Stack Heartbeats API

The Heartbeats API from Better Stack — create and manage heartbeat monitors that alert when a cron job or background task stops reporting.

Operations 6

GET /heartbeats List heartbeats #
POST /heartbeats Create heartbeat #
GET /heartbeats/{id} Get heartbeat #
PATCH /heartbeats/{id} Update heartbeat #
DELETE /heartbeats/{id} Remove heartbeat #
GET /heartbeats/{id}/availability Heartbeat availability #

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/betterstack-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

betterstack-heartbeats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Better Stack Uptime Heartbeats API
  description: 'Programmatic access to Better Stack''s uptime monitoring, heartbeat monitoring,

    incident management, status pages, escalation policies, and on-call surfaces.

    Responses follow the JSON:API specification.


    This document is a best-effort reconstruction from Better Stack''s public

    documentation and is not exhaustive. Refer to

    https://betterstack.com/docs/uptime/api/ for authoritative reference.

    '
  version: 2.0.0
  contact:
    name: Better Stack
    url: https://betterstack.com/docs/uptime/api/getting-started/
  license:
    name: Proprietary
servers:
- url: https://uptime.betterstack.com/api/v2
  description: Better Stack Uptime API (v2 surface — monitors, heartbeats, status pages, on-call)
- url: https://uptime.betterstack.com/api/v3
  description: Better Stack Uptime API (v3 surface — incidents)
security:
- bearerAuth: []
tags:
- name: Heartbeats
paths:
  /heartbeats:
    get:
      tags:
      - Heartbeats
      summary: List heartbeats
      operationId: listHeartbeats
      parameters:
      - $ref: '#/components/parameters/PerPage'
      - $ref: '#/components/parameters/Page'
      responses:
        '200':
          description: A page of heartbeats.
    post:
      tags:
      - Heartbeats
      summary: Create heartbeat
      operationId: createHeartbeat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeartbeatCreate'
      responses:
        '201':
          description: Created heartbeat.
  /heartbeats/{id}:
    parameters:
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - Heartbeats
      summary: Get heartbeat
      operationId: getHeartbeat
      responses:
        '200':
          description: Heartbeat.
    patch:
      tags:
      - Heartbeats
      summary: Update heartbeat
      operationId: updateHeartbeat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HeartbeatCreate'
      responses:
        '200':
          description: Updated heartbeat.
    delete:
      tags:
      - Heartbeats
      summary: Remove heartbeat
      operationId: deleteHeartbeat
      responses:
        '204':
          description: Removed.
  /heartbeats/{id}/availability:
    parameters:
    - $ref: '#/components/parameters/Id'
    get:
      tags:
      - Heartbeats
      summary: Heartbeat availability
      operationId: getHeartbeatAvailability
      responses:
        '200':
          description: Availability summary.
components:
  parameters:
    Page:
      name: page
      in: query
      schema:
        type: integer
        minimum: 1
    Id:
      name: id
      in: path
      required: true
      schema:
        type: string
    PerPage:
      name: per_page
      in: query
      schema:
        type: integer
        minimum: 1
        maximum: 50
  schemas:
    HeartbeatCreate:
      type: object
      required:
      - name
      - period
      properties:
        name:
          type: string
        period:
          type: integer
          description: Expected interval in seconds.
        grace:
          type: integer
          description: Grace period in seconds.
        call:
          type: boolean
        sms:
          type: boolean
        email:
          type: boolean
        push:
          type: boolean
        team_wait:
          type: integer
        paused:
          type: boolean
        policy_id:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Bearer token. Provide either a Global API Token (account-wide) or a

        team-scoped Uptime API Token. Issued from Better Stack → API tokens.

        '