Skip to content
Docs menu

meta

Service metadata and probes

3 operations · 3 schemas

GET /healthz

Liveness probe

healthz · scope none

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

Responses

healthz responses
StatusDescriptionBody
200

Service is healthy.

HealthResponse

GET /healthz/worker

Background worker liveness

workerHealth · scope none

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

workerHealth responses
StatusDescriptionBody
200

The worker ran within stale_after_s, or jobs run in the API process.

WorkerHealth
503

The worker has not run within stale_after_s, or its store does not answer.

WorkerHealth

GET /v1/capabilities

What this deployment can do

getCapabilities · scope none

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

getCapabilities responses
StatusDescriptionBody
200

The flags.

Capabilities
401

Missing or invalid credentials.

Problemapplication/problem+json

Schemas (3)

The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.

HealthResponse

object

HealthResponse fields
FieldTypeDescription
statusrequiredstring

one of ok

servicerequiredstring
versionrequiredstring
envrequiredstring
web_urlstring | null

The web app's origin: the first of API_CORS_ORIGINS, the setting every deployment already needs for its web app. A client links a person to a page from it ({web_url}/{owner}/{slug}, {web_url}/runs/{id}). Null when no origin is configured.

WorkerHealth

object

WorkerHealth fields
FieldTypeDescription
okrequiredboolean

True when the status is 200.

queuerequiredstring

one of redis · in_process

redis when a separate worker runs the jobs. in_process when the API process runs them itself and there is no worker to watch.

last_seen_srequirednumber | null

Seconds since the worker last wrote its time. Null when it never has, when the store did not answer, or with queue: in_process.

stale_after_srequiredinteger

The age past which the worker counts as stopped.

detailrequiredstring

One sentence an operator reads.

Capabilities

object

What this deployment runs (getCapabilities). Every flag is a fact about the deployment, the same for every caller.

Capabilities fields
FieldTypeDescription
agentrequiredboolean

The hub's agent can answer: a model backend is configured (the hub's Anthropic key, recorded turns, or workspace keys). The agent also knows the hub's own URL for its tools. False means createAgentSession is 503.

coachrequiredboolean

The Training Coach can diagnose and plan: a model backend is configured (the hub's Anthropic key, recorded responses, or workspace keys). False means createAdvice and createCoachPlan are 503. Reading the corpus never needs it.

cloud_cpurequiredboolean

Hosted CPU work (checks, CPU training, sim rollouts) is open to every account. That needs a configured Modal app. It also needs every owner to be hosted, or the monthly hosted allowance to be on.

cloud_gpurequiredboolean

Hosted GPU work (GPU training, endpoints) is open to every account. That needs a configured Modal app and every owner to be hosted. Otherwise, the owners it is open to are listHardwareTiers.hosting.owners.

studio_stillsstring

one of hosted · local · none

Who draws a robot's still after its card is stored. hosted: the hub renders it with the studio rig on Lucen cloud (CPU). local: the hub renders it on its own machine. none: the hub draws nothing, and the publisher's own still is what the card shows. With hosted or local, lucen robot publish skips its own still. The hub's render is free and is limited to one per robot every ten minutes. RobotCard.stills follows each render. A hub older than this field omits it, which means none.

predeploy_robotsarray of string

The robot repos (owner/slug) this hub runs pre-deploy checks on (createRollout with purpose: predeploy). Where the deployment turns it on, the hub also checks every new public policy file for these robots by itself. Empty when it runs none: no robot is listed, there is no Modal app, or checks are turned off.