Tests
Health Checks
Manage and run HTTP health checks against monitored routes.
POST
Health Checks
Manage and run HTTP health checks. Dispatch the desired operation with the
action field in the request body.
Actions
| Action | Description |
|---|---|
list | List all monitored health routes and their latest result. |
add | Register a new URL to monitor. |
delete | Remove a monitored route. |
run | Execute a health check immediately. |
schedule | Schedule a health check to run once, on an interval, or now. |
Request body
One of
list, add, delete, run, or schedule.Payload for the selected action. Required for every action except
list.Response
The response shape varies by action.Always
true on success. Errors return false with an error string.Returned by
list. Each route includes id, url, name, createdAt, and its latest HealthResult (or null).Returned by
add. The newly created route (id, url, name, createdAt).Returned by
run. A HealthResult with status (up, slow, down, error), statusCode, responseMs, and checkedAt.Returned by
schedule. Identifier of the scheduled job.Every successful response includes the
X-Credits-Remaining header with your remaining credit balance.