Skip to main content

Services

Service runtime data is exposed through the WebSocket protocol, not through a REST services endpoint.

Use /ws and runtime commands such as get_snapshot, start_service, stop_service, and restart_service.

Service snapshot shape

get_snapshot returns result.payload.data.services:

{
"services": [
{ "name": "api", "status": "running" },
{ "name": "worker", "status": "ready" }
]
}

Confirmed per-service fields in this payload:

  • name (string)
  • status (string)

Not part of the current snapshot contract:

  • pid
  • port
  • metadata

Status values

Confirmed status values for service runtime state:

  • starting
  • running
  • ready
  • stopping
  • failed
  • stopped
  • unknown

unknown appears in snapshot when no state is recorded for a service.

get_snapshot

Request payload: none.

Returns the current runtime service list with name and status.

start_service

Request payload:

{
"service": "api"
}

stop_service

Request payload:

{
"service": "api"
}

restart_service

Request payload:

{
"service": "api"
}

For command transport and response envelopes, see Message Envelopes and Actions.