Create a check
Create an HTTP, TLS, DNS, or TCP probe, or an interval heartbeat. Save the Location and ETag headers.
Request example
curl --fail-with-body --include --request POST \
--url "$CHIMLET_BASE_URL/api/v1/checks" \
--header "Authorization: Bearer $CHIMLET_SESSION_TOKEN" \
--header "Workspace-Id: $CHIMLET_WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"name": "Public API",
"type": "http",
"config": {
"url": "https://example.com/",
"method": "GET",
"interval_seconds": 300,
"timeout_seconds": 10,
"grace_seconds": 0
}
}
JSONMore request examples
curl --fail-with-body --include --request POST \
--url "$CHIMLET_BASE_URL/api/v1/checks" \
--header "Authorization: Bearer $CHIMLET_SESSION_TOKEN" \
--header "Workspace-Id: $CHIMLET_WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"name": "Certificate expiry",
"type": "tls",
"config": {
"host": "example.com",
"port": 443,
"expiry_warning_days": 30
}
}
JSONcurl --fail-with-body --include --request POST \
--url "$CHIMLET_BASE_URL/api/v1/checks" \
--header "Authorization: Bearer $CHIMLET_SESSION_TOKEN" \
--header "Workspace-Id: $CHIMLET_WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"name": "DNS address",
"type": "dns",
"config": {
"host": "example.com",
"record_type": "A",
"expected_value": "192.0.2.10"
}
}
JSONcurl --fail-with-body --include --request POST \
--url "$CHIMLET_BASE_URL/api/v1/checks" \
--header "Authorization: Bearer $CHIMLET_SESSION_TOKEN" \
--header "Workspace-Id: $CHIMLET_WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"name": "Service port",
"type": "tcp",
"config": {
"host": "example.com",
"port": 443
}
}
JSONcurl --fail-with-body --include --request POST \
--url "$CHIMLET_BASE_URL/api/v1/checks" \
--header "Authorization: Bearer $CHIMLET_SESSION_TOKEN" \
--header "Workspace-Id: $CHIMLET_WORKSPACE_ID" \
--header "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"name": "Nightly backup",
"type": "heartbeat",
"config": {
"mode": "interval",
"interval_seconds": 86400,
"grace_seconds": 600
}
}
JSONResponse example
201 Created
{
"id": "01KJ4CM00R37VJ4C5JJAK3ZMRV",
"name": "Public API",
"type": "http",
"config": {
"url": "https://example.com/",
"method": "GET",
"interval_seconds": 300,
"timeout_seconds": 10,
"grace_seconds": 0,
"has_request_body": false,
"expected_status": null
},
"paused": false,
"plan_held": false,
"created_at": "2026-12-01T09:00:00Z",
"updated_at": "2026-12-01T09:00:00Z"
}Response headers
Location: /api/v1/checks/01KJ4CM00R37VJ4C5JJAK3ZMRV
ETag: "check-config-01KJ4CM00R37VJ4C5JJAK3ZMRV-1"Authentication
Account bearer token with checks.manage and Workspace-Id
Authentication overviewRequest fields
Request body
namestringRequired- A name of 1 to 160 UTF-8 bytes.
typestringRequired- http, tls, dns, tcp, or heartbeat. The check type is fixed after creation.
configobjectRequired- Use the fields for the selected check type below.
pausedboolean- Defaults to false.
HTTP config
urlstringRequired- Public HTTP(S) URL on port 80 or 443, at most 2,048 bytes, without credentials or a fragment.
methodstring- GET (default), HEAD, OPTIONS, POST, PUT, PATCH, or DELETE.
request_bodystring- JSON encoded as a string, up to 2 KiB, for POST, PUT, or PATCH. Responses expose has_request_body.
expected_statusinteger- One HTTP status from 200 to 599. Use either this or expected_statuses. Default success is 2xx.
expected_statusesinteger[]- Allowed HTTP statuses from 200 to 599. The API sorts and deduplicates values.
interval_secondsinteger- 60–86,400 seconds, default 300. The workspace plan can require a longer minimum.
timeout_secondsinteger- 1–60 seconds, default 10.
grace_secondsinteger- 0–86,400 seconds, default 0.
TLS config
hoststringRequired- Public hostname or IP address without a scheme, path, or port.
portinteger- 443 (default) or 8443.
expiry_warning_daysinteger- Certificate expiry threshold from 0 to 365 days, default 30.
interval_secondsinteger- 60–86,400 seconds, default 300. The workspace plan can require a longer minimum.
timeout_secondsinteger- 1–60 seconds, default 10.
grace_secondsinteger- 0–86,400 seconds, default 0.
DNS config
hoststringRequired- Public DNS hostname without a scheme, path, or port.
record_typestringRequired- A for an IPv4 answer or AAAA for an IPv6 answer.
expected_valuestringRequired- Expected IP address. Match the address family to the record type.
interval_secondsinteger- 60–86,400 seconds, default 300. The workspace plan can require a longer minimum.
timeout_secondsinteger- 1–60 seconds, default 10.
grace_secondsinteger- 0–86,400 seconds, default 0.
TCP config
hoststringRequired- Public hostname or IP address without a scheme, path, or port.
portintegerRequired- 80, 443, 3306, 5432, 8080, or 8443.
interval_secondsinteger- 60–86,400 seconds, default 300. The workspace plan can require a longer minimum.
timeout_secondsinteger- 1–60 seconds, default 10.
grace_secondsinteger- 0–86,400 seconds, default 0.
Heartbeat config
modestringRequired- Use interval.
interval_secondsintegerRequired- 1–31,536,000 seconds.
grace_secondsinteger- 0–31,536,000 seconds, default 0.
Usage notes
- Replace example.com and the illustrative DNS address with a destination you’re authorized to monitor.
- The workspace plan controls available active checks and the minimum probe interval.
- Unknown fields are rejected. The HTTP response includes has_request_body in place of any submitted body.