API Reference
GET /health and GET /ready
Liveness and readiness probes for monitoring the peaqOS MCR API server.
GET
GET /health and GET /ready
GET /health
200 whenever the process is running. Does not check connectivity or contract readiness.
Response
200 OK| Field | Type | Description |
|---|---|---|
status | string | Always "ok" when the process is running |
Error responses
None. This endpoint always returns200 while the server process is alive.
Example
GET /ready
200 when all checks pass and 503 when any check fails.
Response
200 OK (all contracts ready)| Field | Type | Description |
|---|---|---|
status | string | "ready" |
rpc_connected | boolean | true when the RPC node is reachable |
contracts.identity_registry | boolean | IdentityRegistry contract callable |
contracts.identity_staking | boolean | IdentityStaking contract callable |
contracts.event_registry | boolean | EventRegistry contract callable |
contracts.machine_nft | boolean | MachineNFT contract callable |
contracts.admin_flags | boolean | AdminFlags contract callable. Returns true when the contract address is not configured. AdminFlags is optional, so the readiness probe skips the call and reports ready. |
contracts.did_registry | boolean | DID precompile callable |
status is "not_ready" and one or more boolean fields are false.
| Status | Condition |
|---|---|
| 503 | Any contract unreachable, RPC failure, or services not initialised |
- Services not initialised (server started without
IDENTITY_REGISTRY_ADDRESS): every field isfalse, includingrpc_connectedandcontracts.admin_flags. - Initialised but a check failed (RPC down, contract unreachable, etc.): only the failing fields are
false. WhenADMIN_FLAGS_ADDRESSis unset,contracts.admin_flagsistrue: AdminFlags is optional, the probe skips it, and that field never blocks readiness.
Example
Related endpoints
- API reference overview lists all available endpoints and common error patterns.
Previous
Machine Markets API overviewBase path, access model, common shapes, error codes, and endpoints for the peaqOS Machine Markets API.
Next
GET /health and GET /ready

