System
Check the API is up
Answers { ok: true } when the server is running and its database answers.
/api/healthzIt runs one query against the database, with a two-second limit, so a monitor pointed here finds out when claims can't be read or written. It doesn't look up DNS: a slow resolver isn't an outage.
It isn't versioned and never moves, so a monitor's address stays good. The failure never says why, because the reason can name internal hosts.
Authentication
No credential needed. How sessions work.
Response
200 OK, with every field below present. Times are ISO 8601 strings in UTC.
oktrueAlways true. Anything else is an error response.
databaseobjectThe one dependency every route needs.
Show the 2 fields insideInside database
oktrueThe database answered a query.
latencyMsintegerHow long that query took, in milliseconds.
Errors
| Status | Kind | When |
|---|---|---|
| 503 | unavailable | The database didn't answer within two seconds, or refused the query. A 503 with retryAfter. |
Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.