Send a heartbeat (GET)
Send a heartbeat ping (GET). Use this from scripts or cron jobs to signal completion. Note: This endpoint uses oonchk.com, not api.onlineornot.com.
This operation does not require authentication
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Heartbeat received successfully |
| 500 | Internal Server Error | Internal Server Error |
Request
curl --request GET \
--url https://oonchk.com/a1b2c3d4
Send a heartbeat (POST)
Send a heartbeat ping (POST). Use this from scripts or cron jobs to signal completion. Note: This endpoint uses oonchk.com, not api.onlineornot.com.
This operation does not require authentication
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Heartbeat received successfully |
| 500 | Internal Server Error | Internal Server Error |
Request
curl --request POST \
--url https://oonchk.com/a1b2c3d4
List all heartbeats
Retrieve a paginated list of all heartbeat monitors
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Query parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns a list of OnlineOrNot Heartbeats |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/heartbeats \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": [
{
"id": "a1b2c3d4",
"name": "Daily backup job",
"status": "UP",
"last_seen": "2021-01-01T00:00:00.000Z",
"report_period": 3600,
"report_period_cron": "0 0 * * *",
"timezone": "America/New_York",
"grace_period": 300,
"reminder_alert_interval_minutes": 1440,
"alert_priority": "LOW",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z"
}
],
"result_info": {
"page": 1,
"per_page": 20,
"count": 1,
"total_count": 1
},
"success": true,
"errors": [],
"messages": []
}
Create a heartbeat
Create a new heartbeat monitor for cron jobs or scheduled tasks
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 201 | Created | Create a new OnlineOrNot Heartbeat |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request POST \
--url https://api.onlineornot.com/v1/heartbeats \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data '{"name":"Daily backup job","report_period":86400,"grace_period":300}'
Response
{
"result": {
"id": "a1b2c3d4",
"name": "Daily backup job",
"status": "UP",
"last_seen": "2021-01-01T00:00:00.000Z",
"report_period": 3600,
"report_period_cron": "0 0 * * *",
"timezone": "America/New_York",
"grace_period": 300,
"reminder_alert_interval_minutes": 1440,
"alert_priority": "LOW",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"user_alerts": [
"string"
],
"slack_alerts": [
"string"
],
"discord_alerts": [
"string"
],
"webhook_alerts": [
"string"
],
"oncall_alerts": [
"string"
],
"incident_io_alerts": [
"string"
],
"microsoft_teams_alerts": [
"string"
]
},
"success": true,
"errors": [],
"messages": []
}
Retrieve a heartbeat
Look up detailed information about a specific heartbeat monitor
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Retrieve the specified OnlineOrNot Heartbeat |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request GET \
--url https://api.onlineornot.com/v1/heartbeats/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": {
"id": "a1b2c3d4",
"name": "Daily backup job",
"status": "UP",
"last_seen": "2021-01-01T00:00:00.000Z",
"report_period": 3600,
"report_period_cron": "0 0 * * *",
"timezone": "America/New_York",
"grace_period": 300,
"reminder_alert_interval_minutes": 1440,
"alert_priority": "LOW",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"user_alerts": [
"string"
],
"slack_alerts": [
"string"
],
"discord_alerts": [
"string"
],
"webhook_alerts": [
"string"
],
"oncall_alerts": [
"string"
],
"incident_io_alerts": [
"string"
],
"microsoft_teams_alerts": [
"string"
]
},
"success": true,
"errors": [],
"messages": []
}
Modify a heartbeat
Modify the configuration of an existing heartbeat monitor
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Body parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Modify an OnlineOrNot Heartbeat |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request PATCH \
--url https://api.onlineornot.com/v1/heartbeats/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}' \
--header 'Content-Type: application/json' \
--data '{"report_period":7200,"grace_period":600}'
Response
{
"result": {
"id": "a1b2c3d4",
"name": "Daily backup job",
"status": "UP",
"last_seen": "2021-01-01T00:00:00.000Z",
"report_period": 3600,
"report_period_cron": "0 0 * * *",
"timezone": "America/New_York",
"grace_period": 300,
"reminder_alert_interval_minutes": 1440,
"alert_priority": "LOW",
"created_at": "2021-01-01T00:00:00.000Z",
"updated_at": "2021-01-01T00:00:00.000Z",
"user_alerts": [
"string"
],
"slack_alerts": [
"string"
],
"discord_alerts": [
"string"
],
"webhook_alerts": [
"string"
],
"oncall_alerts": [
"string"
],
"incident_io_alerts": [
"string"
],
"microsoft_teams_alerts": [
"string"
]
},
"success": true,
"errors": [],
"messages": []
}
Delete a heartbeat
Permanently delete a heartbeat monitor
Security: Bearer Auth
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
Path parameters
Responses
| Status | Meaning | Description |
|---|---|---|
| 200 | OK | Returns the deleted OnlineOrNot Heartbeat's ID |
| 500 | Internal Server Error | Internal Server Error |
Response Schema
Request
curl --request DELETE \
--url https://api.onlineornot.com/v1/heartbeats/a1b2c3d4 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {access-token}'
Response
{
"result": {
"id": "a1b2c3d4"
},
"success": true,
"errors": [],
"messages": []
}