# API reference: meta

Service metadata and probes

## GET /healthz

`healthz` · scope `none` · Liveness probe

Uses no auth, no database and no external services, so it can always answer.

Responses:

- `200`: Service is healthy.

## GET /healthz/worker

`workerHealth` · scope `none` · Background worker liveness

Says whether the background worker is running. The worker writes the time to the queue's store once a minute. This reads it back. It answers 503 when the last write is older than `stale_after_s` or the store does not answer. Without a queue store the hub runs its jobs inside the API process, and this answers 200 with `queue: in_process`. The answer is cached for 10 seconds, so a burst of probes costs one read.

Responses:

- `200`: The worker ran within `stale_after_s`, or jobs run in the API process.
- `503`: The worker has not run within `stale_after_s`, or its store does not answer.

## GET /v1/capabilities

`getCapabilities` · scope `none` · What this deployment can do

Says which of the hub's optional services this deployment runs, so a client offers only what will answer. Each flag reads the same setting the service itself checks. `agent` is false wherever `createAgentSession` answers 503 because the deployment lacks a model backend or the hub's own URL. `coach` is false wherever `createAdvice` and `createCoachPlan` answer 503. `cloud_cpu` and `cloud_gpu` say whether hosted work of that kind is open to every account. `listHardwareTiers.hosting` lists the owners it is open to beyond that. `studio_stills` says whether the hub draws every robot's still itself. `predeploy_robots` lists the robots a pre-deploy check runs on. The answer does not depend on the caller, so a client may cache it for a minute.

Responses:

- `200`: The flags.
- `401`: Missing or invalid credentials.
