v2
latestOpenAPI 3.0.02026-07-261859071.2 MBHeartbeats
Create a heartbeat check
Creates a new Heartbeat check. Will return a 402 when you are over the limit of your plan. When using the globalAlertSetting, the alertSetting can be null
post/v1/checks/heartbeat
Query parameters
autoAssignAlertsboolean
Determines whether a new check will automatically be added as a subscriber to all existing alert channels when it gets created.
Determines whether a new check will automatically be added as a subscriber to all existing alert channels when it gets created.
Headers
x-checkly-accountstring
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Request body
Example request
{
"name": "Check",
"locations": [
"us-east-1",
"eu-central-1"
],
"tags": [
"production"
],
"alertChannelSubscriptions": [],
"environmentVariables": [
{
"key": "API_KEY"
}
]
}Response
Created
Example response
{
"id": "d432cf89-010b-4b12-8150-958c8eb1d5ca",
"name": "Check",
"tags": [
"production"
],
"heartbeat": {
"pingUrl": "https://ping.checklyhq.com/22868839-8450-4010-9241-1ea83a2e425f"
},
"alertChannels": {
"sms": [
{
"number": "+549110000000",
"name": "SMS Alert"
}
]
}
}