curl --request POST \
--url https://api.devhelm.io/api/v1/monitors/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "HTTP",
"config": {
"hostname": "<string>",
"recordTypes": [
"A"
],
"nameservers": [
"<string>"
],
"timeoutMs": 123,
"totalTimeoutMs": 123
},
"assertions": [
{
"config": {
"type": "<string>",
"substring": "<string>"
},
"severity": "fail"
}
]
}
'{
"data": {
"passed": true,
"error": "<string>",
"statusCode": 123,
"responseTimeMs": 123,
"responseHeaders": {},
"bodyPreview": "<string>",
"responseSizeBytes": 123,
"redirectCount": 123,
"finalUrl": "<string>",
"assertionResults": [
{
"assertionType": "status_code",
"passed": true,
"severity": "fail",
"message": "<string>",
"expected": "<string>",
"actual": "<string>"
}
],
"warnings": [
"<string>"
]
}
}Executes a one-off check from an inline config without saving the monitor. Runs synchronously and returns status code, response time, assertion results, body preview, and headers.
curl --request POST \
--url https://api.devhelm.io/api/v1/monitors/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "HTTP",
"config": {
"hostname": "<string>",
"recordTypes": [
"A"
],
"nameservers": [
"<string>"
],
"timeoutMs": 123,
"totalTimeoutMs": 123
},
"assertions": [
{
"config": {
"type": "<string>",
"substring": "<string>"
},
"severity": "fail"
}
]
}
'{
"data": {
"passed": true,
"error": "<string>",
"statusCode": 123,
"responseTimeMs": 123,
"responseHeaders": {},
"bodyPreview": "<string>",
"responseSizeBytes": 123,
"redirectCount": 123,
"finalUrl": "<string>",
"assertionResults": [
{
"assertionType": "status_code",
"passed": true,
"severity": "fail",
"message": "<string>",
"expected": "<string>",
"actual": "<string>"
}
],
"warnings": [
"<string>"
]
}
}API key (dh_live_...) or Auth0 JWT token
Monitor protocol type to test
HTTP, DNS, MCP_SERVER, TCP, ICMP, HEARTBEAT Updated protocol-specific configuration; null preserves current
Show child attributes
Optional assertions to evaluate against the test result
Show child attributes
OK
Show child attributes