Overview

The Agent Runtimes API manages external or local agent runtimes. A runtime record tracks a host, a status, a heartbeat, a list of CLI binaries the runtime can execute, and an optional workspace association. Jobs can be dispatched to a runtime; the gateway persists the queued job, runs it through the local agent runtime, and updates the record with the result.
This namespace is served by the Allternit API data-plane node (http://127.0.0.1:8013 on the same machine, or your paired or provisioned node). The hosted Cloud API at https://api.allternit.com does not route it; it relays only agent sessions, canvases, office and beta research/sessions. See Cloud API.

Base URL

Authentication

All requests must include a valid bearer token in the Authorization header.

Runtime object

Job object

Endpoints

List runtimes

Returns all runtimes owned by the caller.

Example request

Example response

Create a runtime

Request body

Example request

Example response

Get a runtime

Example response

Update a runtime

At least one field must be provided.

Request body

Example request

Example response

Heartbeat a runtime

Updates last_heartbeat. Optionally updates status.

Request body

Example request

Example response

Delete a runtime

Example response

204 No Content

List runtime jobs

Returns all jobs for the runtime, newest first.

Example response

Create a runtime job

Queues and immediately dispatches a job on the runtime. The gateway updates the job record with the outcome.

Request body

Example request

Example response

Error codes