API reference
Fleets
Managed Henry agents: create instances, give them tasks and read their usage.
- Operations
- 61
- Base path
https://os.one.ml/api/v1/fleets- Scopes
fleets:readfleets:write- API keys
- 2 need a signed-in session · 5 untested · 31 tested with an API key
- SDK
genesis.call('fleets_listAgents', …)· helpers undergenesis.fleets- MCP
- 59 tools; the other 2 through
genesis_call
Operations
Agents
List persistent Henry agents
GET/v1/fleets/agents
Lists only agents owned by the verified organization. Henry owns execution; Foundry inference is managed by the platform and Memory defaults to Fleets-local files.
Responses
- 200Success
Response fields
agentsobject[]requiredagents[].[].idstring (uuid)requiredagents[].[].namestringrequiredagents[].[].state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredagents[].[].memoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.agents[].[].memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
agents[].[].memory.namespacestringmax length 128
agents[].[].memory.endpointstring (uri)agents[].[].modelstring | nullagents[].[].inferenceobjectrequiredagents[].[].inference.provider"foundry"requiredagents[].[].inference.mode"managed"requiredagents[].[].created_at_msintegerrequiredmin 0
agents[].[].updated_at_msintegerrequiredmin 0
agents[].[].last_operation_idstring | null (uuid)agents[].[].launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).agents[].[].launch.status"in_progress" | "failed"requiredagents[].[].launch.code"AGENT_LAUNCH_FAILED"agents[].[].launch.messagestringagents[].[].skillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
- 401Verified Genesis identity and fleets scope required
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/agents" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listAgents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listAgents",
"arguments": {}
}
}Launch a persistent Henry agent
POST/v1/fleets/agents
Creates one durable Henry agent on Fleets-managed compute. The platform supplies Foundry inference automatically; no provider key is accepted. Memory defaults to Fleets-local files. A Memory provider this deployment cannot bind for the organization (custom always; minds unless the deployment enables Minds memory and the organization has a Minds connection in this environment) is 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept: no agent, and the idempotency_key stays free. Every answer after the launch record is written names the agent: 201 with Location when Henry started it; 200 for a settled idempotent replay (same organization, environment, body idempotency_key and input; the record as stored); 202 with Location while a replayed launch still waits on Henry (launch.status in_progress: read the agent again), or when Henry did not start it and the agent is kept as recovery_required (launch.status failed, terminal: reading it again never changes it; delete it, or launch again with a new idempotency_key); 503 AGENT_LAUNCH_UNCONFIRMED with agent_id and Retry-After when its outcome could not be written. A retry must reuse the body idempotency_key to get the same agent. The gateway's Idempotency-Key header store keeps this route's answer as status only: a repeat with the same header is 409 IDEMPOTENCY_KEY_COMPLETED, so use the body idempotency_key for replays. Native agent bindings (the internal native Henry path) answer 201 with the native controller's body for every launch, replays included.
Request body application/json
namestringrequiredmin length 1 · max length 128
memoryobjectThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)modelstringmax length 128
instructionsstringmax length 65536
idempotency_keystringmin length 1 · max length 128 · pattern
^[!-~]+$skillsstring[]The agent's declared skills: lowercase tokens, deduplicated and sorted. POST /v1/agents/dispatch matches tasks to them.
Responses
- 200Settled idempotent replay of an earlier launch with the same organization, environment, body idempotency_key and input: that agent as stored. It carries
launch(status failed) while the agent is recovery_required from its own failed launch.Response fields
idstring (uuid)requirednamestringrequiredstate"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredmemoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)modelstring | nullinferenceobjectrequiredinference.provider"foundry"requiredinference.mode"managed"requiredcreated_at_msintegerrequiredmin 0
updated_at_msintegerrequiredmin 0
last_operation_idstring | null (uuid)launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).launch.status"in_progress" | "failed"requiredlaunch.code"AGENT_LAUNCH_FAILED"launch.messagestringskillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
- 201Agent launched
Response fields
idstring (uuid)requirednamestringrequiredstate"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredmemoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)modelstring | nullinferenceobjectrequiredinference.provider"foundry"requiredinference.mode"managed"requiredcreated_at_msintegerrequiredmin 0
updated_at_msintegerrequiredmin 0
last_operation_idstring | null (uuid)launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).launch.status"in_progress" | "failed"requiredlaunch.code"AGENT_LAUNCH_FAILED"launch.messagestringskillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
- 202Either a replay while the first launch still waits on Henry (
launch.statusin_progress, state launching: read the agent again), or Henry did not start the agent and it is kept as recovery_required (launch.statusfailed, code AGENT_LAUNCH_FAILED). A failed launch is terminal: reading the agent again never changes it; delete it, or launch again with a new idempotency_key.Response fields
idstring (uuid)requirednamestringrequiredstate"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredmemoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)modelstring | nullinferenceobjectrequiredinference.provider"foundry"requiredinference.mode"managed"requiredcreated_at_msintegerrequiredmin 0
updated_at_msintegerrequiredmin 0
last_operation_idstring | null (uuid)launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).launch.status"in_progress" | "failed"requiredlaunch.code"AGENT_LAUNCH_FAILED"launch.messagestringskillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope; or code AGENT_NOT_WRITABLE: skills cannot be set on the organization's main One.
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input; or code MEMORY_PROVIDER_UNAVAILABLE: the Memory provider cannot be bound for this organization in this deployment (custom always; minds unless enabled and connected). Nothing was kept. Skills: at most 32 tokens per agent and at most 64 agents with skills per organization and environment.
- 501Not supported for this agent binding: native Henry agents cannot declare skills.
- 503Henry runtime or durable agent storage is unavailable. Without
agent_idnothing was kept. With code AGENT_LAUNCH_UNCONFIRMED andagent_id, the agent was kept but its launch outcome could not be written: read it at /v1/fleets/agents/{agent_id}; once it is recovery_required, delete it or launch again with a new idempotency_key. - 507code SKILLS_STORAGE_FULL: the shared skills store is full, so this launch with skills was refused and nothing was kept. A launch without skills still works.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/agents" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_launchAgent', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_launchAgent",
"arguments": {
"body": {
"name": "string"
}
}
}
}Read one persistent Henry agent
GET/v1/fleets/agents/{agent_id}
Parameters
agent_idpath · string (uuid)required
Responses
- 200Success
Response fields
idstring (uuid)requirednamestringrequiredstate"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredmemoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)modelstring | nullinferenceobjectrequiredinference.provider"foundry"requiredinference.mode"managed"requiredcreated_at_msintegerrequiredmin 0
updated_at_msintegerrequiredmin 0
last_operation_idstring | null (uuid)launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).launch.status"in_progress" | "failed"requiredlaunch.code"AGENT_LAUNCH_FAILED"launch.messagestringskillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
- 401Verified Genesis identity and fleets scope required
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Delete a stopped persistent Henry agent
DELETE/v1/fleets/agents/{agent_id}
The agent must be stopped or recovery_required and idle. Deleting removes the agent record and its log.
Parameters
agent_idpath · string (uuid)required
Responses
- 200Success
Response fields
idstring (uuid)requireddeletedtruerequiredoperation_idstring (uuid)requiredmemoryobjectPresent when the agent wrote Minds events. Each is overwritten with a fixed marker (PUT /v1/minds/memory/episodic/{storage_id} with the event's own id); Minds keeps the event's other metadata (its tags, among them agent:<id>, and its timestamp).
forgottenalso counts events Minds answers are gone (410, or 404 once the Mind itself answered).remainingcounts events that could not be overwritten (the connection was deleted or names another Mind, the key is refused, the Mind does not answer, or the write's answer was lost): they stay in the organization's Mind, where its owner deletes them. While Minds is temporarily unavailable the delete is refused (503) and the agent stays; a retry resumes. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.forgottenintegerrequiredmin 0
memory.remainingintegerrequiredmin 0
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope
- 404Agent is missing or belongs to another organization
- 409Agent is not stopped or recovery_required, or is busy
- 501Not supported for this agent binding
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_deleteAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_deleteAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Update a persistent Henry agent's name, model, instructions or memory
PATCH/v1/fleets/agents/{agent_id}
Parameters
agent_idpath · string (uuid)required
Request body application/json
namestringmin length 1 · max length 128
modelstring | nullnull clears the model and uses the Foundry default min length 1 · max length 128
instructionsstring | nullnull clears the instructions max length 65536
memoryobjectThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
memory.namespacestringmax length 128
memory.endpointstring (uri)skillsstring[]Replaces the agent's skills ([] clears). Sent on its own, without other fields.
Responses
- 200Success. A body with only
skillsanswers AgentSkillsUpdate (a record write, no Henry operation); every other update answers AgentOperation.Response fields
Type:
object | object - 401Verified Genesis identity and fleets scope required
- 403Insufficient scope; or code AGENT_NOT_WRITABLE: skills cannot be set on the organization's main One.
- 404Agent is missing or belongs to another organization
- 409Agent is busy, or memory changes while the agent is not stopped
- 422Invalid input; or code MEMORY_PROVIDER_UNAVAILABLE: the Memory provider cannot be bound for this organization in this deployment (custom always; minds unless enabled and connected). The agent is unchanged. Skills must be sent on their own (a body with skills and any other field is refused), and an organization holds at most 64 agents with skills in one environment.
- 501Not supported for this agent binding
- 503Henry runtime or durable agent storage is unavailable
- 507code SKILLS_STORAGE_FULL: the shared skills store is full, so this skill write was refused and nothing changed. Clearing or shrinking skills and every other update still work.
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_updateAgent', {
agent_id: '<agent_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_updateAgent",
"arguments": {
"agent_id": "<agent_id>",
"body": {}
}
}
}Route a command to an agent whose skills fit
POST/v1/fleets/agents/dispatch
Picks, among the caller organization's own agents in this environment that declare every one of required_skills (the main One is never picked), an idle running agent (least recently updated first) and commands it exactly like POST /v1/agents/{agent_id}/command, with the same limits and spend. 409 NO_AGENT_WITH_SKILLS when no agent declares them, 409 AGENTS_WITH_SKILLS_BUSY when all that do are busy: in both cases nothing runs. If the picked agent changes state before the command lands, the next fitting idle agent is tried.
Request body application/json
required_skillsstring[]requiredEvery skill the agent must declare.
inputstringrequiredmin length 1 · max length 65536
delivery"queue" | "steer" | "interrupt"
Responses
- 200Routed and commanded
Response fields
agentobjectrequiredagent.idstring (uuid)requiredagent.namestringrequiredagent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredagent.memoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.agent.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
agent.memory.namespacestringmax length 128
agent.memory.endpointstring (uri)agent.modelstring | nullagent.inferenceobjectrequiredagent.inference.provider"foundry"requiredagent.inference.mode"managed"requiredagent.created_at_msintegerrequiredmin 0
agent.updated_at_msintegerrequiredmin 0
agent.last_operation_idstring | null (uuid)agent.launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).agent.launch.status"in_progress" | "failed"requiredagent.launch.code"AGENT_LAUNCH_FAILED"agent.launch.messagestringagent.skillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
operation_idstring (uuid)requiredresultobjectThe producer's result. A command of a memory.provider minds agent carries
memory.result.memoryobjectMinds memory for this command: whether Minds was recalled (false: the command ran on the agent's recent transcript alone, for example after the connection was deleted; the agent is not fenced) and whether the turn was stored in the organization's Mind (false: Henry's answer is kept).
result.memory.storedbooleanrequiredresult.memory.recalledbooleanrequireddispatchobjectrequireddispatch.agent_idstring (uuid)requiredThe agent the task was routed to.
dispatch.required_skillsstring[]requiredThe required skills as the server matched them: deduplicated and sorted.
dispatch.matched_agentsintegerrequiredHow many of the caller organization's own agents in this environment declare every required skill. The main One is never counted or picked. min 1
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope; or code PERSON_ONLY for a delegated caller
- 409NO_AGENT_WITH_SKILLS, AGENTS_WITH_SKILLS_BUSY, FOUNDRY_CONNECTION_REQUIRED, or ENVIRONMENT_NOT_AVAILABLE (a Live organization not admitted); nothing ran
- 422Invalid input: required_skills must hold 1 to 32 skill tokens, and input must be non-empty after trimming, carry no NUL and be at most 65536 UTF-8 bytes.
- 429LIVE_COMMAND_LIMIT
- 501Not supported for native Henry agents
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/agents/dispatch" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"required_skills": [
"string"
],
"input": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_dispatchAgent', {
body: {
required_skills: [
'string',
],
input: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "fleets_dispatchAgent",
"arguments": {
"body": {
"required_skills": [
"string"
],
"input": "string"
}
}
}
}
}Command
Send input to a persistent Henry agent
POST/v1/fleets/agents/{agent_id}/command
Parameters
agent_idpath · string (uuid)required
Request body application/json
inputstringrequiredmin length 1 · max length 65536
delivery"queue" | "steer" | "interrupt"
Responses
- 200Success
Response fields
agentobjectrequiredagent.idstring (uuid)requiredagent.namestringrequiredagent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredagent.memoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.agent.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
agent.memory.namespacestringmax length 128
agent.memory.endpointstring (uri)agent.modelstring | nullagent.inferenceobjectrequiredagent.inference.provider"foundry"requiredagent.inference.mode"managed"requiredagent.created_at_msintegerrequiredmin 0
agent.updated_at_msintegerrequiredmin 0
agent.last_operation_idstring | null (uuid)agent.launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).agent.launch.status"in_progress" | "failed"requiredagent.launch.code"AGENT_LAUNCH_FAILED"agent.launch.messagestringagent.skillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
operation_idstring (uuid)requiredresultobjectThe producer's result. A command of a memory.provider minds agent carries
memory.result.memoryobjectMinds memory for this command: whether Minds was recalled (false: the command ran on the agent's recent transcript alone, for example after the connection was deleted; the agent is not fenced) and whether the turn was stored in the organization's Mind (false: Henry's answer is kept).
result.memory.storedbooleanrequiredresult.memory.recalledbooleanrequired
- 401Verified Genesis identity and fleets scope required
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID/command" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_commandAgent', {
agent_id: '<agent_id>',
body: {
input: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_commandAgent",
"arguments": {
"agent_id": "<agent_id>",
"body": {
"input": "string"
}
}
}
}Logs
Read a persistent Henry agent's operation log
GET/v1/fleets/agents/{agent_id}/logs
Entries are ordered by seq, oldest first. Page with after=next_after.
Parameters
agent_idpath · string (uuid)requiredafterquery · integer (int64)Return entries with seq greater than this (next_after from the previous page)
limitquery · integer
Responses
- 200Success
Response fields
agent_idstring (uuid)requiredstate"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredentriesobject[]requiredentries[].[].seqintegerrequiredmin 0
entries[].[].at_msintegerrequiredmin 0
entries[].[].operation"launch" | "command" | "stop" | "recover" | "restart" | "update" | "delete"requiredentries[].[].operation_idstring | null (uuid)requiredentries[].[].outcome"started" | "succeeded" | "failed" | "interrupted"requiredentries[].[].statestringrequiredentries[].[].errorstringnext_afterinteger | nullrequiredPass as after to read the next page min 0
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope
- 404Agent is missing or belongs to another organization
- 422Invalid input
- 501Not supported for this agent binding
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID/logs" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getAgentLogs', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getAgentLogs",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Read a task's lifecycle and output log
GET/v1/fleets/tasks/{task_id}/logs
Entries are ordered by seq. Poll with after=next_after until complete is true.
Parameters
task_idpath · string (uuid)requiredafterquery · integerReturn entries with seq greater than this (next_after from the previous read)
Responses
- 200Success
Response fields
task_idstring (uuid)requiredstate"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requiredcompletebooleanrequiredTrue once the task is terminal and every entry has been returned
entriesobject[]requiredentries[].[].seqintegerrequiredmin 0
entries[].[].atstring (date-time)requiredentries[].[].stream"lifecycle" | "output" | "error"requiredentries[].[].kind"task.submitted" | "task.started" | "task.finished"entries[].[].statestringentries[].[].messagestringrequirednext_afterinteger | nullrequiredPass as after to read entries newer than this page min 0
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 422Invalid input
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/tasks/$TASK_ID/logs" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getTaskLogs', {
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getTaskLogs",
"arguments": {
"task_id": "<task_id>"
}
}
}Recover
Recover a persistent Henry agent
POST/v1/fleets/agents/{agent_id}/recover
Parameters
agent_idpath · string (uuid)required
Responses
- 200Success
Response fields
agentobjectrequiredagent.idstring (uuid)requiredagent.namestringrequiredagent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredagent.memoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.agent.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
agent.memory.namespacestringmax length 128
agent.memory.endpointstring (uri)agent.modelstring | nullagent.inferenceobjectrequiredagent.inference.provider"foundry"requiredagent.inference.mode"managed"requiredagent.created_at_msintegerrequiredmin 0
agent.updated_at_msintegerrequiredmin 0
agent.last_operation_idstring | null (uuid)agent.launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).agent.launch.status"in_progress" | "failed"requiredagent.launch.code"AGENT_LAUNCH_FAILED"agent.launch.messagestringagent.skillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
operation_idstring (uuid)requiredresultobjectThe producer's result. A command of a memory.provider minds agent carries
memory.result.memoryobjectMinds memory for this command: whether Minds was recalled (false: the command ran on the agent's recent transcript alone, for example after the connection was deleted; the agent is not fenced) and whether the turn was stored in the organization's Mind (false: Henry's answer is kept).
result.memory.storedbooleanrequiredresult.memory.recalledbooleanrequired
- 401Verified Genesis identity and fleets scope required
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID/recover" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_recoverAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_recoverAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Stop
Stop a persistent Henry agent
POST/v1/fleets/agents/{agent_id}/stop
Parameters
agent_idpath · string (uuid)required
Responses
- 200Success
Response fields
agentobjectrequiredagent.idstring (uuid)requiredagent.namestringrequiredagent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"requiredagent.memoryobjectrequiredThe agent's Memory adapter.
files(the default) is Fleets-local memory: the agent's own recent private transcript.mindsis bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment;customis not bound by any deployment today. A launch or update naming a provider Fleets cannot bind is refused with 422 MEMORY_PROVIDER_UNAVAILABLE before anything is kept. With minds, the Mind is always the one in the organization's own Minds connection;namespaceis only a tag inside it and never selects a Mind. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.agent.memory.provider"minds" | "files" | "custom"requiredfiles (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)
agent.memory.namespacestringmax length 128
agent.memory.endpointstring (uri)agent.modelstring | nullagent.inferenceobjectrequiredagent.inference.provider"foundry"requiredagent.inference.mode"managed"requiredagent.created_at_msintegerrequiredmin 0
agent.updated_at_msintegerrequiredmin 0
agent.last_operation_idstring | null (uuid)agent.launchobjectWhere a launch stands, on a 202 launch answer and its 200 replays.
in_progress: the first launch still waits on Henry; read the agent again.failed: Henry did not start the agent and it is kept as recovery_required; terminal (code and message are present).agent.launch.status"in_progress" | "failed"requiredagent.launch.code"AGENT_LAUNCH_FAILED"agent.launch.messagestringagent.skillsstring[]The agent's declared skills, deduplicated and sorted. Always present on Fleets-managed agents ([] when none); native Henry agents do not carry skills. POST /v1/agents/dispatch routes only to agents that declare every required skill.
operation_idstring (uuid)requiredresultobjectThe producer's result. A command of a memory.provider minds agent carries
memory.result.memoryobjectMinds memory for this command: whether Minds was recalled (false: the command ran on the agent's recent transcript alone, for example after the connection was deleted; the agent is not fenced) and whether the turn was stored in the organization's Mind (false: Henry's answer is kept).
result.memory.storedbooleanrequiredresult.memory.recalledbooleanrequired
- 401Verified Genesis identity and fleets scope required
- 404Agent is missing or belongs to another organization
- 409Operation conflicts with the current agent state
- 422Invalid input
- 503Henry runtime or durable agent storage is unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/agents/$AGENT_ID/stop" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_stopAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_stopAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Stop admitted Henry compute and retain its data
POST/v1/fleets/instances/{instance_id}/stop
Requires Fleets write. No body or query. Returns only the original confirmed release receipt; an uncertain mutation response is observed without replay. Does not imply agent inference or Memory readiness.
Parameters
instance_idpath · string (uuid)requiredIdempotency-Keyheader · stringCanonical UUID4 identifying one explicit lifecycle operation; retain after an uncertain reply. It carries no authorization.
Responses
- 200Original confirmed release acknowledgment
Response fields
idstring (uuid)requiredstate"released"requiredreapedtruerequireddata_retainedtruerequiredstatus_evidence"confirmed_release_receipt"requiredrelease_acknowledged_at_msintegerrequiredmin 0
- 401Verified Genesis identity and fleets:write required
- 404Instance is missing or belongs to another organization
- 422Stop accepts no body or query
- 503Release is unavailable or not confirmed; no invented success
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/instances/$INSTANCE_ID/stop" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('fleets_stopInstance', {
instance_id: '<instance_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_stopInstance",
"arguments": {
"instance_id": "<instance_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Computer connection
Read whether the organization's computer credential is set
GET/v1/fleets/computer-connection
Secret-free status. The credential is never returned.
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/computer-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getComputerConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getComputerConnection",
"arguments": {}
}
}Store the organization's computer credential, encrypted with Genesis KMS
PUT/v1/fleets/computer-connection
The key that seat computer tasks use to call Panes and Shells through the Genesis gateway. It is encrypted like the Foundry connection and never returned.
Request body application/json
api_keystringrequiredGenesis key of this organization with panes:write and shells:write; 1-4096 UTF-8 bytes without CR, LF or NUL. Never returned. min length 1 · max length 4096 · pattern
^[^\r\n\u0000]*$
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 422Invalid or foreign-organization credential
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/fleets/computer-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_putComputerConnection', {
body: {
api_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_putComputerConnection",
"arguments": {
"body": {
"api_key": "string"
}
}
}
}Remove the organization's computer credential
DELETE/v1/fleets/computer-connection
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/fleets/computer-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_deleteComputerConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_deleteComputerConnection",
"arguments": {}
}
}Connection
Read the organization Foundry connection
GET/v1/fleets/connection
Responses
- 200Secret-free connection status
Response fields
connectedbooleanrequiredmodelstringrequiredupdated_atintegermin 0
- 401Verified caller required
- 403Insufficient scope
- 422Invalid or foreign-organization credential
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getConnection",
"arguments": {}
}
}Encrypt an organization-owned Foundry key with Genesis KMS
PUT/v1/fleets/connection
Request body application/json
api_keystringrequiredFoundry key owned by the signed organization with foundry:gateway:invoke; 1–4096 UTF-8 bytes without CR, LF or NUL. min length 1 · max length 4096 · pattern
^[^\r\n\u0000]*$modelstringOptional Foundry model for this organization's tasks, for example openai/gpt-5-mini. It must be a model Foundry lists for this key (422 otherwise). Omit it to use the Fleets default, gpt-4.1-mini. min length 1 · max length 128 · pattern
^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$
Responses
- 200Secret-free connection status
Response fields
connectedbooleanrequiredmodelstringrequiredupdated_atintegermin 0
- 401Verified caller required
- 403Insufficient scope
- 422Invalid or foreign-organization credential
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/fleets/connection" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_setConnection', {
body: {
api_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_setConnection",
"arguments": {
"body": {
"api_key": "string"
}
}
}
}Disconnect the organization Foundry key
DELETE/v1/fleets/connection
Responses
- 200Secret-free connection status
Response fields
connectedbooleanrequiredmodelstringrequiredupdated_atintegermin 0
- 401Verified caller required
- 403Insufficient scope
- 422Invalid or foreign-organization credential
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/fleets/connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_deleteConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_deleteConnection",
"arguments": {}
}
}Read the organization's Minds connection for Fleets agent memory
GET/v1/fleets/connection/minds
Secret-free status: whether the organization has connected a Mind for its Fleets agents' memory, and which. The key is never returned. A Live caller always reads connected false (Minds memory for Fleets agents is Sandbox only).
Responses
- 200Secret-free connection status
Response fields
connectedbooleanrequiredmind_idstring (uuid)The connected Mind
updated_atintegerUnix seconds of the last connect min 0
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope, or not an organization-level caller
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/connection/minds" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getMindsConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getMindsConnection",
"arguments": {}
}
}Connect a Mind for Fleets agent memory, encrypted with Genesis KMS
PUT/v1/fleets/connection/minds
Stores a Sandbox Genesis organization API key of this organization, with a Console selection in it and exactly the permissions minds:read and minds:write (a broader key is refused), and the id of a ready Mind that key reads as this organization's. Fleets agents launched with memory.provider minds then recall and store memory in that Mind through this gateway, as that key. Encrypted like the Foundry connection, in its own record, and never returned or logged. Replaces any earlier Minds connection. Live is refused (409). A write needs a person, or an organization API key, with a Console selection: a machine principal or company delegation is 403. Not yet proven live: no Minds episodic write, overwrite or long-lived key selection has been read back from the deployed gateway, and Fleets deployments keep Minds memory off (FLEETS_AGENT_MINDS_MEMORY_ENABLED unset) until a live test does.
Request body application/json
api_keystringrequiredSandbox Genesis organization API key of this organization with a Console selection and exactly minds:read and minds:write; 1-4096 bytes without CR, LF or NUL. Never returned. min length 1 · max length 4096 · pattern
^[^ ]*$mind_idstring (uuid)requiredA ready Mind of this organization (lowercase UUID) pattern
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
Responses
- 200Secret-free connection status
Response fields
connectedbooleanrequiredmind_idstring (uuid)The connected Mind
updated_atintegerUnix seconds of the last connect min 0
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope, or not an organization-level caller
- 409ENVIRONMENT_NOT_AVAILABLE: a Live caller; Minds memory for Fleets agents is Sandbox only
- 422Invalid body; or MINDS_CONNECTION_INVALID: the key is not a Sandbox API key of this organization with a Console selection and exactly minds:read and minds:write, or mind_id is not a ready Mind of this organization. Nothing was stored.
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/fleets/connection/minds" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api_key": "string",
"mind_id": "00000000-0000-4000-8000-000000000000"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_setMindsConnection', {
body: {
api_key: 'string',
mind_id: '00000000-0000-4000-8000-000000000000',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "fleets_setMindsConnection",
"arguments": {
"body": {
"api_key": "string",
"mind_id": "00000000-0000-4000-8000-000000000000"
}
}
}
}
}Disconnect the organization's Mind from Fleets agent memory
DELETE/v1/fleets/connection/minds
Removes the stored key. Agents with memory.provider minds stop reading and writing the Mind (their commands still run, on the recent transcript alone, with result.memory {recalled: false, stored: false}; deleting such an agent can no longer overwrite what it wrote), and new Minds launches are refused 422 MEMORY_PROVIDER_UNAVAILABLE. The memories already written stay in the organization's Mind. A write needs a person, or an organization API key, with a Console selection: a machine principal or company delegation is 403.
Responses
- 200Secret-free connection status (connected false)
Response fields
connectedbooleanrequiredmind_idstring (uuid)The connected Mind
updated_atintegerUnix seconds of the last connect min 0
- 401Verified Genesis identity and fleets scope required
- 403Insufficient scope, or not an organization-level caller
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/fleets/connection/minds" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_deleteMindsConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_deleteMindsConnection",
"arguments": {}
}
}Fleet
Read the fleet's totals for a range (seats, tasks, what is waiting on you, credits)
GET/v1/fleets/fleet/overview
Counts over the organization's seats and the tasks submitted in [from, to). A task counts as done only when it completed with outcome done; a completed task without that outcome is ended_not_done. failed includes timed out. credits.reserved is held by running tasks; credits.charged is what settled tasks were charged (1 credit = 1 US cent of cost). truncated is true when the range held more than 50000 tasks (the newest are counted).
Parameters
fromquery · string (date-time)Start of the range, RFC 3339 (default: 24 h before to; waiting: 31 days before to)
toquery · string (date-time)End of the range, RFC 3339, exclusive (default: now). The range is at most 31 days.
Responses
- 200Fleet overview
Response fields
object"fleets.fleet.overview"requiredorganization_idstringrequiredenvironment"sandbox" | "live"requiredfromstring (date-time)requiredtostring (date-time)requiredseatsobjectrequiredseats.totalintegerrequiredseats.activeintegerrequiredseats.downintegerrequiredPaused, held or killed
tasksobjectrequiredtasks.submittedintegerrequiredtasks.pendingintegerrequiredtasks.runningintegerrequiredtasks.awaiting_approvalintegerrequiredtasks.completedintegerrequiredtasks.doneintegerrequiredCompleted with outcome done (the only done signal)
tasks.ended_not_doneintegerrequiredtasks.failedintegerrequiredFailed or timed out
tasks.cancelledintegerrequiredwaitingobjectrequiredwaiting.countintegerrequiredwaiting.oldest_atstring | null (date-time)waiting.oldest_age_secondsinteger | nullcreditsobjectrequiredcredits.reservedintegerrequiredcredits.chargedintegerrequiredorg_pause"on" | "off" | "unknown"Whether the organization's Pause all is on (present once Fleets reads org pause from Taps)
truncatedbooleanrequired
- 400from or to is not an RFC 3339 time, from is not before to, the range is over 31 days, or an unknown parameter (code invalid_range)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read), or a delegated company credential (PERSON_ONLY)
- 429More than 120 fleet reads in a minute for the organization (code fleet_read_rate_limited; details.retry_after_seconds)
- 503The read took longer than 3 s (code fleet_read_timeout); ask for a shorter range
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/fleet/overview" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getFleetOverview'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getFleetOverview",
"arguments": {}
}
}Read where the credits went in a range, per agent (seat) or per model
GET/v1/fleets/fleet/spend
Cost per agent. Sums the tasks' own stored charged, reserved (dispatched tasks only), borrowed and computer_minutes over [from, to), in credits only (unit is always credits; 1 credit = 1 US cent of cost; no price or rate). by=seat (default) answers one row per seat with tasks in range, most credits first, paged with limit and after = next_after (an opaque cursor that keeps its first page's range; one that does not fit gives the first page). by=model answers one row per stored model string (empty = unknown), at most 50 (truncated), one page. total equals the overview's credits for the same range; total.complete is false when the range held more than 50000 tasks. Rows carry only counts and sums, never task input, output or principal. Any caller with fleets:read in the organization sees every seat's spend there, like the overview.
Parameters
fromquery · string (date-time)Start of the range, RFC 3339 (default: 24 h before to; waiting: 31 days before to)
toquery · string (date-time)End of the range, RFC 3339, exclusive (default: now). The range is at most 31 days.
byquery · "seat" | "model"Group by seat (default) or model
limitquery · integerSeats per page, by=seat only (default 50)
afterquery · stringThe next_after of the previous page, by=seat only (opaque)
Responses
- 200Fleet spend
Response fields
object"fleets.fleet.spend"requiredorganization_idstringrequiredenvironment"sandbox" | "live"requiredfromstring (date-time)requiredtostring (date-time)requiredby"seat" | "model"requiredunit"credits"requiredtotalobjectrequiredtotal.chargedintegerrequiredCredits settled tasks were charged
total.reservedintegerrequiredCredits held by dispatched tasks still running
total.borrowedintegerrequiredtotal.computer_minutesintegerrequiredtotal.tasksintegerrequiredtotal.doneintegerrequiredCompleted with outcome done (the only done signal)
total.ended_not_doneintegerrequiredtotal.failedintegerrequiredtotal.cancelledintegerrequiredtotal.completebooleanrequiredfalse when the range held more than 50000 tasks
rowsobject[]requiredrows[].[].chargedintegerrequiredCredits settled tasks were charged
rows[].[].reservedintegerrequiredCredits held by dispatched tasks still running
rows[].[].borrowedintegerrequiredrows[].[].computer_minutesintegerrequiredrows[].[].tasksintegerrequiredrows[].[].doneintegerrequiredCompleted with outcome done (the only done signal)
rows[].[].ended_not_doneintegerrequiredrows[].[].failedintegerrequiredrows[].[].cancelledintegerrequiredrows[].[].seat_idstring (uuid)by=seat
rows[].[].namestring | nullby=seat; a released seat keeps its name
rows[].[].typestring | nullby=seat
rows[].[].statestringby=seat
rows[].[].modelstringby=model: the stored model string as recorded (unknown when empty)
next_afterstring | nullrequiredCursor for the next by=seat page (opaque)
truncatedbooleanrequired
- 400Invalid range (as overview), by not seat or model, bucket given, or limit/after with by=model (code invalid_range)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read), or a delegated company credential (PERSON_ONLY)
- 429More than 120 fleet reads in a minute for the organization, shared by all four reads (code fleet_read_rate_limited)
- 503The read took longer than 3 s (code fleet_read_timeout)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/fleet/spend" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getFleetSpend'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getFleetSpend",
"arguments": {}
}
}Read what each seat did in each bucket of a range, and whether (and since when) it is down
GET/v1/fleets/fleet/timeline
One row per seat (ordered by seat id, paged with limit and after = next_after), each with one bucket per bucket_seconds of [from, to): working, asked_you (waiting on an approval), queued, done, ended_not_done, failed, down (the seat is paused, held or killed) and idle. At most 744 buckets per read.
Parameters
fromquery · string (date-time)Start of the range, RFC 3339 (default: 24 h before to; waiting: 31 days before to)
toquery · string (date-time)End of the range, RFC 3339, exclusive (default: now). The range is at most 31 days.
bucketquery · integerBucket length in seconds (default 3600)
limitquery · integerSeats per page (default 20)
afterquery · string (uuid)The next_after of the previous page (a seat id)
Responses
- 200Fleet timeline
Response fields
object"fleets.fleet.timeline"requiredorganization_idstringrequiredenvironment"sandbox" | "live"requiredfromstring (date-time)requiredtostring (date-time)requiredbucket_secondsintegerrequiredseatsobject[]requiredseats[].[].seat_idstring (uuid)requiredseats[].[].namestringrequiredseats[].[].typestringrequiredseats[].[].statestringrequiredseats[].[].state_sincestring (date-time)requiredseats[].[].credits_reservedintegerrequiredseats[].[].down_for_secondsintegerOnly when the seat is down
seats[].[].pause_reasonstringOnly when the seat is down with a reason
seats[].[].bucketsobject[]requiredseats[].[].buckets[].[].startstring (date-time)requiredseats[].[].buckets[].[].workingintegerrequiredseats[].[].buckets[].[].asked_youintegerrequiredseats[].[].buckets[].[].queuedintegerrequiredseats[].[].buckets[].[].doneintegerrequiredseats[].[].buckets[].[].ended_not_doneintegerrequiredseats[].[].buckets[].[].failedintegerrequiredseats[].[].buckets[].[].downbooleanrequiredseats[].[].buckets[].[].idlebooleanrequirednext_afterstring | null (uuid)requiredtruncatedbooleanrequired
- 400Invalid range (as overview), bucket outside 900..86400, more than 744 buckets, or after is not a seat id (code invalid_range)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read), or a delegated company credential (PERSON_ONLY)
- 429More than 120 fleet reads in a minute for the organization (code fleet_read_rate_limited)
- 503The read took longer than 3 s (code fleet_read_timeout)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/fleet/timeline" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getFleetTimeline'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getFleetTimeline",
"arguments": {}
}
}Read the approvals waiting on a person across the fleet, oldest first
GET/v1/fleets/fleet/waiting
Read-only. Without from, the queue looks back the full 31 days, so an ask never drops out of it after a day. Deciding one is the person's own POST /v1/fleets/seats/{seat_id}/tasks/{task_id}/approvals/{approval_id} (task_path names the task). detail is cut to 500 characters.
Parameters
fromquery · string (date-time)Start of the range, RFC 3339 (default: 24 h before to; waiting: 31 days before to)
toquery · string (date-time)End of the range, RFC 3339, exclusive (default: now). The range is at most 31 days.
limitquery · integerItems per page (default 50)
afterquery · string (uuid)The next_after of the previous page (an approval id)
Responses
- 200Waiting queue
Response fields
object"fleets.fleet.waiting"requiredorganization_idstringrequiredenvironment"sandbox" | "live"requiredfromstring (date-time)requiredtostring (date-time)requiredcountintegerrequireditemsobject[]requireditems[].[].approval_idstring (uuid)requireditems[].[].task_idstring (uuid)requireditems[].[].seat_idstring (uuid)requireditems[].[].seat_namestring | nullitems[].[].actionstringrequireditems[].[].detailstringrequiredmax length 500
items[].[].asked_atstring (date-time)requireditems[].[].age_secondsintegerrequireditems[].[].task_pathstringrequiredThe task, as /v1/seats/{seat_id}/tasks/{task_id} on Fleets (/v1/fleets/... at the gateway)
next_afterstring | null (uuid)requiredtruncatedbooleanrequired
- 400Invalid range (as overview), bucket given, or after is not an approval id (code invalid_range)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read), or a delegated company credential (PERSON_ONLY)
- 429More than 120 fleet reads in a minute for the organization (code fleet_read_rate_limited)
- 503The read took longer than 3 s (code fleet_read_timeout)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/fleet/waiting" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getFleetWaiting'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getFleetWaiting",
"arguments": {}
}
}Instances
Read admitted Henry instance status in the verified organization
GET/v1/fleets/instances
Protected server-owned placements only. Admission hold is distinct from physical state and neither proves harness readiness. Default-off until actual Henry Host bindings are configured.
Parameters
limitquery · integerafterquery · string (uuid)
Responses
- 200Actual scoped Host status page
Response fields
instancesobject[]requiredinstances[].[].idstring (uuid)requiredinstances[].[].namestringrequiredmin length 1 · max length 128
instances[].[].organization_idstringrequiredinstances[].[].workspace_idstringrequiredinstances[].[].project_idstringrequiredinstances[].[].admission_heldboolean | nullrequiredHost admission fence; does not mean the workload is physically paused. Null after confirmed release.
instances[].[].physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"requiredinstances[].[].status_evidence"live_controller" | "confirmed_release_receipt"requiredinstances[].[].release_acknowledged_at_msinteger | nullrequiredOriginal Host acknowledgment of a confirmed release, not a new live observation min 0
instances[].[].harness_readybooleanrequiredReported by the real Henry harness, never inferred from a container or relay
instances[].[].observed_at_msinteger | nullrequiredmin 0
instances[].[].lease_expiresobject | nullrequiredinstances[].[].lease_expires.wall_msintegerrequiredmin 0
instances[].[].lease_expires.logicalintegerrequiredmin 0
next_cursorstring | null (uuid)required
- 401Verified Genesis identity and Fleets read scope required
- 404Cursor does not belong to the verified organization
- 422Invalid query
- 503Placements are unconfigured or actual Host status is unavailable; never an invented empty list
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/instances" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listInstances'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listInstances",
"arguments": {}
}
}Read one admitted Henry instance
GET/v1/fleets/instances/{instance_id}
Parameters
instance_idpath · string (uuid)required
Responses
- 200Actual scoped Host status
Response fields
idstring (uuid)requirednamestringrequiredmin length 1 · max length 128
organization_idstringrequiredworkspace_idstringrequiredproject_idstringrequiredadmission_heldboolean | nullrequiredHost admission fence; does not mean the workload is physically paused. Null after confirmed release.
physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"requiredstatus_evidence"live_controller" | "confirmed_release_receipt"requiredrelease_acknowledged_at_msinteger | nullrequiredOriginal Host acknowledgment of a confirmed release, not a new live observation min 0
harness_readybooleanrequiredReported by the real Henry harness, never inferred from a container or relay
observed_at_msinteger | nullrequiredmin 0
lease_expiresobject | nullrequiredlease_expires.wall_msintegerrequiredmin 0
lease_expires.logicalintegerrequiredmin 0
- 401Verified Genesis identity and Fleets read scope required
- 404Instance is missing or belongs to another verified organization
- 503Actual Host status is unavailable or unconfirmed
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/instances/$INSTANCE_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getInstance', {
instance_id: '<instance_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getInstance",
"arguments": {
"instance_id": "<instance_id>"
}
}
}Start
Start already admitted Henry compute
POST/v1/fleets/instances/{instance_id}/start
Requires Fleets write. No body or query. Confirms one genuine Start connection and a current unheld/running observation, without automatic replay. Does not create a new placement or configure inference/Memory; harness_ready remains false in this producer slice.
Parameters
instance_idpath · string (uuid)requiredIdempotency-Keyheader · stringCanonical UUID4 identifying one explicit lifecycle operation; retain after an uncertain reply. It carries no authorization.
Responses
- 200Confirmed current admitted-compute status
Response fields
idstring (uuid)requirednamestringrequiredmin length 1 · max length 128
organization_idstringrequiredworkspace_idstringrequiredproject_idstringrequiredadmission_heldboolean | nullrequiredHost admission fence; does not mean the workload is physically paused. Null after confirmed release.
physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"requiredstatus_evidence"live_controller" | "confirmed_release_receipt"requiredrelease_acknowledged_at_msinteger | nullrequiredOriginal Host acknowledgment of a confirmed release, not a new live observation min 0
harness_readybooleanrequiredReported by the real Henry harness, never inferred from a container or relay
observed_at_msinteger | nullrequiredmin 0
lease_expiresobject | nullrequiredlease_expires.wall_msintegerrequiredmin 0
lease_expires.logicalintegerrequiredmin 0
- 401Verified Genesis identity and fleets:write required
- 404Instance is missing or belongs to another organization
- 422Start accepts no body or query
- 503Connection or current running state is unavailable or unconfirmed; no retry
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/instances/$INSTANCE_ID/start" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('fleets_startInstance', {
instance_id: '<instance_id>',
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_startInstance",
"arguments": {
"instance_id": "<instance_id>",
"idempotency_key": "<a stable key per change>"
}
}
}Pools
List the organization's seat pools
GET/v1/fleets/pools
Responses
- 200Pools
Response fields
poolsobject[]requiredpools[].[].idstringrequiredpools[].[].object"fleets.pool"requiredpools[].[].namestringpools[].[].statestringpools[].[].purseobjectrequiredpools[].[].purse.allowanceintegerPlan allowance in credits (seats)
pools[].[].purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
pools[].[].purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
pools[].[].purse.reservedintegerrequiredpools[].[].purse.spentintegerrequiredpools[].[].purse.overdraftintegerrequiredCredits borrowed and not yet repaid
pools[].[].purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
pools[].[].purse.carvedintegerCredits carved out to seats (pools)
pools[].[].purse.pool_idstringThe pool a pooled seat draws on
pools[].[].computerobjectrequiredpools[].[].computer.entitled_minutesintegerrequiredmin 0
pools[].[].computer.used_minutesintegerrequiredmin 0
pools[].[].seatsstring[]Seats under the pool that are not released
pools[].[].releaseobjectpools[].[].release.idstringrequiredpools[].[].release.object"fleets.pool.release"requiredpools[].[].release.pool_idstringpools[].[].release.state"released"requiredpools[].[].release.returned_creditsintegerrequiredmin 0
pools[].[].release.returned_computer_minutesintegerrequiredmin 0
pools[].[].release.unpaid_overdraft_creditsintegermin 0
pools[].[].release.spent_creditsintegermin 0
pools[].[].release.released_atstringpools[].[].created_atstringpools[].[].updated_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/pools" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listPools'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listPools",
"arguments": {}
}
}Create a seat pool (a shared top purse and computer minutes)
POST/v1/fleets/pools
Seats hired with this pool_id draw credits and computer minutes from it. Reusing idempotency_key with the same body returns the first pool.
Request body application/json
namestringmin length 1 · max length 128
creditsintegerrequiredmin 0 · max 100000000
computer_minutesintegermin 0 · max 100000000 · default
0idempotency_keystringrequiredStable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern
^[!-~]+$
Responses
- 201Pool created
Response fields
idstringrequiredobject"fleets.pool"requirednamestringstatestringpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
seatsstring[]Seats under the pool that are not released
releaseobjectrelease.idstringrequiredrelease.object"fleets.pool.release"requiredrelease.pool_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredmin 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegermin 0
release.spent_creditsintegermin 0
release.released_atstringcreated_atstringupdated_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 409Idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/pools" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"credits": 0,
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_createPool', {
body: {
credits: 0,
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_createPool",
"arguments": {
"body": {
"credits": 0,
"idempotency_key": "string"
}
}
}
}Read a seat pool
GET/v1/fleets/pools/{pool_id}
Parameters
pool_idpath · stringrequired
Responses
- 200Pool
Response fields
idstringrequiredobject"fleets.pool"requirednamestringstatestringpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
seatsstring[]Seats under the pool that are not released
releaseobjectrelease.idstringrequiredrelease.object"fleets.pool.release"requiredrelease.pool_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredmin 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegermin 0
release.spent_creditsintegermin 0
release.released_atstringcreated_atstringupdated_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Pool is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/pools/$POOL_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getPool', {
pool_id: '<pool_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getPool",
"arguments": {
"pool_id": "<pool_id>"
}
}
}Ledger
Read a pool's purse ledger
GET/v1/fleets/pools/{pool_id}/ledger
Parameters
pool_idpath · stringrequired
Responses
- 200Purse entries
Response fields
idstringThe seat or pool ID
entriesobject[]requiredentries[].[].seqintegerrequiredmin 0
entries[].[].at_msintegermin 0
entries[].[].kindstringrequiredhire, pool_open, reserve, commit, top_up, borrow, repay, upgrade, hold, resume, kill or release
entries[].[].creditsintegerrequiredmin 0
entries[].[].minutesintegermin 0
entries[].[].task_idstringentries[].[].availableintegerentries[].[].reservedintegerentries[].[].spentintegerentries[].[].overdraftinteger
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Pool is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/pools/$POOL_ID/ledger" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getPoolLedger', {
pool_id: '<pool_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getPoolLedger",
"arguments": {
"pool_id": "<pool_id>"
}
}
}Read a seat's purse ledger (hire, reserve, commit, top_up, borrow, release)
GET/v1/fleets/seats/{seat_id}/ledger
Parameters
seat_idpath · stringrequired
Responses
- 200Purse entries
Response fields
idstringThe seat or pool ID
entriesobject[]requiredentries[].[].seqintegerrequiredmin 0
entries[].[].at_msintegermin 0
entries[].[].kindstringrequiredhire, pool_open, reserve, commit, top_up, borrow, repay, upgrade, hold, resume, kill or release
entries[].[].creditsintegerrequiredmin 0
entries[].[].minutesintegermin 0
entries[].[].task_idstringentries[].[].availableintegerentries[].[].reservedintegerentries[].[].spentintegerentries[].[].overdraftinteger
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Seat is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/ledger" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getSeatLedger', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getSeatLedger",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Release
Release a pool (settle its purse; terminal)
POST/v1/fleets/pools/{pool_id}/release
Answers the settlement (returned_credits, returned_computer_minutes, unpaid_overdraft_credits, spent_credits, released_at). Idempotent by pool ID. 409 pool_has_seats while seats under it are not released.
Parameters
pool_idpath · stringrequired
Responses
- 200Released pool
Response fields
idstringrequiredobject"fleets.pool.release"requiredpool_idstringstate"released"requiredreturned_creditsintegerrequiredmin 0
returned_computer_minutesintegerrequiredmin 0
unpaid_overdraft_creditsintegermin 0
spent_creditsintegermin 0
released_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Pool is missing or belongs to another organization
- 409Seats under the pool are not released (code pool_has_seats), or work is settling (tasks_settling)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/pools/$POOL_ID/release" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_releasePool', {
pool_id: '<pool_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_releasePool",
"arguments": {
"pool_id": "<pool_id>"
}
}
}Release a seat (settle the purse, delete the agent; terminal)
POST/v1/fleets/seats/{seat_id}/release
Answers the settlement (returned_credits, returned_computer_minutes, unpaid_overdraft_credits, spent_credits, agent_deleted, released_at). Idempotent by seat ID; a repeat returns the same settlement. While it runs the seat is releasing, and every other write answers 409. 409 tasks_settling while work is outstanding; retry.
Parameters
seat_idpath · stringrequired
Responses
- 200Released seat
Response fields
idstringrequiredobject"fleets.seat.release"requiredseat_idstringstate"released"requiredreturned_creditsintegerrequiredCredits returned when the purse was settled min 0
returned_computer_minutesintegerrequiredmin 0
unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
spent_creditsintegermin 0
pool_idstring | nullagent_deletedbooleanreleased_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Work is still settling (code tasks_settling); retry
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/release" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_releaseSeat', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_releaseSeat",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Top up
Add credits (and optionally computer minutes) to a pool
POST/v1/fleets/pools/{pool_id}/top-up
At least one of credits and computer_minutes must be above 0 (422 otherwise).
Parameters
pool_idpath · stringrequired
Request body application/json
creditsintegerrequiredmin 0 · max 100000000
computer_minutesintegermin 0 · max 100000000
idempotency_keystringrequiredStable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern
^[!-~]+$
Responses
- 200Pool
Response fields
idstringrequiredobject"fleets.pool"requirednamestringstatestringpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
seatsstring[]Seats under the pool that are not released
releaseobjectrelease.idstringrequiredrelease.object"fleets.pool.release"requiredrelease.pool_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredmin 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegermin 0
release.spent_creditsintegermin 0
release.released_atstringcreated_atstringupdated_atstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Pool is missing or belongs to another organization
- 409Pool is released (code pool_released), or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/pools/$POOL_ID/top-up" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"credits": 0,
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_topUpPool', {
pool_id: '<pool_id>',
body: {
credits: 0,
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_topUpPool",
"arguments": {
"pool_id": "<pool_id>",
"body": {
"credits": 0,
"idempotency_key": "string"
}
}
}
}Add credits (and optionally computer minutes) to a seat's purse
POST/v1/fleets/seats/{seat_id}/top-up
Repays any overdraft first, then adds to the available credits. Optional computer_minutes add to the seat's computer entitlement under the same idempotency_key and are recorded as minutes on the ledger top_up entry. credits may be 0 when computer_minutes is above 0; both 0 is 422. A helper seat with computer_minutes above 0 answers 403 (code computer_not_entitled). A pooled seat answers 409 (code pooled_seat); top up the pool. A seat paused with purse_empty resumes when credits are available again. Reusing idempotency_key returns the first result.
Parameters
seat_idpath · stringrequired
Request body application/json
creditsintegerrequiredMay be 0 when computer_minutes is above 0 min 0 · max 100000000
computer_minutesintegerAdded to the seat's computer entitlement; not for helper or pooled seats min 0 · max 100000000
idempotency_keystringrequiredStable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern
^[!-~]+$
Responses
- 200Seat
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write), or computer_minutes on a helper seat (code computer_not_entitled)
- 404Seat is missing or belongs to another organization
- 409Seat is releasing or released, pooled (code pooled_seat), or idempotency conflict
- 422Invalid input, or credits and computer_minutes both 0
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/top-up" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"credits": 0,
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_topUpSeat', {
seat_id: '<seat_id>',
body: {
credits: 0,
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_topUpSeat",
"arguments": {
"seat_id": "<seat_id>",
"body": {
"credits": 0,
"idempotency_key": "string"
}
}
}
}Receipts
Read the public keys that verify task receipts
GET/v1/fleets/receipts/verification-keys
The Ed25519 public keys Fleets signs task receipts (henry_receipt) with: one per environment (key_id fleets-runtime-1 for Sandbox, fleets-runtime-1-live for Live). The same answer for every caller; it holds no organization data. The signature covers the compact JSON (UTF-8, no spaces, non-ASCII unescaped) of henry_receipt.record with exactly the fields job_id, task, started_at, completed_at, exit_code, cancelled in that order; signature is base64 of the 64-byte signature. Pick the key of the environment you read the receipt in.
Responses
- 200Success
Response fields
keysobject[]requiredkeys[].[].key_idstringrequiredkeys[].[].environment"sandbox" | "live"requiredkeys[].[].algorithm"ed25519"requiredkeys[].[].public_key_base64stringrequiredRaw 32-byte Ed25519 public key, base64
keys[].[].public_key_base64urlstringThe same key, base64url without padding
keys[].[].jwkobjectThe same key as an RFC 8037 OKP JWK (kty OKP, crv Ed25519, x, kid, alg EdDSA)
signed_messageobjectrequiredsigned_message.encodingstringsigned_message.fieldsstring[]signature_encodingstringchoose_keystring
- 401Invalid credential
- 403Insufficient scope
- 503No receipt key is loaded on this Fleets host
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/receipts/verification-keys" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getReceiptVerificationKeys'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getReceiptVerificationKeys",
"arguments": {}
}
}Seats
List the organization's agent seats
GET/v1/fleets/seats
Responses
- 200Seats
Response fields
seatsobject[]requiredseats[].[].idstringrequiredseats[].[].object"fleets.seat"requiredseats[].[].type"helper" | "operator" | "always_on"requiredseats[].[].namestringseats[].[].state"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
seats[].[].pause_reasonstringWhy the seat is paused, for example purse_empty
seats[].[].agent_idstring | nullseats[].[].pool_idstring | nullseats[].[].purseobjectrequiredseats[].[].purse.allowanceintegerPlan allowance in credits (seats)
seats[].[].purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
seats[].[].purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
seats[].[].purse.reservedintegerrequiredseats[].[].purse.spentintegerrequiredseats[].[].purse.overdraftintegerrequiredCredits borrowed and not yet repaid
seats[].[].purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
seats[].[].purse.carvedintegerCredits carved out to seats (pools)
seats[].[].purse.pool_idstringThe pool a pooled seat draws on
seats[].[].computerobjectrequiredseats[].[].computer.entitled_minutesintegerrequiredmin 0
seats[].[].computer.used_minutesintegerrequiredmin 0
seats[].[].releaseobjectseats[].[].release.idstringrequiredseats[].[].release.object"fleets.seat.release"requiredseats[].[].release.seat_idstringseats[].[].release.state"released"requiredseats[].[].release.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
seats[].[].release.returned_computer_minutesintegerrequiredmin 0
seats[].[].release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
seats[].[].release.spent_creditsintegermin 0
seats[].[].release.pool_idstring | nullseats[].[].release.agent_deletedbooleanseats[].[].release.released_atstringseats[].[].created_atstringseats[].[].updated_atstringseats[].[].created_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listSeats'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listSeats",
"arguments": {}
}
}Hire an agent seat
POST/v1/fleets/seats
Creates a persistent Henry agent (files memory, the organization's connection model) with a Henry purse and the plan's computer entitlement. With fund omitted or true the purse opens at the plan's credits; with fund false it opens empty and is funded by top-up. With pool_id the seat's purse is carved under that pool (uncapped, bounded by the pool) and its computer minutes count against the pool; a pooled seat takes no borrow_ceiling_credits (422). Reusing idempotency_key with the same body returns the first seat; with a different body it is a 409 (code idempotency_conflict).
Request body application/json
type"helper" | "operator" | "always_on"requirednamestringmin length 1 · max length 128
borrow_ceiling_creditsintegerOverdraft the seat may run up before it pauses; not with pool_id (422) min 0 · default
0pool_idstringCarve the seat's purse under this pool; a pooled seat is funded by its pool, so fund: true with pool_id is a 422 min length 1 · max length 128
fundbooleanfalse opens the purse empty, to be funded by top-up default
trueidempotency_keystringrequiredStable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern
^[!-~]+$
Responses
- 201Seat hired
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Pool is missing or belongs to another organization
- 409Idempotency conflict, or the pool is released
- 422Invalid input
- 503Henry runtime or seat storage unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "helper",
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_hireSeat', {
body: {
type: 'helper',
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_hireSeat",
"arguments": {
"body": {
"type": "helper",
"idempotency_key": "string"
}
}
}
}Read an agent seat, its purse and its computer use
GET/v1/fleets/seats/{seat_id}
Parameters
seat_idpath · stringrequired
Responses
- 200Seat
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Seat is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getSeat', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getSeat",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Rename a seat or change its borrow ceiling
PATCH/v1/fleets/seats/{seat_id}
Raising borrow_ceiling_credits on a seat paused with purse_empty un-parks it. A pooled seat takes no borrow_ceiling_credits (422).
Parameters
seat_idpath · stringrequired
Request body application/json
namestringmin length 1 · max length 128
borrow_ceiling_creditsintegerNot for a pooled seat (422) min 0
Responses
- 200Seat
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Seat is releasing or released (code seat_released)
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_updateSeat', {
seat_id: '<seat_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_updateSeat",
"arguments": {
"seat_id": "<seat_id>",
"body": {}
}
}
}List the seat plans (helper, operator, always_on)
GET/v1/fleets/seats/plans
Display data only. Each plan names its credit allowance and computer entitlement; the price is shown for information and is never charged by Fleets.
Responses
- 200Seat plans
Response fields
plansobject[]requiredplans[].[].type"helper" | "operator" | "always_on"requiredplans[].[].creditsintegerrequiredPurse allowance in credits (1 credit = 1 US cent of cost) min 0
plans[].[].computer_minutesintegerrequiredComputer entitlement in minutes (0 for helper) min 0
plans[].[].computerbooleanWhether the plan includes a computer
plans[].[].price_usdnumberDisplay only; Fleets never charges money min 0
creditobjectWhat one credit is
credit.unitstringcredit.value_usdnumbercredit.meaningstring
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/plans" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listSeatPlans'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listSeatPlans",
"arguments": {}
}
}Hold
Hold a seat (no new work; a running task is cancelled with a signed receipt)
POST/v1/fleets/seats/{seat_id}/hold
Parameters
seat_idpath · stringrequired
Responses
- 200Seat with the tasks it cancelled
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
cancelled_tasksstring[]requiredTasks cancelled with a signed cancelled receipt
agent_statestringThe agent's state after kill (kill only)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Seat is releasing or released (code seat_released)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/hold" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_holdSeat', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_holdSeat",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Kill
Kill a seat (cancel running work now and stop the agent; resume is allowed)
POST/v1/fleets/seats/{seat_id}/kill
Parameters
seat_idpath · stringrequired
Responses
- 200Seat with the tasks it cancelled and the agent state
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
cancelled_tasksstring[]requiredTasks cancelled with a signed cancelled receipt
agent_statestringThe agent's state after kill (kill only)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Seat is releasing or released (code seat_released)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/kill" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_killSeat', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_killSeat",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Resume
Resume a held or killed seat
POST/v1/fleets/seats/{seat_id}/resume
Parameters
seat_idpath · stringrequired
Responses
- 200Seat
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Seat is releasing or released (code seat_released)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/resume" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_resumeSeat', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_resumeSeat",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Tasks
List a seat's tasks
GET/v1/fleets/seats/{seat_id}/tasks
Parameters
seat_idpath · stringrequired
Responses
- 200Seat tasks
Response fields
tasksobject[]requiredtasks[].[].task_idstring (uuid)requiredtasks[].[].object"fleets.seat.task"tasks[].[].seat_idstringrequiredtasks[].[].kind"research" | "computer"requiredtasks[].[].state"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"requiredWhere the process is. completed means the process ended, not that the work was done; read done for that.
tasks[].[].donebooleanrequiredThe only done signal: true only when state is completed and the agent ended with finish done (outcome done). A plain answer (outcome unstated), not_done, waiting, a failed or a running task is false. Same for every kind and tenant.
tasks[].[].usageobjectWhat the task did, as whole-number counts and the model id only (never urls, queries, hosts, arguments or timings); zeros before the task's usage report.
tasks[].[].usage.web_readsintegermin 0
tasks[].[].usage.web_searchesintegermin 0
tasks[].[].usage.oneos_callsintegerThe larger of the task's report and Fleets' own count of relayed OneOS calls min 0
tasks[].[].usage.rows_submittedintegerRows the task submitted with submit_rows min 0
tasks[].[].usage.tool_callsintegerweb_reads + web_searches + oneos_calls + rows_submitted min 0
tasks[].[].usage.requestsintegerModel requests the task's runtime started min 0
tasks[].[].usage.prompt_tokensintegermin 0
tasks[].[].usage.completion_tokensintegermin 0
tasks[].[].usage.modelstringThe model id the runtime used (the task's own model when the runtime reported none) min length 1 · max length 128 · pattern
^[A-Za-z0-9._:/-]+$tasks[].[].toolsobjectWhat the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.
tasks[].[].tools.webbooleanFleets' own web tools (web_search / web_read)
tasks[].[].tools.oneosbooleanThe caller-relayed OneOS tools
tasks[].[].tools.rowsbooleansubmit_rows
tasks[].[].web_off"server_off" | "not_connected" | "daily_cap"Present only when web was not sent and the web was unusable for this task: server_off (Fleets' web is off), not_connected (the organization has no usable web connection in this environment) or daily_cap (the seat's web calls for the day are used). A code only, on the caller's own task: never a slot id, connection name, cap number or another organization's state.
tasks[].[].outputstring | nulltasks[].[].errorstring | nulltasks[].[].approvalsobject[]tasks[].[].approvals[].[].idstringrequiredtasks[].[].approvals[].[].actionstringFor example open_computer
tasks[].[].approvals[].[].detailstringtasks[].[].approvals[].[].statusstringrequiredtasks[].[].creditsobjecttasks[].[].credits.reservedintegertasks[].[].credits.chargedinteger | nullnull until the task settles
tasks[].[].credits.borrowedintegertasks[].[].computer_minutesintegermin 0
tasks[].[].computer_minutes_allowedintegermin 0
tasks[].[].settledbooleanThe task's credits are committed and the rest returned
tasks[].[].receipt_urlstringtasks[].[].submitted_atstringtasks[].[].completed_atstring | nulltasks[].[].rowsobject[]The rows the task submitted (submit_rows), each checked against the public reads THAT task made. A row whose source_url is null or was not read by the task has value and source_url "Missing"; the agent's own value for it is only in the owner's rows-trail. Absent when the task submitted no rows.
tasks[].[].rows[].[].fieldstringrequiredmax length 80
tasks[].[].rows[].[].valuestringrequiredThe checked value, or "Missing" max length 500
tasks[].[].rows[].[].source_urlstringrequiredThe read source (userinfo, query and fragment removed), or "Missing"
tasks[].[].rows[].[].datestring | integerThe source's own published date (string) when it gave one, else when the task read it (epoch ms); null for a Missing row
tasks[].[].rows[].[].date_kind"published" | "retrieved"tasks[].[].rows[].[].seen_as"read" | "snippet" | "listed"How much of the source the task saw
tasks[].[].rows[].[].figure"checked" | "not_found" | "not_checked"For a value with digits, whether every figure appears in the source's read text; not_checked when the text was not kept. null when the value has no digits or the row is Missing without a cause
tasks[].[].rows[].[].cause"no_ledger" | "truncated"Why a row naming a source was not checked
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Seat is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listSeatTasks', {
seat_id: '<seat_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listSeatTasks",
"arguments": {
"seat_id": "<seat_id>"
}
}
}Give a seat a task
POST/v1/fleets/seats/{seat_id}/tasks
Reserves the task's expected credits and runs it on the seat's agent. A computer task opens a Panes or Shells session through the Genesis gateway and needs an approval unless approve_computer is true. 402 (code purse_empty) when the purse and borrow ceiling are exhausted; 403 (code computer_not_entitled) for a computer task on a helper seat; 409 (code seat_not_active) when the seat is held, killed, releasing or released. Other codes: computer_minutes_exhausted, computer_not_connected, model_unpriced. kind defaults to research. A computer task reserves its credits when its open_computer approval is granted. 409 (code no_tools) when the input sends web true or oneos true and the task would not get that tool (or the kind is not research): the body names missing and, for the web, web_off; nothing is reserved and no task is made. An asked tool is never silently dropped.
Parameters
seat_idpath · stringrequired
Request body application/json
inputstringrequiredTask text: 1-65536 UTF-8 bytes without NUL. min length 1 · max length 65536 · pattern
^[^\u0000]*$kind"research" | "computer"default
"research"timeout_secondsintegermin 1 · max 3600
approve_computerbooleanOpen the computer without a separate approval default
falseidempotency_keystringrequiredStable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern
^[!-~]+$oneosbooleanResearch tasks: the caller answers the task's OneOS calls (oneos_find / oneos_read / oneos_act), relayed through POST /seats/{id}/tasks/{task_id}/host-calls/{call_id}. default
falsewebbooleantrue: the task must get Fleets' own web tools (web_search / web_read), else 409 no_tools (nothing reserved, no task made). false: they are not offered, whatever the seat's web connection (a caller that relays its own web reads sends it). Absent: offered when the seat's web connection is usable, else the task runs without them and its view carries web_off. Joins the idempotency fingerprint whenever sent (true or false); absent leaves it unchanged.
oneos_toolsobject[]With oneos: true. The operations the caller holds for this task, listed in the agent's system message under a fixed header (reads, then those that ask the person, then changes; by id). A hint, never a grant: the caller still answers every call. At most 8 KiB in all. Malformed entries are refused (422), never trimmed. Joins the idempotency fingerprint only when sent.
oneos_tools[].[].operationstringrequiredpattern
^[A-Za-z0-9_.:-]{1,120}$oneos_tools[].[].doesstringrequiredOne line, 1-400 UTF-8 bytes, without control, line or paragraph separator, bidi or zero-width characters. min length 1 · max length 400
oneos_tools[].[].kind"read" | "change" | "asks"requiredoneos_tools_moreintegerWith oneos_tools: how many more operations the caller holds than it listed (the agent is told the count and finds them with oneos_find). min 0 · max 1000
Responses
- 202Task accepted
Response fields
task_idstring (uuid)requiredobject"fleets.seat.task"seat_idstringrequiredkind"research" | "computer"requiredstate"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"requiredWhere the process is. completed means the process ended, not that the work was done; read done for that.
donebooleanrequiredThe only done signal: true only when state is completed and the agent ended with finish done (outcome done). A plain answer (outcome unstated), not_done, waiting, a failed or a running task is false. Same for every kind and tenant.
usageobjectWhat the task did, as whole-number counts and the model id only (never urls, queries, hosts, arguments or timings); zeros before the task's usage report.
usage.web_readsintegermin 0
usage.web_searchesintegermin 0
usage.oneos_callsintegerThe larger of the task's report and Fleets' own count of relayed OneOS calls min 0
usage.rows_submittedintegerRows the task submitted with submit_rows min 0
usage.tool_callsintegerweb_reads + web_searches + oneos_calls + rows_submitted min 0
usage.requestsintegerModel requests the task's runtime started min 0
usage.prompt_tokensintegermin 0
usage.completion_tokensintegermin 0
usage.modelstringThe model id the runtime used (the task's own model when the runtime reported none) min length 1 · max length 128 · pattern
^[A-Za-z0-9._:/-]+$toolsobjectWhat the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.
tools.webbooleanFleets' own web tools (web_search / web_read)
tools.oneosbooleanThe caller-relayed OneOS tools
tools.rowsbooleansubmit_rows
web_off"server_off" | "not_connected" | "daily_cap"Present only when web was not sent and the web was unusable for this task: server_off (Fleets' web is off), not_connected (the organization has no usable web connection in this environment) or daily_cap (the seat's web calls for the day are used). A code only, on the caller's own task: never a slot id, connection name, cap number or another organization's state.
outputstring | nullerrorstring | nullapprovalsobject[]approvals[].[].idstringrequiredapprovals[].[].actionstringFor example open_computer
approvals[].[].detailstringapprovals[].[].statusstringrequiredcreditsobjectcredits.reservedintegercredits.chargedinteger | nullnull until the task settles
credits.borrowedintegercomputer_minutesintegermin 0
computer_minutes_allowedintegermin 0
settledbooleanThe task's credits are committed and the rest returned
receipt_urlstringsubmitted_atstringcompleted_atstring | nullrowsobject[]The rows the task submitted (submit_rows), each checked against the public reads THAT task made. A row whose source_url is null or was not read by the task has value and source_url "Missing"; the agent's own value for it is only in the owner's rows-trail. Absent when the task submitted no rows.
rows[].[].fieldstringrequiredmax length 80
rows[].[].valuestringrequiredThe checked value, or "Missing" max length 500
rows[].[].source_urlstringrequiredThe read source (userinfo, query and fragment removed), or "Missing"
rows[].[].datestring | integerThe source's own published date (string) when it gave one, else when the task read it (epoch ms); null for a Missing row
rows[].[].date_kind"published" | "retrieved"rows[].[].seen_as"read" | "snippet" | "listed"How much of the source the task saw
rows[].[].figure"checked" | "not_found" | "not_checked"For a value with digits, whether every figure appears in the source's read text; not_checked when the text was not kept. null when the value has no digits or the row is Missing without a cause
rows[].[].cause"no_ledger" | "truncated"Why a row naming a source was not checked
- 401Verified Genesis identity required
- 402Purse empty (code purse_empty)
- 403Insufficient scope (fleets:write), computer_not_entitled, or computer_minutes_exhausted
- 404Seat is missing or belongs to another organization
- 409Seat is held, killed, releasing or released (code seat_not_active), an asked tool the task would not get (code no_tools), or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "string",
"idempotency_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_submitSeatTask', {
seat_id: '<seat_id>',
body: {
input: 'string',
idempotency_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_submitSeatTask",
"arguments": {
"seat_id": "<seat_id>",
"body": {
"input": "string",
"idempotency_key": "string"
}
}
}
}Read a seat task, its approvals and its credits
GET/v1/fleets/seats/{seat_id}/tasks/{task_id}
The signed Henry receipt is at receipt_url (GET /v1/fleets/tasks/{task_id}/receipt).
Parameters
task_idpath · stringrequiredseat_idpath · stringrequired
Responses
- 200Seat task
Response fields
task_idstring (uuid)requiredobject"fleets.seat.task"seat_idstringrequiredkind"research" | "computer"requiredstate"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"requiredWhere the process is. completed means the process ended, not that the work was done; read done for that.
donebooleanrequiredThe only done signal: true only when state is completed and the agent ended with finish done (outcome done). A plain answer (outcome unstated), not_done, waiting, a failed or a running task is false. Same for every kind and tenant.
usageobjectWhat the task did, as whole-number counts and the model id only (never urls, queries, hosts, arguments or timings); zeros before the task's usage report.
usage.web_readsintegermin 0
usage.web_searchesintegermin 0
usage.oneos_callsintegerThe larger of the task's report and Fleets' own count of relayed OneOS calls min 0
usage.rows_submittedintegerRows the task submitted with submit_rows min 0
usage.tool_callsintegerweb_reads + web_searches + oneos_calls + rows_submitted min 0
usage.requestsintegerModel requests the task's runtime started min 0
usage.prompt_tokensintegermin 0
usage.completion_tokensintegermin 0
usage.modelstringThe model id the runtime used (the task's own model when the runtime reported none) min length 1 · max length 128 · pattern
^[A-Za-z0-9._:/-]+$toolsobjectWhat the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.
tools.webbooleanFleets' own web tools (web_search / web_read)
tools.oneosbooleanThe caller-relayed OneOS tools
tools.rowsbooleansubmit_rows
web_off"server_off" | "not_connected" | "daily_cap"Present only when web was not sent and the web was unusable for this task: server_off (Fleets' web is off), not_connected (the organization has no usable web connection in this environment) or daily_cap (the seat's web calls for the day are used). A code only, on the caller's own task: never a slot id, connection name, cap number or another organization's state.
outputstring | nullerrorstring | nullapprovalsobject[]approvals[].[].idstringrequiredapprovals[].[].actionstringFor example open_computer
approvals[].[].detailstringapprovals[].[].statusstringrequiredcreditsobjectcredits.reservedintegercredits.chargedinteger | nullnull until the task settles
credits.borrowedintegercomputer_minutesintegermin 0
computer_minutes_allowedintegermin 0
settledbooleanThe task's credits are committed and the rest returned
receipt_urlstringsubmitted_atstringcompleted_atstring | nullrowsobject[]The rows the task submitted (submit_rows), each checked against the public reads THAT task made. A row whose source_url is null or was not read by the task has value and source_url "Missing"; the agent's own value for it is only in the owner's rows-trail. Absent when the task submitted no rows.
rows[].[].fieldstringrequiredmax length 80
rows[].[].valuestringrequiredThe checked value, or "Missing" max length 500
rows[].[].source_urlstringrequiredThe read source (userinfo, query and fragment removed), or "Missing"
rows[].[].datestring | integerThe source's own published date (string) when it gave one, else when the task read it (epoch ms); null for a Missing row
rows[].[].date_kind"published" | "retrieved"rows[].[].seen_as"read" | "snippet" | "listed"How much of the source the task saw
rows[].[].figure"checked" | "not_found" | "not_checked"For a value with digits, whether every figure appears in the source's read text; not_checked when the text was not kept. null when the value has no digits or the row is Missing without a cause
rows[].[].cause"no_ledger" | "truncated"Why a row naming a source was not checked
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Seat or task is missing or belongs to another organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/tasks/$TASK_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getSeatTask', {
seat_id: '<seat_id>',
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getSeatTask",
"arguments": {
"seat_id": "<seat_id>",
"task_id": "<task_id>"
}
}
}Approve or deny an action a seat task is waiting on
POST/v1/fleets/seats/{seat_id}/tasks/{task_id}/approvals/{approval_id}
An approval that is already decided answers 200 with the task.
Parameters
approval_idpath · stringrequiredtask_idpath · stringrequiredseat_idpath · stringrequired
Request body application/json
decision"approve" | "deny"required
Responses
- 200Seat task
Response fields
task_idstring (uuid)requiredobject"fleets.seat.task"seat_idstringrequiredkind"research" | "computer"requiredstate"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"requiredWhere the process is. completed means the process ended, not that the work was done; read done for that.
donebooleanrequiredThe only done signal: true only when state is completed and the agent ended with finish done (outcome done). A plain answer (outcome unstated), not_done, waiting, a failed or a running task is false. Same for every kind and tenant.
usageobjectWhat the task did, as whole-number counts and the model id only (never urls, queries, hosts, arguments or timings); zeros before the task's usage report.
usage.web_readsintegermin 0
usage.web_searchesintegermin 0
usage.oneos_callsintegerThe larger of the task's report and Fleets' own count of relayed OneOS calls min 0
usage.rows_submittedintegerRows the task submitted with submit_rows min 0
usage.tool_callsintegerweb_reads + web_searches + oneos_calls + rows_submitted min 0
usage.requestsintegerModel requests the task's runtime started min 0
usage.prompt_tokensintegermin 0
usage.completion_tokensintegermin 0
usage.modelstringThe model id the runtime used (the task's own model when the runtime reported none) min length 1 · max length 128 · pattern
^[A-Za-z0-9._:/-]+$toolsobjectWhat the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.
tools.webbooleanFleets' own web tools (web_search / web_read)
tools.oneosbooleanThe caller-relayed OneOS tools
tools.rowsbooleansubmit_rows
web_off"server_off" | "not_connected" | "daily_cap"Present only when web was not sent and the web was unusable for this task: server_off (Fleets' web is off), not_connected (the organization has no usable web connection in this environment) or daily_cap (the seat's web calls for the day are used). A code only, on the caller's own task: never a slot id, connection name, cap number or another organization's state.
outputstring | nullerrorstring | nullapprovalsobject[]approvals[].[].idstringrequiredapprovals[].[].actionstringFor example open_computer
approvals[].[].detailstringapprovals[].[].statusstringrequiredcreditsobjectcredits.reservedintegercredits.chargedinteger | nullnull until the task settles
credits.borrowedintegercomputer_minutesintegermin 0
computer_minutes_allowedintegermin 0
settledbooleanThe task's credits are committed and the rest returned
receipt_urlstringsubmitted_atstringcompleted_atstring | nullrowsobject[]The rows the task submitted (submit_rows), each checked against the public reads THAT task made. A row whose source_url is null or was not read by the task has value and source_url "Missing"; the agent's own value for it is only in the owner's rows-trail. Absent when the task submitted no rows.
rows[].[].fieldstringrequiredmax length 80
rows[].[].valuestringrequiredThe checked value, or "Missing" max length 500
rows[].[].source_urlstringrequiredThe read source (userinfo, query and fragment removed), or "Missing"
rows[].[].datestring | integerThe source's own published date (string) when it gave one, else when the task read it (epoch ms); null for a Missing row
rows[].[].date_kind"published" | "retrieved"rows[].[].seen_as"read" | "snippet" | "listed"How much of the source the task saw
rows[].[].figure"checked" | "not_found" | "not_checked"For a value with digits, whether every figure appears in the source's read text; not_checked when the text was not kept. null when the value has no digits or the row is Missing without a cause
rows[].[].cause"no_ledger" | "truncated"Why a row naming a source was not checked
- 401Verified Genesis identity required
- 402Granting open_computer could not reserve credits (code purse_empty)
- 403Insufficient scope (fleets:write), or computer_minutes_exhausted
- 404Seat, task or approval is missing or belongs to another organization
- 409Seat is held, killed, releasing or released (code seat_not_active)
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/tasks/$TASK_ID/approvals/$APPROVAL_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": "approve"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_decideSeatTaskApproval', {
seat_id: '<seat_id>',
task_id: '<task_id>',
approval_id: '<approval_id>',
body: {
decision: 'approve',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_decideSeatTaskApproval",
"arguments": {
"seat_id": "<seat_id>",
"task_id": "<task_id>",
"approval_id": "<approval_id>",
"body": {
"decision": "approve"
}
}
}
}Read what the task's agent wrote for each row, before the check (the task's owner only)
GET/v1/fleets/seats/{seat_id}/tasks/{task_id}/rows-trail
The rows the task submitted with submit_rows, as the agent wrote them, each with in_ledger (whether its source_url was among the public reads the task made). Only the person who submitted the task reads it: any other caller gets 404, and a delegated company grant gets 403 PERSON_ONLY at the gateway. The checked rows are rows[] on the task; a value that is Missing there is never handed on, and this trail is never part of the task view.
Parameters
task_idpath · stringrequiredseat_idpath · stringrequired
Responses
- 200Rows trail
Response fields
task_idstring (uuid)requiredobject"fleets.seat.task.rows_trail"rows_trailobject[]requiredrows_trail[].[].fieldstringrequiredrows_trail[].[].valuestringrequiredWhat the agent wrote
rows_trail[].[].source_urlstring | nullAs the agent wrote it
rows_trail[].[].in_ledgerbooleanrequired
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 404Seat or task is missing, belongs to another organization or another person, or submitted no rows (a company grant is refused earlier, at the gateway: 403 PERSON_ONLY)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/tasks/$TASK_ID/rows-trail" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getSeatTaskRowsTrail', {
seat_id: '<seat_id>',
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getSeatTaskRowsTrail",
"arguments": {
"seat_id": "<seat_id>",
"task_id": "<task_id>"
}
}
}List organization tasks
GET/v1/fleets/tasks
Parameters
limitquery · integerbeforequery · string (uuid)
Responses
- 200Success
Response fields
tasksobject[]requiredtasks[].[].task_idstring (uuid)requiredtasks[].[].submitted_atstring (date-time)requiredtasks[].[].started_atstring | null (date-time)tasks[].[].completed_atstring | null (date-time)tasks[].[].state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requirednext_beforestring | null (uuid)required
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 409Receipt not ready or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listTasks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listTasks",
"arguments": {}
}
}Dispatch an agent task
POST/v1/fleets/tasks
Request body application/json
inputstringrequiredTask text: 1–65536 UTF-8 bytes without NUL. The byte limit applies to encoded text, not character count. min length 1 · max length 65536 · pattern
^[^\u0000]*$timeout_secondsintegermin 1 · max 3600 · default
300idempotency_keystringmin length 1 · max length 128 · pattern
^[!-~]+$
Responses
- 200Success
Response fields
task_idstring (uuid)requiredstatusobjectrequiredstatus.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requiredstatus.outputstringstatus.errorstringsubmitted_atstring (date-time)requiredstarted_atstring | null (date-time)completed_atstring | null (date-time)
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 409Receipt not ready or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/tasks" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_submitTask', {
body: {
input: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_submitTask",
"arguments": {
"body": {
"input": "string"
}
}
}
}Read an organization task
GET/v1/fleets/tasks/{task_id}
Parameters
task_idpath · string (uuid)required
Responses
- 200Success
Response fields
task_idstring (uuid)requiredstatusobjectrequiredstatus.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requiredstatus.outputstringstatus.errorstringsubmitted_atstring (date-time)requiredstarted_atstring | null (date-time)completed_atstring | null (date-time)
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 409Receipt not ready or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/tasks/$TASK_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getTask', {
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getTask",
"arguments": {
"task_id": "<task_id>"
}
}
}Upgrade
Upgrade a seat to a larger plan
POST/v1/fleets/seats/{seat_id}/upgrade
Adds the allowance difference and the larger computer entitlement. There is no downgrade (409).
Parameters
seat_idpath · stringrequired
Request body application/json
type"helper" | "operator" | "always_on"required
Responses
- 200Seat
Response fields
idstringrequiredobject"fleets.seat"requiredtype"helper" | "operator" | "always_on"requirednamestringstate"active" | "paused" | "held" | "killed" | "releasing" | "released"requiredreleasing: between release start and released; every write but release answers 409
pause_reasonstringWhy the seat is paused, for example purse_empty
agent_idstring | nullpool_idstring | nullpurseobjectrequiredpurse.allowanceintegerPlan allowance in credits (seats)
purse.grantedintegerCredits granted so far (hire and top-ups; 0 for a pooled seat)
purse.availableintegerrequiredCredits available now (for a pooled seat, the pool's)
purse.reservedintegerrequiredpurse.spentintegerrequiredpurse.overdraftintegerrequiredCredits borrowed and not yet repaid
purse.borrow_ceilingintegerOverdraft allowed, set by the user (default 0; always 0 for a pooled seat)
purse.carvedintegerCredits carved out to seats (pools)
purse.pool_idstringThe pool a pooled seat draws on
computerobjectrequiredcomputer.entitled_minutesintegerrequiredmin 0
computer.used_minutesintegerrequiredmin 0
releaseobjectrelease.idstringrequiredrelease.object"fleets.seat.release"requiredrelease.seat_idstringrelease.state"released"requiredrelease.returned_creditsintegerrequiredCredits returned when the purse was settled min 0
release.returned_computer_minutesintegerrequiredmin 0
release.unpaid_overdraft_creditsintegerOverdraft left unpaid at release; the billing ledger settles it min 0
release.spent_creditsintegermin 0
release.pool_idstring | nullrelease.agent_deletedbooleanrelease.released_atstringcreated_atstringupdated_atstringcreated_bystringThe principal that created (hired) the seat: a person, a key or an agent id. Visible to every member, key and agent that can read the organization's seats. Ids only.
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 404Seat is missing or belongs to another organization
- 409Not an upgrade, or the seat is released
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/seats/$SEAT_ID/upgrade" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "helper"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_upgradeSeat', {
seat_id: '<seat_id>',
body: {
type: 'helper',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_upgradeSeat",
"arguments": {
"seat_id": "<seat_id>",
"body": {
"type": "helper"
}
}
}
}Cancel
Cancel an organization task
POST/v1/fleets/tasks/{task_id}/cancel
Parameters
task_idpath · string (uuid)required
Responses
- 200Success
Response fields
task_idstringrequiredstatusobjectrequiredstatus.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requiredstatus.outputstringstatus.errorstring
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 409Receipt not ready or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/fleets/tasks/$TASK_ID/cancel" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_cancelTask', {
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_cancelTask",
"arguments": {
"task_id": "<task_id>"
}
}
}Receipt
Read an execution receipt
GET/v1/fleets/tasks/{task_id}/receipt
Parameters
task_idpath · string (uuid)required
Responses
- 200Success
Response fields
task_idstring (uuid)requiredstatusobjectrequiredstatus.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"requiredstatus.outputstringstatus.errorstringsubmitted_atstring (date-time)requiredstarted_atstring | null (date-time)completed_atstring | null (date-time)tenantstringrequiredprincipalstringrequiredidempotency_keystring | nullrequiredrequest_fingerprintstringrequiredtimeout_secondsintegerrequiredexit_codeinteger | nullrequiredexit_signalinteger | nullrequiredcleanup_resultobject | nullrequiredcleanup_result.process_group_gonebooleancleanup_result.workdir_removedbooleancleanup_result.sigkill_sentbooleanhenry_receiptobjectOriginal Henry signed execution record when Henry launched; provider response text is separate and is not signed by this record.
- 401Invalid credential
- 403Insufficient scope
- 404Task does not belong to the verified organization
- 409Receipt not ready or idempotency conflict
- 422Invalid input
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/tasks/$TASK_ID/receipt" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getTaskReceipt', {
task_id: '<task_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getTaskReceipt",
"arguments": {
"task_id": "<task_id>"
}
}
}Usage
List task lifecycle and execution-time usage events
GET/v1/fleets/usage/events
Events are derived from the durable task records, so a restart neither loses nor repeats them; each event_id is stable for idempotent ingestion. Paged by task exactly like listTasks, newest task first. An observation, not a price or charge.
Parameters
limitquery · integerTasks per page
beforequery · string (uuid)next_before from the previous page
Responses
- 200Success
Response fields
eventsobject[]requiredevents[].[].event_idstringrequiredStable id, fleets:task:<task_id>:<submitted|started|finished>
events[].[].kind"task.submitted" | "task.started" | "task.finished"requiredevents[].[].occurred_atstring (date-time)requiredevents[].[].tenantstringrequiredevents[].[].principalstringrequiredevents[].[].resourceobjectrequiredevents[].[].resource.type"fleets.task"requiredevents[].[].resource.idstringrequiredevents[].[].statestringTerminal state, on task.finished only
events[].[].usageobjectOn task.finished only, and only for a task that started and was not interrupted
events[].[].usage.meterstringrequiredevents[].[].usage.unit"millisecond"requiredevents[].[].usage.quantityintegerrequiredmin 0
next_beforestring | null (uuid)required
- 401Invalid credential
- 403Insufficient scope
- 404before does not name a task the caller can see
- 422Invalid input
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/usage/events" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_listUsageEvents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_listUsageEvents",
"arguments": {}
}
}Web connection
Read whether the organization's seat web credential is set
GET/v1/fleets/web-connection
Secret-free status with the key's scopes. The credential is never returned. This is its own slot, never the computer credential.
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
scopes"traces:read"[]
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:read)
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/fleets/web-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_getWebConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_getWebConnection",
"arguments": {}
}
}Store the organization's seat web credential, encrypted with Genesis KMS
PUT/v1/fleets/web-connection
A key of this organization and environment whose scopes are exactly traces:read. Seat research tasks use it to search and read public pages through Traces, so Traces meters each call to this organization. Encrypted like the Foundry connection and never returned. Dark until Fleets turns seat web on.
Request body application/json
api_keystringrequiredGenesis key of this organization whose scopes are exactly traces:read; 1-4096 UTF-8 bytes without CR, LF or NUL. Never returned. min length 1 · max length 4096 · pattern
^[^\r\n\u0000]*$
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
scopes"traces:read"[]
- 400Invalid body (invalid_request), a key the gateway refused (web_credential_invalid), scopes other than exactly traces:read (web_credential_scope), or a key of another organization or environment (web_credential_org)
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/fleets/web-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api_key": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_putWebConnection', {
body: {
api_key: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_putWebConnection",
"arguments": {
"body": {
"api_key": "string"
}
}
}
}Remove the organization's seat web credential
DELETE/v1/fleets/web-connection
Responses
- 200Secret-free status
Response fields
connectedbooleanrequiredupdated_atintegermin 0
scopes"traces:read"[]
- 401Verified Genesis identity required
- 403Insufficient scope (fleets:write)
- 503Connection storage unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/fleets/web-connection" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('fleets_deleteWebConnection'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "fleets_deleteWebConnection",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support