PingZen Heartbeats API

The heartbeats API from PingZen — 7 operation(s) for heartbeats.

GitHub OpenAPI

Operations 10

POST /api/v1/heartbeats Create heartbeat monitor #
GET /api/v1/heartbeats List heartbeat monitors #
GET /api/v1/heartbeats/{monitor_id} Get heartbeat monitor #
PATCH /api/v1/heartbeats/{monitor_id} Update heartbeat monitor #
DELETE /api/v1/heartbeats/{monitor_id} Delete heartbeat monitor #
POST /api/v1/heartbeats/{monitor_id}/pause Pause heartbeat monitor #
POST /api/v1/heartbeats/{monitor_id}/resume Resume heartbeat monitor #
POST /api/v1/heartbeats/{monitor_id}/regenerate-secret Regenerate secret #
GET /api/v1/heartbeats/{monitor_id}/stats Get monitor statistics #
GET /api/v1/heartbeats/{monitor_id}/pings List pings #

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/pingzen-dev:pingzen-dev-heartbeats-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

pingzen-dev-heartbeats-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PingZen Heartbeats API
  description: Service availability monitoring platform. Monitor your websites, APIs, and services with multi-protocol support.
  version: 1.0.0
tags:
- name: heartbeats
paths:
  /api/v1/heartbeats:
    post:
      tags:
      - heartbeats
      summary: Create heartbeat monitor
      description: Create a new heartbeat monitor for cron job/task monitoring.
      operationId: create_heartbeat_monitor_api_v1_heartbeats_post
      security:
      - HTTPBearer: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateHeartbeatMonitorRequest'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorWithSecretResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - heartbeats
      summary: List heartbeat monitors
      description: Get all heartbeat monitors for the current user.
      operationId: list_heartbeat_monitors_api_v1_heartbeats_get
      security:
      - HTTPBearer: []
      parameters:
      - name: workspace_id
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          description: Filter by workspace
          title: Workspace Id
        description: Filter by workspace
      - name: include_inactive
        in: query
        required: false
        schema:
          type: boolean
          description: Include inactive monitors
          default: false
          title: Include Inactive
        description: Include inactive monitors
      - name: page
        in: query
        required: false
        schema:
          type: integer
          maximum: 10000
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 20
          title: Page Size
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}:
    get:
      tags:
      - heartbeats
      summary: Get heartbeat monitor
      description: Get details of a specific heartbeat monitor.
      operationId: get_heartbeat_monitor_api_v1_heartbeats__monitor_id__get
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    patch:
      tags:
      - heartbeats
      summary: Update heartbeat monitor
      description: Update a heartbeat monitor configuration (partial update).
      operationId: update_heartbeat_monitor_api_v1_heartbeats__monitor_id__patch
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateHeartbeatMonitorRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - heartbeats
      summary: Delete heartbeat monitor
      description: Delete a heartbeat monitor and all its ping history.
      operationId: delete_heartbeat_monitor_api_v1_heartbeats__monitor_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '204':
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}/pause:
    post:
      tags:
      - heartbeats
      summary: Pause heartbeat monitor
      description: Pause a heartbeat monitor (stops alerting on missed pings).
      operationId: pause_heartbeat_monitor_api_v1_heartbeats__monitor_id__pause_post
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}/resume:
    post:
      tags:
      - heartbeats
      summary: Resume heartbeat monitor
      description: Resume a paused heartbeat monitor.
      operationId: resume_heartbeat_monitor_api_v1_heartbeats__monitor_id__resume_post
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatMonitorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}/regenerate-secret:
    post:
      tags:
      - heartbeats
      summary: Regenerate secret
      description: Regenerate the secret token for a heartbeat monitor.
      operationId: regenerate_secret_api_v1_heartbeats__monitor_id__regenerate_secret_post
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/presentation__api__v1__schemas__heartbeats__RegenerateSecretResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}/stats:
    get:
      tags:
      - heartbeats
      summary: Get monitor statistics
      description: Get statistics for a heartbeat monitor.
      operationId: get_heartbeat_stats_api_v1_heartbeats__monitor_id__stats_get
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatStatsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/heartbeats/{monitor_id}/pings:
    get:
      tags:
      - heartbeats
      summary: List pings
      description: Get ping history for a heartbeat monitor.
      operationId: list_pings_api_v1_heartbeats__monitor_id__pings_get
      security:
      - HTTPBearer: []
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          title: Monitor Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          maximum: 10000
          minimum: 1
          description: Page number
          default: 1
          title: Page
        description: Page number
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Items per page
          default: 50
          title: Page Size
        description: Items per page
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HeartbeatPingListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HeartbeatMonitorListResponse:
      properties:
        monitors:
          items:
            $ref: '#/components/schemas/HeartbeatMonitorResponse'
          type: array
          title: Monitors
          description: List of heartbeat monitors
        total:
          type: integer
          title: Total
          description: Total number of monitors
        page:
          type: integer
          title: Page
          description: Current page
        page_size:
          type: integer
          title: Page Size
          description: Page size
      type: object
      required:
      - monitors
      - total
      - page
      - page_size
      title: HeartbeatMonitorListResponse
      description: Response schema for paginated heartbeat monitor list.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    HeartbeatMonitorResponse:
      properties:
        id:
          type: string
          title: Id
          description: Heartbeat monitor UUID
        name:
          type: string
          title: Name
          description: Display name
        user_id:
          type: integer
          title: User Id
          description: Owner user ID
        workspace_id:
          type: integer
          title: Workspace Id
          description: Workspace ID
        slug:
          type: string
          title: Slug
          description: URL slug for ping endpoint
        ping_key:
          type: string
          title: Ping Key
          description: Workspace ping key (secret component of URL)
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: Monitor description
        expected_interval_seconds:
          type: integer
          title: Expected Interval Seconds
          description: Expected ping interval
        grace_period_seconds:
          type: integer
          title: Grace Period Seconds
          description: Grace period before DOWN
        run_timeout_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Run Timeout Seconds
          description: Unfinished-run limit. Null means off.
        run_started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run Started At
          description: When the open /start arrived, if a limit is on
        down_cause:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatDownCauseResponse'
          - type: 'null'
          description: Frozen when the monitor became DOWN
        status:
          $ref: '#/components/schemas/HeartbeatStatus'
          description: Current monitor status
        last_ping_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Ping At
          description: Last received ping timestamp
        last_signal:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatSignal'
          - type: 'null'
          description: Last ping signal type
        last_payload:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Last Payload
          description: Last ping payload data
        total_pings:
          type: integer
          title: Total Pings
          description: Total pings received
        consecutive_misses:
          type: integer
          title: Consecutive Misses
          description: Consecutive missed pings
        is_active:
          type: boolean
          title: Is Active
          description: Whether monitor is active
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
        cadence_hint:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatCadenceHintResponse'
          - type: 'null'
          description: Set when the interval or grace does not fit how the job pings
      type: object
      required:
      - id
      - name
      - user_id
      - workspace_id
      - slug
      - ping_key
      - expected_interval_seconds
      - grace_period_seconds
      - status
      - total_pings
      - consecutive_misses
      - is_active
      title: HeartbeatMonitorResponse
      description: Response schema for a heartbeat monitor.
    HeartbeatStatsResponse:
      properties:
        monitor_id:
          type: string
          title: Monitor Id
          description: Monitor ID
        total_pings:
          type: integer
          title: Total Pings
          description: Total pings received
        pings_last_24h:
          type: integer
          title: Pings Last 24H
          description: Pings in last 24 hours
        pings_last_7d:
          type: integer
          title: Pings Last 7D
          description: Pings in last 7 days
        uptime_percent_24h:
          anyOf:
          - type: number
          - type: 'null'
          title: Uptime Percent 24H
          description: Share of the last 24 h during which the monitor was not DOWN (overdue or after a fail signal); null when the window is shorter than one interval or the monitor has never pinged
        uptime_percent_7d:
          anyOf:
          - type: number
          - type: 'null'
          title: Uptime Percent 7D
          description: Share of the last 7 days during which the monitor was not DOWN; null when the window is shorter than one interval or the monitor has never pinged
        avg_interval_seconds:
          anyOf:
          - type: number
          - type: 'null'
          title: Avg Interval Seconds
          description: 'Typical gap between pings in the last 24 h: the median, so one outage does not skew it (the name predates the switch from the mean)'
        last_ping_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Ping At
          description: Last ping timestamp
        status:
          $ref: '#/components/schemas/HeartbeatStatus'
          description: Current status
      type: object
      required:
      - monitor_id
      - total_pings
      - pings_last_24h
      - pings_last_7d
      - status
      title: HeartbeatStatsResponse
      description: Response schema for heartbeat monitor statistics.
    HeartbeatStatus:
      type: string
      enum:
      - pending
      - up
      - down
      - paused
      title: HeartbeatStatus
      description: 'Status of a heartbeat monitor.


        - PENDING: No pings received yet (new monitor)

        - UP: Receiving pings within expected interval

        - DOWN: Missed expected ping (grace period exceeded)

        - PAUSED: Monitoring temporarily disabled'
    CreateHeartbeatMonitorRequest:
      properties:
        name:
          type: string
          maxLength: 200
          minLength: 1
          title: Name
          description: Display name for the heartbeat monitor
        slug:
          anyOf:
          - type: string
            maxLength: 50
          - type: 'null'
          title: Slug
          description: Custom URL slug (auto-generated from name if not provided)
        description:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Description
          description: Optional description of what job/task is being monitored
        expected_interval_seconds:
          type: integer
          maximum: 2592000.0
          minimum: 60.0
          title: Expected Interval Seconds
          description: Expected interval between pings in seconds (min 60, max 30 days)
          default: 3600
        grace_period_seconds:
          anyOf:
          - type: integer
            maximum: 86400.0
            minimum: 0.0
          - type: 'null'
          title: Grace Period Seconds
          description: 'Grace period before marking as DOWN (max 24 hours). When omitted: two intervals for intervals up to 5 minutes, otherwise 300.'
        run_timeout_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Run Timeout Seconds
          description: Unfinished-run limit. 0 or omitted leaves it off. 60..604800 turns it on.
      type: object
      required:
      - name
      title: CreateHeartbeatMonitorRequest
      description: Request schema for creating a heartbeat monitor.
    UpdateHeartbeatMonitorRequest:
      properties:
        name:
          anyOf:
          - type: string
            maxLength: 200
            minLength: 1
          - type: 'null'
          title: Name
          description: Display name
        description:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Description
          description: Optional description
        expected_interval_seconds:
          anyOf:
          - type: integer
            maximum: 2592000.0
            minimum: 60.0
          - type: 'null'
          title: Expected Interval Seconds
          description: Expected interval between pings
        grace_period_seconds:
          anyOf:
          - type: integer
            maximum: 86400.0
            minimum: 0.0
          - type: 'null'
          title: Grace Period Seconds
          description: Grace period before DOWN
        is_active:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Is Active
          description: Whether monitor is active
        run_timeout_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Run Timeout Seconds
          description: 0 turns off the unfinished-run limit. 60..604800 sets it. Omit to leave it.
      type: object
      title: UpdateHeartbeatMonitorRequest
      description: Request schema for updating a heartbeat monitor.
    HeartbeatCadenceHintResponse:
      properties:
        kind:
          type: string
          enum:
          - interval_too_long
          - grace_too_short
          title: Kind
          description: 'interval_too_long: pings arrive at least twice as often as the interval, so a missing job is noticed late; grace_too_short: pings late by seconds crossed interval + grace at least 3 times (false DOWN)'
        observed_interval_seconds:
          type: integer
          title: Observed Interval Seconds
          description: Median gap between runs, 7 days
        suggested_interval_seconds:
          type: integer
          title: Suggested Interval Seconds
          description: Interval preset to switch to
        suggested_grace_period_seconds:
          type: integer
          title: Suggested Grace Period Seconds
          description: Grace preset to switch to
        late_pings_7d:
          type: integer
          title: Late Pings 7D
          description: Runs later than interval + grace (but under twice that), 7 days
      type: object
      required:
      - kind
      - observed_interval_seconds
      - suggested_interval_seconds
      - suggested_grace_period_seconds
      - late_pings_7d
      title: HeartbeatCadenceHintResponse
      description: The declared interval or grace does not match the last 7 days of pings.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HeartbeatSignal:
      type: string
      enum:
      - ping
      - start
      - success
      - fail
      title: HeartbeatSignal
      description: 'Signal types for heartbeat monitoring.


        Signals indicate the state of a monitored job/cron task:

        - PING: Generic heartbeat ping (job is alive)

        - START: Job has started execution

        - SUCCESS: Job completed successfully

        - FAIL: Job failed with error'
    HeartbeatPingListResponse:
      properties:
        pings:
          items:
            $ref: '#/components/schemas/HeartbeatPingResponse'
          type: array
          title: Pings
          description: List of pings
        total:
          type: integer
          title: Total
          description: Total number of pings
        page:
          type: integer
          title: Page
          description: Current page
        page_size:
          type: integer
          title: Page Size
          description: Page size
      type: object
      required:
      - pings
      - total
      - page
      - page_size
      title: HeartbeatPingListResponse
      description: Response schema for paginated ping list.
    HeartbeatPingResponse:
      properties:
        id:
          type: string
          title: Id
          description: Ping UUID
        heartbeat_monitor_id:
          type: string
          title: Heartbeat Monitor Id
          description: Parent monitor UUID
        signal:
          $ref: '#/components/schemas/HeartbeatSignal'
          description: Signal type
        payload:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Payload
          description: Ping payload data
        duration_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Duration Ms
          description: Job duration in ms
        ip_address:
          anyOf:
          - type: string
          - type: 'null'
          title: Ip Address
          description: Source IP address
        user_agent:
          anyOf:
          - type: string
          - type: 'null'
          title: User Agent
          description: User agent string
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When ping was received
        line:
          anyOf:
          - type: string
          - type: 'null'
          title: Line
          description: The same one-line tail the alert shows for this ping's body.
          readOnly: true
      type: object
      required:
      - id
      - heartbeat_monitor_id
      - signal
      - created_at
      - line
      title: HeartbeatPingResponse
      description: Response schema for a heartbeat ping record.
    HeartbeatDownCauseResponse:
      properties:
        kind:
          type: string
          enum:
          - fail_signal
          - exit_code
          - missed
          - run_timeout
          title: Kind
        reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Reason
        exit_code:
          anyOf:
          - type: integer
          - type: 'null'
          title: Exit Code
      type: object
      required:
      - kind
      title: HeartbeatDownCauseResponse
      description: Why the monitor is DOWN. The job's own words stay in reason, untranslated.
    presentation__api__v1__schemas__heartbeats__RegenerateSecretResponse:
      properties:
        monitor_id:
          type: string
          title: Monitor Id
          description: Monitor ID
        secret:
          type: string
          title: Secret
          description: New secret (shown once)
        regenerated_at:
          type: string
          format: date-time
          title: Regenerated At
          description: When secret was regenerated
      type: object
      required:
      - monitor_id
      - secret
      - regenerated_at
      title: RegenerateSecretResponse
      description: Response schema for secret regeneration.
    HeartbeatMonitorWithSecretResponse:
      properties:
        id:
          type: string
          title: Id
          description: Heartbeat monitor UUID
        name:
          type: string
          title: Name
          description: Display name
        user_id:
          type: integer
          title: User Id
          description: Owner user ID
        workspace_id:
          type: integer
          title: Workspace Id
          description: Workspace ID
        slug:
          type: string
          title: Slug
          description: URL slug for ping endpoint
        ping_key:
          type: string
          title: Ping Key
          description: Workspace ping key (secret component of URL)
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
          description: Monitor description
        expected_interval_seconds:
          type: integer
          title: Expected Interval Seconds
          description: Expected ping interval
        grace_period_seconds:
          type: integer
          title: Grace Period Seconds
          description: Grace period before DOWN
        run_timeout_seconds:
          anyOf:
          - type: integer
          - type: 'null'
          title: Run Timeout Seconds
          description: Unfinished-run limit. Null means off.
        run_started_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Run Started At
          description: When the open /start arrived, if a limit is on
        down_cause:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatDownCauseResponse'
          - type: 'null'
          description: Frozen when the monitor became DOWN
        status:
          $ref: '#/components/schemas/HeartbeatStatus'
          description: Current monitor status
        last_ping_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Last Ping At
          description: Last received ping timestamp
        last_signal:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatSignal'
          - type: 'null'
          description: Last ping signal type
        last_payload:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Last Payload
          description: Last ping payload data
        total_pings:
          type: integer
          title: Total Pings
          description: Total pings received
        consecutive_misses:
          type: integer
          title: Consecutive Misses
          description: Consecutive missed pings
        is_active:
          type: boolean
          title: Is Active
          description: Whether monitor is active
        created_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Created At
        updated_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated At
        cadence_hint:
          anyOf:
          - $ref: '#/components/schemas/HeartbeatCadenceHintResponse'
          - type: 'null'
          description: Set when the interval or grace does not fit how the job pings
        secret:
          anyOf:
          - type: string
          - type: 'null'
          title: Secret
          description: Secret for authenticated pings (None if disabled)
      type: object
      required:
      - id
      - name
      - user_id
      - workspace_id
      - slug
      - ping_key
      - expected_interval_seconds
      - grace_period_seconds
      - status
      - total_pings
      - consecutive_misses
      - is_active
      title: HeartbeatMonitorWithSecretResponse
      description: Response schema including secret (only shown on create).
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
    APIKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key