API reference: pings, status changes and badges

On this page

These endpoints read what a check recorded: its pings, the bodies they carried, its changes between up and down, and the channels and badges of the project.

Which endpoints are there?

Method and pathScopeReturns
GET /api/v3/checks/<uuid>/pingswrite{"pings": […], "next_cursor"}, newest first, up to the plan's log size
GET /api/v3/checks/<uuid>/pings/<n>/bodywriteThe stored body of ping n as text/plain; 404 when none
GET /api/v3/checks/<id>/flipsreadA bare array of {"timestamp", "up"}, newest first
GET /api/v3/channelswrite{"channels": [{"id", "name", "kind"}]}
GET /api/v3/badgesreadBadge URLs for the project and for each tag
GET /api/v3/statusnone200 when a test query succeeds, 500 when it does not

What does a ping record look like?

Each entry has type, date, n, scheme, remote_addr, method, ua, rid, duration (seconds, on a finish paired with a start) and body_url, which is null when the ping carried no body.

How do I read status changes?

The flips endpoint takes seconds (only the last N seconds), start and end (Unix seconds) and cursor. The body is the bare array, so the next page is announced in a Link: <…>; rel="next" header. Changes are kept for the current month and the two before it.

shell
curl -i "YOUR_API_BASE_URL/api/v3/checks/<uuid>/flips?seconds=86400" -H "X-Api-Key: crn_live_…"
Try it on one job

Create a check, copy its ping URL into the job, and watch the first ping arrive.

Start monitoring