prufy
Skip to the page

SystemCheck the API is up

System

Check the API is up

Answers { ok: true } when the server is running and its database answers.

GET/api/healthz

It 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.

  • oktrue

    Always true. Anything else is an error response.

  • databaseobject

    The one dependency every route needs.

    Show the 2 fields insideInside database
    • oktrue

      The database answered a query.

    • latencyMsinteger

      How long that query took, in milliseconds.

Errors

StatusKindWhen
503unavailableThe 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.