PingZen Heartbeat Ping API
The heartbeat-ping API from PingZen — 6 operation(s) for heartbeat-ping.
The heartbeat-ping API from PingZen — 6 operation(s) for heartbeat-ping.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/pingzen-dev:pingzen-dev-heartbeat-ping-api"
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.
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: 3.2.0
info:
title: PingZen Heartbeat Ping API
description: Service availability monitoring platform. Monitor your websites, APIs, and services with multi-protocol support.
version: 1.0.0
tags:
- name: heartbeat-ping
paths:
/api/v1/ping/{ping_key}/{slug}/start:
post:
tags:
- heartbeat-ping
summary: Record start signal (secure URL)
description: Record a job start signal via secure URL.
operationId: record_start_secure_api_v1_ping__ping_key___slug__start_post
parameters:
- name: ping_key
in: path
required: true
schema:
type: string
title: Ping Key
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ping/{ping_key}/{slug}/success:
post:
tags:
- heartbeat-ping
summary: Record success signal (secure URL)
description: Record a job success signal via secure URL.
operationId: record_success_secure_api_v1_ping__ping_key___slug__success_post
parameters:
- name: ping_key
in: path
required: true
schema:
type: string
title: Ping Key
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ping/{ping_key}/{slug}/fail:
post:
tags:
- heartbeat-ping
summary: Record fail signal (secure URL)
description: Record a job failure signal via secure URL.
operationId: record_fail_secure_api_v1_ping__ping_key___slug__fail_post
parameters:
- name: ping_key
in: path
required: true
schema:
type: string
title: Ping Key
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ping/{ping_key}/{slug}/{exit_code}:
post:
tags:
- heartbeat-ping
summary: Record a shell exit code (secure URL)
description: 0 is success. 1-255 is a failure. The body, if any, is the job's log.
operationId: record_exit_code_secure_api_v1_ping__ping_key___slug___exit_code__post
parameters:
- name: ping_key
in: path
required: true
schema:
type: string
title: Ping Key
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: exit_code
in: path
required: true
schema:
type: integer
title: Exit Code
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ping/{part1}/{part2}:
post:
tags:
- heartbeat-ping
summary: Record ping (secure or legacy signal)
description: 'Handle two-segment ping URL (secure ping_key/slug OR legacy slug/signal).
Resolution order:
1. If part2 is a signal name (start/success/fail): try legacy first
(common case for existing monitors), then secure
2. Otherwise: try secure first, then legacy slug=part1
This avoids unnecessary DB lookups for the common legacy signal case.'
operationId: record_ping_two_parts_api_v1_ping__part1___part2__post
parameters:
- name: part1
in: path
required: true
schema:
type: string
title: Part1
- name: part2
in: path
required: true
schema:
type: string
title: Part2
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- heartbeat-ping
summary: Record ping GET (secure or legacy signal)
description: Handle two-segment GET ping URL (secure or legacy).
operationId: record_ping_two_parts_get_api_v1_ping__part1___part2__get
parameters:
- name: part1
in: path
required: true
schema:
type: string
title: Part1
- name: part2
in: path
required: true
schema:
type: string
title: Part2
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ping/{slug}:
post:
tags:
- heartbeat-ping
summary: Record ping
description: Record a heartbeat ping (single-slug URL).
operationId: record_ping_api_v1_ping__slug__post
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
get:
tags:
- heartbeat-ping
summary: Record ping GET
description: Record a ping using GET.
operationId: record_ping_get_api_v1_ping__slug__get
parameters:
- name: slug
in: path
required: true
schema:
type: string
title: Slug
- name: secret
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Secret
- name: X-Secret
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: X-Secret
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PingAckResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
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'
PingAckResponse:
properties:
ok:
type: boolean
title: Ok
description: Whether ping was recorded
default: true
monitor_id:
type: string
title: Monitor Id
description: Monitor UUID
signal:
$ref: '#/components/schemas/HeartbeatSignal'
description: Recorded signal
status:
$ref: '#/components/schemas/HeartbeatStatus'
description: Current monitor status
received_at:
type: string
format: date-time
title: Received At
description: When ping was received
type: object
required:
- monitor_id
- signal
- status
- received_at
title: PingAckResponse
description: Response schema for ping acknowledgment (public endpoint).
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'
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
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key