API reference
Sign in, manage workspaces and checks, and send heartbeat signals through the Chimlet REST API.
Authentication and workspace access
Set CHIMLET_BASE_URL to your Chimlet server’s origin, without a trailing slash. API paths start with /api/v1. Use the token described by each endpoint.
Account sessions
Sign in with an email and password and save the returned access_token as CHIMLET_SESSION_TOKEN. Send it in the Authorization: Bearer header.
Send Workspace-Id for workspace-scoped operations. Find the ID by listing your workspaces.
Heartbeat tokens
Create a heartbeat key to give a job a token for one check. Send that token as a bearer credential when reporting a heartbeat.
Use the account session token separately for managing checks.
The archived notifications preview used a source-bound credential. See the endpoint reference for details about older deployments.
Endpoints
Pagination
Check lists, logs, and events return data and next_cursor. Pass a non-null next_cursor as cursor on the next request and keep the same filters and order. A null cursor means you have reached the end.
{
"data": [],
"next_cursor": null
}The default limit is 50. You can request 1–100 results per page. Logs default to newest first, events to oldest first. These endpoints accept order=asc and order=desc.
Unknown or duplicate query parameters and malformed cursors return ERR-1027.
Error responses
Errors use application/problem+json and a stable problem code. The status matches the HTTP response. When present, docs_url links to the error’s documentation. Keep X-Request-Id when investigating a failed request; it also appears in the problem’s instance.
{
"type": "urn:chimlet:problem/ERR-1025",
"title": "Precondition required",
"status": 428,
"detail": "Send the current ETag in the If-Match header.",
"code": "ERR-1025",
"instance": "/problem-occurrences/<request-id>",
"docs_url": "https://docs.chimlet.app/docs/api/errors/err-1025/"
}Validation failures can include field locations and explanations in evidence.violations. Check the code and the affected field before retrying.
| Status | Code | What to do |
|---|---|---|
| 400 | ERR-1022Workspace context required | Send exactly one Workspace-Id header with an ID from your workspace list. |
| 400 | ERR-1023Workspace context mismatch | Let the heartbeat key select its workspace by omitting the optional header, or set the header to the key’s workspace ID. |
| 400 | ERR-1029Invalid idempotency key | Send a single value containing 1 to 128 printable ASCII characters. Omit the header if you do not need a replayable receipt. |
| 400 | ERR-1033Invalid precondition | Copy the full ETag from the configuration response, including its quotes. |
| 401 | ERR-1005Authentication required | Use the credential type listed by the endpoint. Sign in again for a new account session if needed. |
| 403 | ERR-1021Access denied | Use an authorized account or the endpoint’s required scoped key. Ask a workspace owner to check your role if you expect access. |
| 404 | ERR-1011Check not found | Confirm the workspace and select a current check ID. For a heartbeat request, use a key authorized for that check. |
| 404 | ERR-1017Workspace not found | List workspaces with the same account and use an ID returned in that list. |
| 404 | ERR-1036Check log not found | List the logs for the same check and use an ID from that response. |
| 409 | ERR-1028Idempotency conflict | For a new event, send a new key. To retry the original event, reuse its key with the original payload, credential, and check. |
| 409 | ERR-1045Check is paused | Resume the check, then send the signal or start the deadline again. |
| 409 | ERR-1046Check is already armed | Read the check state to see the current deadline. |
| 409 | ERR-1047Check type does not support this action | Use HTTP, TLS, DNS, or TCP for Run test. Use a Heartbeat check for creating a heartbeat key or starting a deadline. |
| 409 | ERR-1120Active check limit reached | Pause another active check or choose a plan with room before activating this one. |
| 409 | ERR-1123Check is held by the workspace plan | Select this check for active monitoring within the plan limit before retrying. |
| 412 | ERR-1024Precondition failed | Read the latest configuration. Review intervening changes before updating or deleting with its ETag. For a diagnostic, rerun it against the current check configuration. |
| 422 | ERR-1002Validation failed | Read evidence.violations to find the affected field. Compare its value with the endpoint schema before retrying. |
| 422 | ERR-1027Invalid query | Use the documented filters and page size. Copy a cursor from the preceding response with the same filters. |
| 422 | ERR-1122Probe interval is too short | Set the probe interval to at least the minimum shown for the current workspace plan. |
| 428 | ERR-1025Precondition required | Read the current configuration and copy its ETag verbatim into If-Match. |
| 503 | ERR-1041Diagnostic probe unavailable | Wait briefly and rerun the diagnostic. A completed probe returns its outcome in the diagnostic response. |