API reference
Check service health
Reports whether signing and persistence are ready; no API key is required.
GET/health
Overview #
Reports whether signing and persistence are ready; no API key is required.
No API key is required.
curl https://attestinfra.com/healthconst response = await fetch("https://attestinfra.com/health");
console.log(response.status, await response.json());import json, urllib.request
request = urllib.request.Request(
"https://attestinfra.com/health",
)
with urllib.request.urlopen(request) as response:
print(response.status, json.loads(response.read()))Parameters #
This endpoint takes no parameters.
Response #
200 Signing and persistence are ready.
Response fields #
| Field | Type | Description |
|---|---|---|
status | ok | unhealthy | ok only when both components are ready. |
signing | ready | unavailable | Signing key check. |
persistence | ready | unavailable | Database check. |
{
"status": "ok",
"signing": "ready",
"persistence": "ready"
}Errors #
| Status | error | code | Meaning |
|---|---|---|---|
503 | undefined | — | Signing or persistence is unavailable. |
All error bodies and their causes are listed in Errors.
{
"status": "unhealthy",
"signing": "ready",
"persistence": "unavailable"
}