Heartbeats: Retrieve All
This documentation entry provides a comprehensive guide to using the "Retrieve All" heartbeats endpoint, including all relevant details about the request, response, and data structures.
Endpoint
GET /api/heartbeats/
/api/heartbeats/Retrieve a list of all heartbeat monitors associated with your account.
Request
HTTP Request
GET https://uptimekeep.com/api/heartbeats/Headers
Authorization
String
Bearer token for API authentication.
Query Parameters
page
Integer
(Optional) The page number to retrieve.
1
results_per_page
Integer
(Optional) Number of results per page. Allowed values: 10, 25, 50, 100, 250, 500, 1000.
25
Example of a request:
curl --request GET \
--url 'https://uptimekeep.com/api/heartbeats/' \
--header 'Authorization: Bearer {api_key}'Response
A successful response returns a JSON object with the list of heartbeat monitors and associated metadata.
Response Example
Fields
Data Object
id
Integer
Unique identifier for the heartbeat monitor.
project_id
Integer
ID of the associated project (if applicable).
name
String
Name of the heartbeat monitor.
code
String
Unique code assigned to the heartbeat monitor.
settings
Object
Configuration settings for the heartbeat monitor (see below for details).
is_ok
Integer
Status of the heartbeat (1 for OK, 0 for Not OK).
uptime
Float
Uptime percentage of the monitored task or service.
downtime
Float
Downtime percentage of the monitored task or service.
total_runs
Integer
Total number of successful runs detected.
total_missed_runs
Integer
Total number of missed runs.
last_run_datetime
String
Timestamp of the last successful run (in YYYY-MM-DD HH:MM:SS format).
notifications
Object
Notification settings for the heartbeat monitor (see below for details).
is_enabled
Boolean
Indicates if the heartbeat monitor is currently active.
datetime
String
Timestamp when the monitor was created (in YYYY-MM-DD HH:MM:SS format).
Settings Object
run_interval
Integer
Interval between expected runs (e.g., 1, 5, 15).
run_interval_type
String
Type of interval (e.g., minutes, hours, days).
run_interval_grace
Integer
Grace period allowed after the expected run interval.
run_interval_grace_type
String
Type of grace period (e.g., seconds, minutes).
Notifications Object
email_is_enabled
Boolean
Indicates if email notifications are enabled.
webhook
String
Webhook URL for notifications (if configured).
slack
String
Slack webhook URL for notifications (if configured).
twilio
String
Twilio credentials for SMS notifications (if configured).
Meta Object
page
Integer
Current page number of the results.
results_per_page
Integer
Number of results per page.
total
Integer
Total number of heartbeat monitors.
total_pages
Integer
Total number of pages available based on the current query.
Links Object
first
String
URL of the first page of results.
last
String
URL of the last page of results.
next
String
URL of the next page of results (if applicable).
prev
String
URL of the previous page of results (if applicable).
self
String
URL of the current page of results.
Errors
If the request fails, the API will return an error message with an appropriate HTTP status code.
Last updated