Create an agent runtime and its token
Makes a runtime for the cluster and returns the token it connects to the gateway with. It is shown in this response only; Wardn keeps a hash. The token is the runtime's own, never the operator's. The response holds a secret, so it is never replayed for an `Idempotency-Key`.
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
clusterId*stringuuidIdempotency-Key?stringMakes retries safe. A repeated key with the same request returns the first result and sets
Idempotent-Replayed: true. The same key with a different request answers 409
idempotency.key_reused, and while the first request is still running 409
idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack
of sign-in or permission are not kept, so a retry runs again.
^[A-Za-z0-9_.:-]+$1 <= length <= 255The runtime and its token.
application/json- response
runtimeId*stringuuidtoken*stringThe secret to give the runtime, starting wat_. Shown once.
expiresAt*stringThe token stops being accepted at this time unless a runtime has connected with it by then; one hour after it was made.
date-timecurl -X POST 'https://wardn.example.com/api/v1/clusters/497f6eca-6276-4993-bfeb-53cbbbba6f08/agent-runtimes'{ "runtimeId": "f8fedceb-4f2e-4026-b3e7-d1baf36cf8bc", "token": "string", "expiresAt": "2019-08-24T14:15:22Z"}List a cluster's agent runtimes GET
The runtimes that run agent jobs in the cluster (docs/adr/0004): whether each is connected, what it said of its isolation, its capacity and the fingerprints of the model keys it holds. Never a key's value.
Revoke a cluster's agent runtimes DELETE
Ends every runtime of the cluster. Each is disconnected within a heartbeat and cannot reconnect; a job one was running ends as lost.