Skip to content

Health API

Liveness and readiness probes for load balancers and orchestrators.

Every operation of the API reference is generated from the contract the API serves, version 0.1.0. Replace YOUR_API_KEY in the samples with your key; each response shows an example in the contract's shape.

Liveness probe

GET/healthz

Authentication. None: anyone may call it, within a budget per client address where the description says so.

Answers while the process can serve HTTP, without checking any dependency.

Responses

Responses of Liveness probe
StatusWhat it means
200 OK

The process is up.

HealthStatus (application/json)

Any other status

An error, as RFC 9457 problem details.

Problem (application/problem+json)

Request

Terminal window
curl https://api.zerocaptcha.io/healthz

Response

200 OK HealthStatus (application/json)

{
  "status": "ok"
}

Example values in the contract's shape, version 0.1.0.

Readiness probe

GET/readyz

Authentication. None: anyone may call it, within a budget per client address where the description says so.

Answers when the service can reach its database, which must reply within two seconds.

Responses

Responses of Readiness probe
StatusWhat it means
200 OK

Ready for traffic.

HealthStatus (application/json)

503 Service Unavailable

The database cannot be reached.

Problem (application/problem+json)

Any other status

An error, as RFC 9457 problem details.

Problem (application/problem+json)

Request

Terminal window
curl https://api.zerocaptcha.io/readyz

Response

200 OK HealthStatus (application/json)

{
  "status": "ok"
}

Example values in the contract's shape, version 0.1.0.