Runtime

Agent lifecycle control (start, stop, pause, reload, health)

Get agent runtime status

get

Returns current status, uptime, and last boot/stop timestamps. Requires agent:manage scope (master keys always pass).

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
get
/agents/{id}/status

Start an agent

post

Boots the agent (or resumes from paused). Requires agent:manage scope. Charges 5 credits. Subject to subscription guards (max running agents, allowed channels).

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
post
/agents/{id}/start

Stop an agent

post

Stops the agent and accumulates uptime. Requires agent:manage scope. No credit charge.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
post
/agents/{id}/stop

No content

Pause an agent

post

Pauses the agent without stopping the container. Requires agent:manage scope. No credit charge.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
post
/agents/{id}/pause

No content

Reload agent config

post

Hot-reloads the agent configuration without restarting. Agent must be in running state. Requires agent:manage scope. Charges 1 credit.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
post
/agents/{id}/reload

Agent health check

get

Returns health status for a running agent. Requires agent:manage scope.

Authorizations
AuthorizationstringRequired

API key sent as Bearer token. Two types:

  • Master key (g_master_...): full access to all agents and endpoints.
  • Agent key (g_agent_...): scoped to a single agent with specific permissions.
Path parameters
idstring · uuidRequired
Responses
get
/agents/{id}/health

Last updated