Skip to content
ZeroCaptcha

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.

Liveness probe

GET/healthz

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

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

Responses

Responses of Liveness probe
StatusMeaningBody
200 OK

The process is up.

HealthStatus (application/json)
Any other status

An error, as RFC 9457 problem details.

Problem (application/problem+json)

Sample

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

Readiness probe

GET/readyz

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

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

Responses

Responses of Readiness probe
StatusMeaningBody
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)

Sample

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