v2
latestOpenAPI 3.0.02026-07-261859071.2 MBChecks
Create an API check
Creates a new API 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/api
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": [],
"request": {
"assertions": [
{
"source": "STATUS_CODE",
"comparison": "NOT_EMPTY",
"target": "200"
}
],
"basicAuth": {
"username": "admin",
"password": "abc12345"
}
},
"privateLocations": [
"data-center-eu"
]
}Response
Created
Example response
{
"id": "2739d22d-086f-481d-a484-8b93ac84de61",
"name": "Check",
"locations": [
"us-east-1",
"eu-central-1"
],
"tags": [
"production"
],
"alertChannels": {
"sms": [
{
"number": "+549110000000",
"name": "SMS Alert"
}
]
},
"privateLocations": [
"data-center-eu"
],
"request": {
"assertions": [
{
"source": "STATUS_CODE",
"comparison": "NOT_EMPTY",
"target": "200"
}
],
"basicAuth": {
"username": "admin",
"password": "abc12345"
}
}
}