OneOS Docs
Genesis 0.3.3 Console

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:read fleets:write
API keys
2 need a signed-in session · 5 untested · 31 tested with an API key
SDK
genesis.call('fleets_listAgents', …) · helpers under genesis.fleets
CLI
genesis fleets
MCP
59 tools; the other 2 through genesis_call

Operations

OperationEndpointAPI key
List persistent Henry agentsGET/agentsTested with an API key
Launch a persistent Henry agentPOST/agentsSigned-in session
Read one persistent Henry agentGET/agents/{agent_id}Tested with an API key
Delete a stopped persistent Henry agentDELETE/agents/{agent_id}Tested with an API key
Update a persistent Henry agent's name, model, instructions or memoryPATCH/agents/{agent_id}—
Send input to a persistent Henry agentPOST/agents/{agent_id}/command—
Read a persistent Henry agent's operation logGET/agents/{agent_id}/logsTested with an API key
Recover a persistent Henry agentPOST/agents/{agent_id}/recover—
Stop a persistent Henry agentPOST/agents/{agent_id}/stop—
Route a command to an agent whose skills fitPOST/agents/dispatch—
Read whether the organization's computer credential is setGET/computer-connection—
Store the organization's computer credential, encrypted with Genesis KMSPUT/computer-connection—
Remove the organization's computer credentialDELETE/computer-connection—
Read the organization Foundry connectionGET/connectionTested with an API key
Encrypt an organization-owned Foundry key with Genesis KMSPUT/connectionTested with an API key
Disconnect the organization Foundry keyDELETE/connectionTested with an API key
Read the organization's Minds connection for Fleets agent memoryGET/connection/minds—
Connect a Mind for Fleets agent memory, encrypted with Genesis KMSPUT/connection/minds—
Disconnect the organization's Mind from Fleets agent memoryDELETE/connection/minds—
Read the fleet's totals for a range (seats, tasks, what is waiting on you, credits)GET/fleet/overview—
Read where the credits went in a range, per agent (seat) or per modelGET/fleet/spend—
Read what each seat did in each bucket of a range, and whether (and since when) it is downGET/fleet/timeline—
Read the approvals waiting on a person across the fleet, oldest firstGET/fleet/waiting—
Read admitted Henry instance status in the verified organizationGET/instancesTested with an API key
Read one admitted Henry instanceGET/instances/{instance_id}Tested with an API key
Start already admitted Henry computePOST/instances/{instance_id}/startSigned-in session
Stop admitted Henry compute and retain its dataPOST/instances/{instance_id}/stop—
List the organization's seat poolsGET/pools—
Create a seat pool (a shared top purse and computer minutes)POST/poolsTested with an API key
Read a seat poolGET/pools/{pool_id}Tested with an API key
Read a pool's purse ledgerGET/pools/{pool_id}/ledgerTested with an API key
Release a pool (settle its purse; terminal)POST/pools/{pool_id}/releaseTested with an API key
Add credits (and optionally computer minutes) to a poolPOST/pools/{pool_id}/top-upTested with an API key
Read the public keys that verify task receiptsGET/receipts/verification-keys—
List the organization's agent seatsGET/seatsTested with an API key
Hire an agent seatPOST/seatsTested with an API key
Read an agent seat, its purse and its computer useGET/seats/{seat_id}Tested with an API key
Rename a seat or change its borrow ceilingPATCH/seats/{seat_id}—
Hold a seat (no new work; a running task is cancelled with a signed receipt)POST/seats/{seat_id}/holdTested with an API key
Kill a seat (cancel running work now and stop the agent; resume is allowed)POST/seats/{seat_id}/kill—
Read a seat's purse ledger (hire, reserve, commit, top_up, borrow, release)GET/seats/{seat_id}/ledgerTested with an API key
Release a seat (settle the purse, delete the agent; terminal)POST/seats/{seat_id}/releaseTested with an API key
Resume a held or killed seatPOST/seats/{seat_id}/resumeTested with an API key
List a seat's tasksGET/seats/{seat_id}/tasksTested with an API key
Give a seat a taskPOST/seats/{seat_id}/tasks—
Read a seat task, its approvals and its creditsGET/seats/{seat_id}/tasks/{task_id}—
Approve or deny an action a seat task is waiting onPOST/seats/{seat_id}/tasks/{task_id}/approvals/{approval_id}—
Read what the task's agent wrote for each row, before the check (the task's owner only)GET/seats/{seat_id}/tasks/{task_id}/rows-trail—
Add credits (and optionally computer minutes) to a seat's pursePOST/seats/{seat_id}/top-upTested with an API key
Upgrade a seat to a larger planPOST/seats/{seat_id}/upgrade—
List the seat plans (helper, operator, always_on)GET/seats/plansTested with an API key
List organization tasksGET/tasksTested with an API key
Dispatch an agent taskPOST/tasksTested with an API key
Read an organization taskGET/tasks/{task_id}Tested with an API key
Cancel an organization taskPOST/tasks/{task_id}/cancelTested with an API key
Read a task's lifecycle and output logGET/tasks/{task_id}/logsTested with an API key
Read an execution receiptGET/tasks/{task_id}/receiptTested with an API key
List task lifecycle and execution-time usage eventsGET/usage/eventsTested with an API key
Read whether the organization's seat web credential is setGET/web-connection—
Store the organization's seat web credential, encrypted with Genesis KMSPUT/web-connection—
Remove the organization's seat web credentialDELETE/web-connection—

Agents

List persistent Henry agents

GET/v1/fleets/agents

fleets:readTested with an API keyfleets_listAgents

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[]required
    • agents[].[].idstring (uuid)required
    • agents[].[].namestringrequired
    • agents[].[].state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • agents[].[].memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • agents[].[].memory.namespacestring

      max length 128

    • agents[].[].memory.endpointstring (uri)
    • agents[].[].modelstring | null
    • agents[].[].inferenceobjectrequired
    • agents[].[].inference.provider"foundry"required
    • agents[].[].inference.mode"managed"required
    • agents[].[].created_at_msintegerrequired

      min 0

    • agents[].[].updated_at_msintegerrequired

      min 0

    • agents[].[].last_operation_idstring | null (uuid)
    • agents[].[].launchobject

      Where 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"required
    • agents[].[].launch.code"AGENT_LAUNCH_FAILED"
    • agents[].[].launch.messagestring
    • agents[].[].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"

Launch a persistent Henry agent

POST/v1/fleets/agents

fleets:writeSigned-in sessionfleets_launchAgent

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

  • namestringrequired

    min length 1 · max length 128

  • memoryobject

    The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

    files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

  • memory.namespacestring

    max length 128

  • memory.endpointstring (uri)
  • modelstring

    max length 128

  • instructionsstring

    max length 65536

  • idempotency_keystring

    min 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)required
    • namestringrequired
    • state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • memory.namespacestring

      max length 128

    • memory.endpointstring (uri)
    • modelstring | null
    • inferenceobjectrequired
    • inference.provider"foundry"required
    • inference.mode"managed"required
    • created_at_msintegerrequired

      min 0

    • updated_at_msintegerrequired

      min 0

    • last_operation_idstring | null (uuid)
    • launchobject

      Where 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"required
    • launch.code"AGENT_LAUNCH_FAILED"
    • launch.messagestring
    • 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.

  • 201Agent launched
    Response fields
    • idstring (uuid)required
    • namestringrequired
    • state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • memory.namespacestring

      max length 128

    • memory.endpointstring (uri)
    • modelstring | null
    • inferenceobjectrequired
    • inference.provider"foundry"required
    • inference.mode"managed"required
    • created_at_msintegerrequired

      min 0

    • updated_at_msintegerrequired

      min 0

    • last_operation_idstring | null (uuid)
    • launchobject

      Where 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"required
    • launch.code"AGENT_LAUNCH_FAILED"
    • launch.messagestring
    • 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.

  • 202Either a replay while the first launch still waits on Henry (launch.status in_progress, state launching: read the agent again), or Henry did not start the agent and it is kept as recovery_required (launch.status failed, 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)required
    • namestringrequired
    • state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • memory.namespacestring

      max length 128

    • memory.endpointstring (uri)
    • modelstring | null
    • inferenceobjectrequired
    • inference.provider"foundry"required
    • inference.mode"managed"required
    • created_at_msintegerrequired

      min 0

    • updated_at_msintegerrequired

      min 0

    • last_operation_idstring | null (uuid)
    • launchobject

      Where 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"required
    • launch.code"AGENT_LAUNCH_FAILED"
    • launch.messagestring
    • 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
  • 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_id nothing was kept. With code AGENT_LAUNCH_UNCONFIRMED and agent_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"
  }'

Read one persistent Henry agent

GET/v1/fleets/agents/{agent_id}

fleets:readTested with an API keyfleets_getAgent

Parameters

  • agent_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • idstring (uuid)required
    • namestringrequired
    • state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • memory.namespacestring

      max length 128

    • memory.endpointstring (uri)
    • modelstring | null
    • inferenceobjectrequired
    • inference.provider"foundry"required
    • inference.mode"managed"required
    • created_at_msintegerrequired

      min 0

    • updated_at_msintegerrequired

      min 0

    • last_operation_idstring | null (uuid)
    • launchobject

      Where 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"required
    • launch.code"AGENT_LAUNCH_FAILED"
    • launch.messagestring
    • 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/$AGENT_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a stopped persistent Henry agent

DELETE/v1/fleets/agents/{agent_id}

fleets:writeTested with an API keyfleets_deleteAgent

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)required
    • deletedtruerequired
    • operation_idstring (uuid)required
    • memoryobject

      Present 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). forgotten also counts events Minds answers are gone (410, or 404 once the Mind itself answered). remaining counts 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.forgottenintegerrequired

      min 0

    • memory.remainingintegerrequired

      min 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"

Update a persistent Henry agent's name, model, instructions or memory

PATCH/v1/fleets/agents/{agent_id}

fleets:writefleets_updateAgent

Parameters

  • agent_idpath · string (uuid)required

Request body application/json

  • namestring

    min length 1 · max length 128

  • modelstring | null

    null clears the model and uses the Foundry default min length 1 · max length 128

  • instructionsstring | null

    null clears the instructions max length 65536

  • memoryobject

    The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

    files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

  • memory.namespacestring

    max 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 skills answers 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 '{}'

Route a command to an agent whose skills fit

POST/v1/fleets/agents/dispatch

fleets:writefleets_dispatchAgent

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[]required

    Every skill the agent must declare.

  • inputstringrequired

    min length 1 · max length 65536

  • delivery"queue" | "steer" | "interrupt"

Responses

  • 200Routed and commanded
    Response fields
    • agentobjectrequired
    • agent.idstring (uuid)required
    • agent.namestringrequired
    • agent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • agent.memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • agent.memory.namespacestring

      max length 128

    • agent.memory.endpointstring (uri)
    • agent.modelstring | null
    • agent.inferenceobjectrequired
    • agent.inference.provider"foundry"required
    • agent.inference.mode"managed"required
    • agent.created_at_msintegerrequired

      min 0

    • agent.updated_at_msintegerrequired

      min 0

    • agent.last_operation_idstring | null (uuid)
    • agent.launchobject

      Where 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"required
    • agent.launch.code"AGENT_LAUNCH_FAILED"
    • agent.launch.messagestring
    • agent.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)required
    • resultobject

      The producer's result. A command of a memory.provider minds agent carries memory.

    • result.memoryobject

      Minds 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.storedbooleanrequired
    • result.memory.recalledbooleanrequired
    • dispatchobjectrequired
    • dispatch.agent_idstring (uuid)required

      The agent the task was routed to.

    • dispatch.required_skillsstring[]required

      The required skills as the server matched them: deduplicated and sorted.

    • dispatch.matched_agentsintegerrequired

      How 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"
  }'

Command

Send input to a persistent Henry agent

POST/v1/fleets/agents/{agent_id}/command

fleets:writefleets_commandAgent

Parameters

  • agent_idpath · string (uuid)required

Request body application/json

  • inputstringrequired

    min length 1 · max length 65536

  • delivery"queue" | "steer" | "interrupt"

Responses

  • 200Success
    Response fields
    • agentobjectrequired
    • agent.idstring (uuid)required
    • agent.namestringrequired
    • agent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • agent.memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • agent.memory.namespacestring

      max length 128

    • agent.memory.endpointstring (uri)
    • agent.modelstring | null
    • agent.inferenceobjectrequired
    • agent.inference.provider"foundry"required
    • agent.inference.mode"managed"required
    • agent.created_at_msintegerrequired

      min 0

    • agent.updated_at_msintegerrequired

      min 0

    • agent.last_operation_idstring | null (uuid)
    • agent.launchobject

      Where 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"required
    • agent.launch.code"AGENT_LAUNCH_FAILED"
    • agent.launch.messagestring
    • agent.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)required
    • resultobject

      The producer's result. A command of a memory.provider minds agent carries memory.

    • result.memoryobject

      Minds 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.storedbooleanrequired
    • result.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"
  }'

Logs

Read a persistent Henry agent's operation log

GET/v1/fleets/agents/{agent_id}/logs

fleets:readTested with an API keyfleets_getAgentLogs

Entries are ordered by seq, oldest first. Page with after=next_after.

Parameters

  • agent_idpath · string (uuid)required
  • afterquery · integer (int64)

    Return entries with seq greater than this (next_after from the previous page)

  • limitquery · integer

Responses

  • 200Success
    Response fields
    • agent_idstring (uuid)required
    • state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • entriesobject[]required
    • entries[].[].seqintegerrequired

      min 0

    • entries[].[].at_msintegerrequired

      min 0

    • entries[].[].operation"launch" | "command" | "stop" | "recover" | "restart" | "update" | "delete"required
    • entries[].[].operation_idstring | null (uuid)required
    • entries[].[].outcome"started" | "succeeded" | "failed" | "interrupted"required
    • entries[].[].statestringrequired
    • entries[].[].errorstring
    • next_afterinteger | nullrequired

      Pass 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"

Read a task's lifecycle and output log

GET/v1/fleets/tasks/{task_id}/logs

fleets:readTested with an API keyfleets_getTaskLogs

Entries are ordered by seq. Poll with after=next_after until complete is true.

Parameters

  • task_idpath · string (uuid)required
  • afterquery · integer

    Return entries with seq greater than this (next_after from the previous read)

Responses

  • 200Success
    Response fields
    • task_idstring (uuid)required
    • state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • completebooleanrequired

      True once the task is terminal and every entry has been returned

    • entriesobject[]required
    • entries[].[].seqintegerrequired

      min 0

    • entries[].[].atstring (date-time)required
    • entries[].[].stream"lifecycle" | "output" | "error"required
    • entries[].[].kind"task.submitted" | "task.started" | "task.finished"
    • entries[].[].statestring
    • entries[].[].messagestringrequired
    • next_afterinteger | nullrequired

      Pass 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"

Recover

Recover a persistent Henry agent

POST/v1/fleets/agents/{agent_id}/recover

fleets:writefleets_recoverAgent

Parameters

  • agent_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • agentobjectrequired
    • agent.idstring (uuid)required
    • agent.namestringrequired
    • agent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • agent.memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • agent.memory.namespacestring

      max length 128

    • agent.memory.endpointstring (uri)
    • agent.modelstring | null
    • agent.inferenceobjectrequired
    • agent.inference.provider"foundry"required
    • agent.inference.mode"managed"required
    • agent.created_at_msintegerrequired

      min 0

    • agent.updated_at_msintegerrequired

      min 0

    • agent.last_operation_idstring | null (uuid)
    • agent.launchobject

      Where 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"required
    • agent.launch.code"AGENT_LAUNCH_FAILED"
    • agent.launch.messagestring
    • agent.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)required
    • resultobject

      The producer's result. A command of a memory.provider minds agent carries memory.

    • result.memoryobject

      Minds 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.storedbooleanrequired
    • result.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"

Stop

Stop a persistent Henry agent

POST/v1/fleets/agents/{agent_id}/stop

fleets:writefleets_stopAgent

Parameters

  • agent_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • agentobjectrequired
    • agent.idstring (uuid)required
    • agent.namestringrequired
    • agent.state"launching" | "running" | "stopping" | "stopped" | "recovering" | "recovery_required"required
    • agent.memoryobjectrequired

      The agent's Memory adapter. files (the default) is Fleets-local memory: the agent's own recent private transcript. minds is bound only where the Fleets deployment enables Minds memory and the organization has a Minds connection in this environment; custom is 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; namespace is 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"required

      files (default) | minds (only with a Minds connection where the deployment enables it) | custom (not bound today)

    • agent.memory.namespacestring

      max length 128

    • agent.memory.endpointstring (uri)
    • agent.modelstring | null
    • agent.inferenceobjectrequired
    • agent.inference.provider"foundry"required
    • agent.inference.mode"managed"required
    • agent.created_at_msintegerrequired

      min 0

    • agent.updated_at_msintegerrequired

      min 0

    • agent.last_operation_idstring | null (uuid)
    • agent.launchobject

      Where 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"required
    • agent.launch.code"AGENT_LAUNCH_FAILED"
    • agent.launch.messagestring
    • agent.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)required
    • resultobject

      The producer's result. A command of a memory.provider minds agent carries memory.

    • result.memoryobject

      Minds 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.storedbooleanrequired
    • result.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"

Stop admitted Henry compute and retain its data

POST/v1/fleets/instances/{instance_id}/stop

fleets:writeIdempotency-Key optionalfleets_stopInstance

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)required
  • Idempotency-Keyheader · string

    Canonical UUID4 identifying one explicit lifecycle operation; retain after an uncertain reply. It carries no authorization.

Responses

  • 200Original confirmed release acknowledgment
    Response fields
    • idstring (uuid)required
    • state"released"required
    • reapedtruerequired
    • data_retainedtruerequired
    • status_evidence"confirmed_release_receipt"required
    • release_acknowledged_at_msintegerrequired

      min 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"

Computer connection

Read whether the organization's computer credential is set

GET/v1/fleets/computer-connection

fleets:readfleets_getComputerConnection

Secret-free status. The credential is never returned.

Responses

  • 200Secret-free status
    Response fields
    • connectedbooleanrequired
    • updated_atinteger

      min 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"

Store the organization's computer credential, encrypted with Genesis KMS

PUT/v1/fleets/computer-connection

fleets:writefleets_putComputerConnection

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_keystringrequired

    Genesis 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
    • connectedbooleanrequired
    • updated_atinteger

      min 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"
  }'

Remove the organization's computer credential

DELETE/v1/fleets/computer-connection

fleets:writefleets_deleteComputerConnection

Responses

  • 200Secret-free status
    Response fields
    • connectedbooleanrequired
    • updated_atinteger

      min 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"

Connection

Read the organization Foundry connection

GET/v1/fleets/connection

fleets:readTested with an API keyfleets_getConnection

Responses

  • 200Secret-free connection status
    Response fields
    • connectedbooleanrequired
    • modelstringrequired
    • updated_atinteger

      min 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"

Encrypt an organization-owned Foundry key with Genesis KMS

PUT/v1/fleets/connection

fleets:writeTested with an API keyfleets_setConnection

Request body application/json

  • api_keystringrequired

    Foundry 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]*$

  • modelstring

    Optional 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
    • connectedbooleanrequired
    • modelstringrequired
    • updated_atinteger

      min 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"
  }'

Disconnect the organization Foundry key

DELETE/v1/fleets/connection

fleets:writeTested with an API keyfleets_deleteConnection

Responses

  • 200Secret-free connection status
    Response fields
    • connectedbooleanrequired
    • modelstringrequired
    • updated_atinteger

      min 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"

Read the organization's Minds connection for Fleets agent memory

GET/v1/fleets/connection/minds

fleets:readfleets_getMindsConnection

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
    • connectedbooleanrequired
    • mind_idstring (uuid)

      The connected Mind

    • updated_atinteger

      Unix 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"

Connect a Mind for Fleets agent memory, encrypted with Genesis KMS

PUT/v1/fleets/connection/minds

fleets:writefleets_setMindsConnection

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_keystringrequired

    Sandbox 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)required

    A 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
    • connectedbooleanrequired
    • mind_idstring (uuid)

      The connected Mind

    • updated_atinteger

      Unix 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"
  }'

Disconnect the organization's Mind from Fleets agent memory

DELETE/v1/fleets/connection/minds

fleets:writefleets_deleteMindsConnection

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
    • connectedbooleanrequired
    • mind_idstring (uuid)

      The connected Mind

    • updated_atinteger

      Unix 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"

Fleet

Read the fleet's totals for a range (seats, tasks, what is waiting on you, credits)

GET/v1/fleets/fleet/overview

fleets:readfleets_getFleetOverview

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"required
    • organization_idstringrequired
    • environment"sandbox" | "live"required
    • fromstring (date-time)required
    • tostring (date-time)required
    • seatsobjectrequired
    • seats.totalintegerrequired
    • seats.activeintegerrequired
    • seats.downintegerrequired

      Paused, held or killed

    • tasksobjectrequired
    • tasks.submittedintegerrequired
    • tasks.pendingintegerrequired
    • tasks.runningintegerrequired
    • tasks.awaiting_approvalintegerrequired
    • tasks.completedintegerrequired
    • tasks.doneintegerrequired

      Completed with outcome done (the only done signal)

    • tasks.ended_not_doneintegerrequired
    • tasks.failedintegerrequired

      Failed or timed out

    • tasks.cancelledintegerrequired
    • waitingobjectrequired
    • waiting.countintegerrequired
    • waiting.oldest_atstring | null (date-time)
    • waiting.oldest_age_secondsinteger | null
    • creditsobjectrequired
    • credits.reservedintegerrequired
    • credits.chargedintegerrequired
    • org_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"

Read where the credits went in a range, per agent (seat) or per model

GET/v1/fleets/fleet/spend

fleets:readfleets_getFleetSpend

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 · integer

    Seats per page, by=seat only (default 50)

  • afterquery · string

    The next_after of the previous page, by=seat only (opaque)

Responses

  • 200Fleet spend
    Response fields
    • object"fleets.fleet.spend"required
    • organization_idstringrequired
    • environment"sandbox" | "live"required
    • fromstring (date-time)required
    • tostring (date-time)required
    • by"seat" | "model"required
    • unit"credits"required
    • totalobjectrequired
    • total.chargedintegerrequired

      Credits settled tasks were charged

    • total.reservedintegerrequired

      Credits held by dispatched tasks still running

    • total.borrowedintegerrequired
    • total.computer_minutesintegerrequired
    • total.tasksintegerrequired
    • total.doneintegerrequired

      Completed with outcome done (the only done signal)

    • total.ended_not_doneintegerrequired
    • total.failedintegerrequired
    • total.cancelledintegerrequired
    • total.completebooleanrequired

      false when the range held more than 50000 tasks

    • rowsobject[]required
    • rows[].[].chargedintegerrequired

      Credits settled tasks were charged

    • rows[].[].reservedintegerrequired

      Credits held by dispatched tasks still running

    • rows[].[].borrowedintegerrequired
    • rows[].[].computer_minutesintegerrequired
    • rows[].[].tasksintegerrequired
    • rows[].[].doneintegerrequired

      Completed with outcome done (the only done signal)

    • rows[].[].ended_not_doneintegerrequired
    • rows[].[].failedintegerrequired
    • rows[].[].cancelledintegerrequired
    • rows[].[].seat_idstring (uuid)

      by=seat

    • rows[].[].namestring | null

      by=seat; a released seat keeps its name

    • rows[].[].typestring | null

      by=seat

    • rows[].[].statestring

      by=seat

    • rows[].[].modelstring

      by=model: the stored model string as recorded (unknown when empty)

    • next_afterstring | nullrequired

      Cursor 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"

Read what each seat did in each bucket of a range, and whether (and since when) it is down

GET/v1/fleets/fleet/timeline

fleets:readfleets_getFleetTimeline

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 · integer

    Bucket length in seconds (default 3600)

  • limitquery · integer

    Seats 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"required
    • organization_idstringrequired
    • environment"sandbox" | "live"required
    • fromstring (date-time)required
    • tostring (date-time)required
    • bucket_secondsintegerrequired
    • seatsobject[]required
    • seats[].[].seat_idstring (uuid)required
    • seats[].[].namestringrequired
    • seats[].[].typestringrequired
    • seats[].[].statestringrequired
    • seats[].[].state_sincestring (date-time)required
    • seats[].[].credits_reservedintegerrequired
    • seats[].[].down_for_secondsinteger

      Only when the seat is down

    • seats[].[].pause_reasonstring

      Only when the seat is down with a reason

    • seats[].[].bucketsobject[]required
    • seats[].[].buckets[].[].startstring (date-time)required
    • seats[].[].buckets[].[].workingintegerrequired
    • seats[].[].buckets[].[].asked_youintegerrequired
    • seats[].[].buckets[].[].queuedintegerrequired
    • seats[].[].buckets[].[].doneintegerrequired
    • seats[].[].buckets[].[].ended_not_doneintegerrequired
    • seats[].[].buckets[].[].failedintegerrequired
    • seats[].[].buckets[].[].downbooleanrequired
    • seats[].[].buckets[].[].idlebooleanrequired
    • next_afterstring | null (uuid)required
    • truncatedbooleanrequired
  • 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"

Read the approvals waiting on a person across the fleet, oldest first

GET/v1/fleets/fleet/waiting

fleets:readfleets_getFleetWaiting

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 · integer

    Items 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"required
    • organization_idstringrequired
    • environment"sandbox" | "live"required
    • fromstring (date-time)required
    • tostring (date-time)required
    • countintegerrequired
    • itemsobject[]required
    • items[].[].approval_idstring (uuid)required
    • items[].[].task_idstring (uuid)required
    • items[].[].seat_idstring (uuid)required
    • items[].[].seat_namestring | null
    • items[].[].actionstringrequired
    • items[].[].detailstringrequired

      max length 500

    • items[].[].asked_atstring (date-time)required
    • items[].[].age_secondsintegerrequired
    • items[].[].task_pathstringrequired

      The task, as /v1/seats/{seat_id}/tasks/{task_id} on Fleets (/v1/fleets/... at the gateway)

    • next_afterstring | null (uuid)required
    • truncatedbooleanrequired
  • 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"

Instances

Read admitted Henry instance status in the verified organization

GET/v1/fleets/instances

fleets:readTested with an API keyfleets_listInstances

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 · integer
  • afterquery · string (uuid)

Responses

  • 200Actual scoped Host status page
    Response fields
    • instancesobject[]required
    • instances[].[].idstring (uuid)required
    • instances[].[].namestringrequired

      min length 1 · max length 128

    • instances[].[].organization_idstringrequired
    • instances[].[].workspace_idstringrequired
    • instances[].[].project_idstringrequired
    • instances[].[].admission_heldboolean | nullrequired

      Host admission fence; does not mean the workload is physically paused. Null after confirmed release.

    • instances[].[].physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"required
    • instances[].[].status_evidence"live_controller" | "confirmed_release_receipt"required
    • instances[].[].release_acknowledged_at_msinteger | nullrequired

      Original Host acknowledgment of a confirmed release, not a new live observation min 0

    • instances[].[].harness_readybooleanrequired

      Reported by the real Henry harness, never inferred from a container or relay

    • instances[].[].observed_at_msinteger | nullrequired

      min 0

    • instances[].[].lease_expiresobject | nullrequired
    • instances[].[].lease_expires.wall_msintegerrequired

      min 0

    • instances[].[].lease_expires.logicalintegerrequired

      min 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"

Read one admitted Henry instance

GET/v1/fleets/instances/{instance_id}

fleets:readTested with an API keyfleets_getInstance

Parameters

  • instance_idpath · string (uuid)required

Responses

  • 200Actual scoped Host status
    Response fields
    • idstring (uuid)required
    • namestringrequired

      min length 1 · max length 128

    • organization_idstringrequired
    • workspace_idstringrequired
    • project_idstringrequired
    • admission_heldboolean | nullrequired

      Host admission fence; does not mean the workload is physically paused. Null after confirmed release.

    • physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"required
    • status_evidence"live_controller" | "confirmed_release_receipt"required
    • release_acknowledged_at_msinteger | nullrequired

      Original Host acknowledgment of a confirmed release, not a new live observation min 0

    • harness_readybooleanrequired

      Reported by the real Henry harness, never inferred from a container or relay

    • observed_at_msinteger | nullrequired

      min 0

    • lease_expiresobject | nullrequired
    • lease_expires.wall_msintegerrequired

      min 0

    • lease_expires.logicalintegerrequired

      min 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"

Start

Start already admitted Henry compute

POST/v1/fleets/instances/{instance_id}/start

fleets:writeSigned-in sessionIdempotency-Key optionalfleets_startInstance

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)required
  • Idempotency-Keyheader · string

    Canonical 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)required
    • namestringrequired

      min length 1 · max length 128

    • organization_idstringrequired
    • workspace_idstringrequired
    • project_idstringrequired
    • admission_heldboolean | nullrequired

      Host admission fence; does not mean the workload is physically paused. Null after confirmed release.

    • physical_state"created" | "running" | "held" | "stopped" | "recovery_required" | "released"required
    • status_evidence"live_controller" | "confirmed_release_receipt"required
    • release_acknowledged_at_msinteger | nullrequired

      Original Host acknowledgment of a confirmed release, not a new live observation min 0

    • harness_readybooleanrequired

      Reported by the real Henry harness, never inferred from a container or relay

    • observed_at_msinteger | nullrequired

      min 0

    • lease_expiresobject | nullrequired
    • lease_expires.wall_msintegerrequired

      min 0

    • lease_expires.logicalintegerrequired

      min 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"

Pools

List the organization's seat pools

GET/v1/fleets/pools

fleets:readfleets_listPools

Responses

  • 200Pools
    Response fields
    • poolsobject[]required
    • pools[].[].idstringrequired
    • pools[].[].object"fleets.pool"required
    • pools[].[].namestring
    • pools[].[].statestring
    • pools[].[].purseobjectrequired
    • pools[].[].purse.allowanceinteger

      Plan allowance in credits (seats)

    • pools[].[].purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • pools[].[].purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • pools[].[].purse.reservedintegerrequired
    • pools[].[].purse.spentintegerrequired
    • pools[].[].purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • pools[].[].purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • pools[].[].purse.carvedinteger

      Credits carved out to seats (pools)

    • pools[].[].purse.pool_idstring

      The pool a pooled seat draws on

    • pools[].[].computerobjectrequired
    • pools[].[].computer.entitled_minutesintegerrequired

      min 0

    • pools[].[].computer.used_minutesintegerrequired

      min 0

    • pools[].[].seatsstring[]

      Seats under the pool that are not released

    • pools[].[].releaseobject
    • pools[].[].release.idstringrequired
    • pools[].[].release.object"fleets.pool.release"required
    • pools[].[].release.pool_idstring
    • pools[].[].release.state"released"required
    • pools[].[].release.returned_creditsintegerrequired

      min 0

    • pools[].[].release.returned_computer_minutesintegerrequired

      min 0

    • pools[].[].release.unpaid_overdraft_creditsinteger

      min 0

    • pools[].[].release.spent_creditsinteger

      min 0

    • pools[].[].release.released_atstring
    • pools[].[].created_atstring
    • pools[].[].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"

Create a seat pool (a shared top purse and computer minutes)

POST/v1/fleets/pools

fleets:writeTested with an API keyfleets_createPool

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

  • namestring

    min length 1 · max length 128

  • creditsintegerrequired

    min 0 · max 100000000

  • computer_minutesinteger

    min 0 · max 100000000 · default 0

  • idempotency_keystringrequired

    Stable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern ^[!-~]+$

Responses

  • 201Pool created
    Response fields
    • idstringrequired
    • object"fleets.pool"required
    • namestring
    • statestring
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • seatsstring[]

      Seats under the pool that are not released

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.pool.release"required
    • release.pool_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      min 0

    • release.spent_creditsinteger

      min 0

    • release.released_atstring
    • created_atstring
    • updated_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"
  }'

Read a seat pool

GET/v1/fleets/pools/{pool_id}

fleets:readTested with an API keyfleets_getPool

Parameters

  • pool_idpath · stringrequired

Responses

  • 200Pool
    Response fields
    • idstringrequired
    • object"fleets.pool"required
    • namestring
    • statestring
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • seatsstring[]

      Seats under the pool that are not released

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.pool.release"required
    • release.pool_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      min 0

    • release.spent_creditsinteger

      min 0

    • release.released_atstring
    • created_atstring
    • updated_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"

Ledger

Read a pool's purse ledger

GET/v1/fleets/pools/{pool_id}/ledger

fleets:readTested with an API keyfleets_getPoolLedger

Parameters

  • pool_idpath · stringrequired

Responses

  • 200Purse entries
    Response fields
    • idstring

      The seat or pool ID

    • entriesobject[]required
    • entries[].[].seqintegerrequired

      min 0

    • entries[].[].at_msinteger

      min 0

    • entries[].[].kindstringrequired

      hire, pool_open, reserve, commit, top_up, borrow, repay, upgrade, hold, resume, kill or release

    • entries[].[].creditsintegerrequired

      min 0

    • entries[].[].minutesinteger

      min 0

    • entries[].[].task_idstring
    • entries[].[].availableinteger
    • entries[].[].reservedinteger
    • entries[].[].spentinteger
    • entries[].[].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"

Read a seat's purse ledger (hire, reserve, commit, top_up, borrow, release)

GET/v1/fleets/seats/{seat_id}/ledger

fleets:readTested with an API keyfleets_getSeatLedger

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Purse entries
    Response fields
    • idstring

      The seat or pool ID

    • entriesobject[]required
    • entries[].[].seqintegerrequired

      min 0

    • entries[].[].at_msinteger

      min 0

    • entries[].[].kindstringrequired

      hire, pool_open, reserve, commit, top_up, borrow, repay, upgrade, hold, resume, kill or release

    • entries[].[].creditsintegerrequired

      min 0

    • entries[].[].minutesinteger

      min 0

    • entries[].[].task_idstring
    • entries[].[].availableinteger
    • entries[].[].reservedinteger
    • entries[].[].spentinteger
    • entries[].[].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"

Release

Release a pool (settle its purse; terminal)

POST/v1/fleets/pools/{pool_id}/release

fleets:writeTested with an API keyfleets_releasePool

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
    • idstringrequired
    • object"fleets.pool.release"required
    • pool_idstring
    • state"released"required
    • returned_creditsintegerrequired

      min 0

    • returned_computer_minutesintegerrequired

      min 0

    • unpaid_overdraft_creditsinteger

      min 0

    • spent_creditsinteger

      min 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"

Release a seat (settle the purse, delete the agent; terminal)

POST/v1/fleets/seats/{seat_id}/release

fleets:writeTested with an API keyfleets_releaseSeat

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
    • idstringrequired
    • object"fleets.seat.release"required
    • seat_idstring
    • state"released"required
    • returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • returned_computer_minutesintegerrequired

      min 0

    • unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • spent_creditsinteger

      min 0

    • pool_idstring | null
    • agent_deletedboolean
    • released_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"

Top up

Add credits (and optionally computer minutes) to a pool

POST/v1/fleets/pools/{pool_id}/top-up

fleets:writeTested with an API keyfleets_topUpPool

At least one of credits and computer_minutes must be above 0 (422 otherwise).

Parameters

  • pool_idpath · stringrequired

Request body application/json

  • creditsintegerrequired

    min 0 · max 100000000

  • computer_minutesinteger

    min 0 · max 100000000

  • idempotency_keystringrequired

    Stable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern ^[!-~]+$

Responses

  • 200Pool
    Response fields
    • idstringrequired
    • object"fleets.pool"required
    • namestring
    • statestring
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • seatsstring[]

      Seats under the pool that are not released

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.pool.release"required
    • release.pool_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      min 0

    • release.spent_creditsinteger

      min 0

    • release.released_atstring
    • created_atstring
    • updated_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"
  }'

Add credits (and optionally computer minutes) to a seat's purse

POST/v1/fleets/seats/{seat_id}/top-up

fleets:writeTested with an API keyfleets_topUpSeat

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

  • creditsintegerrequired

    May be 0 when computer_minutes is above 0 min 0 · max 100000000

  • computer_minutesinteger

    Added to the seat's computer entitlement; not for helper or pooled seats min 0 · max 100000000

  • idempotency_keystringrequired

    Stable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern ^[!-~]+$

Responses

  • 200Seat
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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"
  }'

Receipts

Read the public keys that verify task receipts

GET/v1/fleets/receipts/verification-keys

fleets:readfleets_getReceiptVerificationKeys

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[]required
    • keys[].[].key_idstringrequired
    • keys[].[].environment"sandbox" | "live"required
    • keys[].[].algorithm"ed25519"required
    • keys[].[].public_key_base64stringrequired

      Raw 32-byte Ed25519 public key, base64

    • keys[].[].public_key_base64urlstring

      The same key, base64url without padding

    • keys[].[].jwkobject

      The same key as an RFC 8037 OKP JWK (kty OKP, crv Ed25519, x, kid, alg EdDSA)

    • signed_messageobjectrequired
    • signed_message.encodingstring
    • signed_message.fieldsstring[]
    • signature_encodingstring
    • choose_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"

Seats

List the organization's agent seats

GET/v1/fleets/seats

fleets:readTested with an API keyfleets_listSeats

Responses

  • 200Seats
    Response fields
    • seatsobject[]required
    • seats[].[].idstringrequired
    • seats[].[].object"fleets.seat"required
    • seats[].[].type"helper" | "operator" | "always_on"required
    • seats[].[].namestring
    • seats[].[].state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • seats[].[].pause_reasonstring

      Why the seat is paused, for example purse_empty

    • seats[].[].agent_idstring | null
    • seats[].[].pool_idstring | null
    • seats[].[].purseobjectrequired
    • seats[].[].purse.allowanceinteger

      Plan allowance in credits (seats)

    • seats[].[].purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • seats[].[].purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • seats[].[].purse.reservedintegerrequired
    • seats[].[].purse.spentintegerrequired
    • seats[].[].purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • seats[].[].purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • seats[].[].purse.carvedinteger

      Credits carved out to seats (pools)

    • seats[].[].purse.pool_idstring

      The pool a pooled seat draws on

    • seats[].[].computerobjectrequired
    • seats[].[].computer.entitled_minutesintegerrequired

      min 0

    • seats[].[].computer.used_minutesintegerrequired

      min 0

    • seats[].[].releaseobject
    • seats[].[].release.idstringrequired
    • seats[].[].release.object"fleets.seat.release"required
    • seats[].[].release.seat_idstring
    • seats[].[].release.state"released"required
    • seats[].[].release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • seats[].[].release.returned_computer_minutesintegerrequired

      min 0

    • seats[].[].release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • seats[].[].release.spent_creditsinteger

      min 0

    • seats[].[].release.pool_idstring | null
    • seats[].[].release.agent_deletedboolean
    • seats[].[].release.released_atstring
    • seats[].[].created_atstring
    • seats[].[].updated_atstring
    • seats[].[].created_bystring

      The 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"

Hire an agent seat

POST/v1/fleets/seats

fleets:writeTested with an API keyfleets_hireSeat

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"required
  • namestring

    min length 1 · max length 128

  • borrow_ceiling_creditsinteger

    Overdraft the seat may run up before it pauses; not with pool_id (422) min 0 · default 0

  • pool_idstring

    Carve 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

  • fundboolean

    false opens the purse empty, to be funded by top-up default true

  • idempotency_keystringrequired

    Stable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern ^[!-~]+$

Responses

  • 201Seat hired
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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"
  }'

Read an agent seat, its purse and its computer use

GET/v1/fleets/seats/{seat_id}

fleets:readTested with an API keyfleets_getSeat

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Seat
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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"

Rename a seat or change its borrow ceiling

PATCH/v1/fleets/seats/{seat_id}

fleets:writefleets_updateSeat

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

  • namestring

    min length 1 · max length 128

  • borrow_ceiling_creditsinteger

    Not for a pooled seat (422) min 0

Responses

  • 200Seat
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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 '{}'

List the seat plans (helper, operator, always_on)

GET/v1/fleets/seats/plans

fleets:readTested with an API keyfleets_listSeatPlans

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[]required
    • plans[].[].type"helper" | "operator" | "always_on"required
    • plans[].[].creditsintegerrequired

      Purse allowance in credits (1 credit = 1 US cent of cost) min 0

    • plans[].[].computer_minutesintegerrequired

      Computer entitlement in minutes (0 for helper) min 0

    • plans[].[].computerboolean

      Whether the plan includes a computer

    • plans[].[].price_usdnumber

      Display only; Fleets never charges money min 0

    • creditobject

      What one credit is

    • credit.unitstring
    • credit.value_usdnumber
    • credit.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"

Hold

Hold a seat (no new work; a running task is cancelled with a signed receipt)

POST/v1/fleets/seats/{seat_id}/hold

fleets:writeTested with an API keyfleets_holdSeat

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Seat with the tasks it cancelled
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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[]required

      Tasks cancelled with a signed cancelled receipt

    • agent_statestring

      The 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"

Kill

Kill a seat (cancel running work now and stop the agent; resume is allowed)

POST/v1/fleets/seats/{seat_id}/kill

fleets:writefleets_killSeat

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Seat with the tasks it cancelled and the agent state
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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[]required

      Tasks cancelled with a signed cancelled receipt

    • agent_statestring

      The 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"

Resume

Resume a held or killed seat

POST/v1/fleets/seats/{seat_id}/resume

fleets:writeTested with an API keyfleets_resumeSeat

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Seat
    Response fields
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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"

Tasks

List a seat's tasks

GET/v1/fleets/seats/{seat_id}/tasks

fleets:readTested with an API keyfleets_listSeatTasks

Parameters

  • seat_idpath · stringrequired

Responses

  • 200Seat tasks
    Response fields
    • tasksobject[]required
    • tasks[].[].task_idstring (uuid)required
    • tasks[].[].object"fleets.seat.task"
    • tasks[].[].seat_idstringrequired
    • tasks[].[].kind"research" | "computer"required
    • tasks[].[].state"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"required

      Where the process is. completed means the process ended, not that the work was done; read done for that.

    • tasks[].[].donebooleanrequired

      The 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[].[].usageobject

      What 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_readsinteger

      min 0

    • tasks[].[].usage.web_searchesinteger

      min 0

    • tasks[].[].usage.oneos_callsinteger

      The larger of the task's report and Fleets' own count of relayed OneOS calls min 0

    • tasks[].[].usage.rows_submittedinteger

      Rows the task submitted with submit_rows min 0

    • tasks[].[].usage.tool_callsinteger

      web_reads + web_searches + oneos_calls + rows_submitted min 0

    • tasks[].[].usage.requestsinteger

      Model requests the task's runtime started min 0

    • tasks[].[].usage.prompt_tokensinteger

      min 0

    • tasks[].[].usage.completion_tokensinteger

      min 0

    • tasks[].[].usage.modelstring

      The 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[].[].toolsobject

      What the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.

    • tasks[].[].tools.webboolean

      Fleets' own web tools (web_search / web_read)

    • tasks[].[].tools.oneosboolean

      The caller-relayed OneOS tools

    • tasks[].[].tools.rowsboolean

      submit_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 | null
    • tasks[].[].errorstring | null
    • tasks[].[].approvalsobject[]
    • tasks[].[].approvals[].[].idstringrequired
    • tasks[].[].approvals[].[].actionstring

      For example open_computer

    • tasks[].[].approvals[].[].detailstring
    • tasks[].[].approvals[].[].statusstringrequired
    • tasks[].[].creditsobject
    • tasks[].[].credits.reservedinteger
    • tasks[].[].credits.chargedinteger | null

      null until the task settles

    • tasks[].[].credits.borrowedinteger
    • tasks[].[].computer_minutesinteger

      min 0

    • tasks[].[].computer_minutes_allowedinteger

      min 0

    • tasks[].[].settledboolean

      The task's credits are committed and the rest returned

    • tasks[].[].receipt_urlstring
    • tasks[].[].submitted_atstring
    • tasks[].[].completed_atstring | null
    • tasks[].[].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[].[].fieldstringrequired

      max length 80

    • tasks[].[].rows[].[].valuestringrequired

      The checked value, or "Missing" max length 500

    • tasks[].[].rows[].[].source_urlstringrequired

      The read source (userinfo, query and fragment removed), or "Missing"

    • tasks[].[].rows[].[].datestring | integer

      The 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"

Give a seat a task

POST/v1/fleets/seats/{seat_id}/tasks

fleets:writefleets_submitSeatTask

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

  • inputstringrequired

    Task text: 1-65536 UTF-8 bytes without NUL. min length 1 · max length 65536 · pattern ^[^\u0000]*$

  • kind"research" | "computer"

    default "research"

  • timeout_secondsinteger

    min 1 · max 3600

  • approve_computerboolean

    Open the computer without a separate approval default false

  • idempotency_keystringrequired

    Stable key (required); reuse it to replay instead of acting twice min length 1 · max length 128 · pattern ^[!-~]+$

  • oneosboolean

    Research 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 false

  • webboolean

    true: 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[].[].operationstringrequired

    pattern ^[A-Za-z0-9_.:-]{1,120}$

  • oneos_tools[].[].doesstringrequired

    One 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"required
  • oneos_tools_moreinteger

    With 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)required
    • object"fleets.seat.task"
    • seat_idstringrequired
    • kind"research" | "computer"required
    • state"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"required

      Where the process is. completed means the process ended, not that the work was done; read done for that.

    • donebooleanrequired

      The 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.

    • usageobject

      What 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_readsinteger

      min 0

    • usage.web_searchesinteger

      min 0

    • usage.oneos_callsinteger

      The larger of the task's report and Fleets' own count of relayed OneOS calls min 0

    • usage.rows_submittedinteger

      Rows the task submitted with submit_rows min 0

    • usage.tool_callsinteger

      web_reads + web_searches + oneos_calls + rows_submitted min 0

    • usage.requestsinteger

      Model requests the task's runtime started min 0

    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.modelstring

      The 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._:/-]+$

    • toolsobject

      What the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.

    • tools.webboolean

      Fleets' own web tools (web_search / web_read)

    • tools.oneosboolean

      The caller-relayed OneOS tools

    • tools.rowsboolean

      submit_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 | null
    • errorstring | null
    • approvalsobject[]
    • approvals[].[].idstringrequired
    • approvals[].[].actionstring

      For example open_computer

    • approvals[].[].detailstring
    • approvals[].[].statusstringrequired
    • creditsobject
    • credits.reservedinteger
    • credits.chargedinteger | null

      null until the task settles

    • credits.borrowedinteger
    • computer_minutesinteger

      min 0

    • computer_minutes_allowedinteger

      min 0

    • settledboolean

      The task's credits are committed and the rest returned

    • receipt_urlstring
    • submitted_atstring
    • completed_atstring | null
    • 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.

    • rows[].[].fieldstringrequired

      max length 80

    • rows[].[].valuestringrequired

      The checked value, or "Missing" max length 500

    • rows[].[].source_urlstringrequired

      The read source (userinfo, query and fragment removed), or "Missing"

    • rows[].[].datestring | integer

      The 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"
  }'

Read a seat task, its approvals and its credits

GET/v1/fleets/seats/{seat_id}/tasks/{task_id}

fleets:readfleets_getSeatTask

The signed Henry receipt is at receipt_url (GET /v1/fleets/tasks/{task_id}/receipt).

Parameters

  • task_idpath · stringrequired
  • seat_idpath · stringrequired

Responses

  • 200Seat task
    Response fields
    • task_idstring (uuid)required
    • object"fleets.seat.task"
    • seat_idstringrequired
    • kind"research" | "computer"required
    • state"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"required

      Where the process is. completed means the process ended, not that the work was done; read done for that.

    • donebooleanrequired

      The 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.

    • usageobject

      What 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_readsinteger

      min 0

    • usage.web_searchesinteger

      min 0

    • usage.oneos_callsinteger

      The larger of the task's report and Fleets' own count of relayed OneOS calls min 0

    • usage.rows_submittedinteger

      Rows the task submitted with submit_rows min 0

    • usage.tool_callsinteger

      web_reads + web_searches + oneos_calls + rows_submitted min 0

    • usage.requestsinteger

      Model requests the task's runtime started min 0

    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.modelstring

      The 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._:/-]+$

    • toolsobject

      What the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.

    • tools.webboolean

      Fleets' own web tools (web_search / web_read)

    • tools.oneosboolean

      The caller-relayed OneOS tools

    • tools.rowsboolean

      submit_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 | null
    • errorstring | null
    • approvalsobject[]
    • approvals[].[].idstringrequired
    • approvals[].[].actionstring

      For example open_computer

    • approvals[].[].detailstring
    • approvals[].[].statusstringrequired
    • creditsobject
    • credits.reservedinteger
    • credits.chargedinteger | null

      null until the task settles

    • credits.borrowedinteger
    • computer_minutesinteger

      min 0

    • computer_minutes_allowedinteger

      min 0

    • settledboolean

      The task's credits are committed and the rest returned

    • receipt_urlstring
    • submitted_atstring
    • completed_atstring | null
    • 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.

    • rows[].[].fieldstringrequired

      max length 80

    • rows[].[].valuestringrequired

      The checked value, or "Missing" max length 500

    • rows[].[].source_urlstringrequired

      The read source (userinfo, query and fragment removed), or "Missing"

    • rows[].[].datestring | integer

      The 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"

Approve or deny an action a seat task is waiting on

POST/v1/fleets/seats/{seat_id}/tasks/{task_id}/approvals/{approval_id}

fleets:writefleets_decideSeatTaskApproval

An approval that is already decided answers 200 with the task.

Parameters

  • approval_idpath · stringrequired
  • task_idpath · stringrequired
  • seat_idpath · stringrequired

Request body application/json

  • decision"approve" | "deny"required

Responses

  • 200Seat task
    Response fields
    • task_idstring (uuid)required
    • object"fleets.seat.task"
    • seat_idstringrequired
    • kind"research" | "computer"required
    • state"pending" | "running" | "awaiting_approval" | "completed" | "failed" | "cancelled" | "timed_out"required

      Where the process is. completed means the process ended, not that the work was done; read done for that.

    • donebooleanrequired

      The 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.

    • usageobject

      What 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_readsinteger

      min 0

    • usage.web_searchesinteger

      min 0

    • usage.oneos_callsinteger

      The larger of the task's report and Fleets' own count of relayed OneOS calls min 0

    • usage.rows_submittedinteger

      Rows the task submitted with submit_rows min 0

    • usage.tool_callsinteger

      web_reads + web_searches + oneos_calls + rows_submitted min 0

    • usage.requestsinteger

      Model requests the task's runtime started min 0

    • usage.prompt_tokensinteger

      min 0

    • usage.completion_tokensinteger

      min 0

    • usage.modelstring

      The 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._:/-]+$

    • toolsobject

      What the task was given (fleets#149). Same view on the submit answer, GET, list, SDK, CLI and MCP.

    • tools.webboolean

      Fleets' own web tools (web_search / web_read)

    • tools.oneosboolean

      The caller-relayed OneOS tools

    • tools.rowsboolean

      submit_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 | null
    • errorstring | null
    • approvalsobject[]
    • approvals[].[].idstringrequired
    • approvals[].[].actionstring

      For example open_computer

    • approvals[].[].detailstring
    • approvals[].[].statusstringrequired
    • creditsobject
    • credits.reservedinteger
    • credits.chargedinteger | null

      null until the task settles

    • credits.borrowedinteger
    • computer_minutesinteger

      min 0

    • computer_minutes_allowedinteger

      min 0

    • settledboolean

      The task's credits are committed and the rest returned

    • receipt_urlstring
    • submitted_atstring
    • completed_atstring | null
    • 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.

    • rows[].[].fieldstringrequired

      max length 80

    • rows[].[].valuestringrequired

      The checked value, or "Missing" max length 500

    • rows[].[].source_urlstringrequired

      The read source (userinfo, query and fragment removed), or "Missing"

    • rows[].[].datestring | integer

      The 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"
  }'

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

fleets:readfleets_getSeatTaskRowsTrail

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 · stringrequired
  • seat_idpath · stringrequired

Responses

  • 200Rows trail
    Response fields
    • task_idstring (uuid)required
    • object"fleets.seat.task.rows_trail"
    • rows_trailobject[]required
    • rows_trail[].[].fieldstringrequired
    • rows_trail[].[].valuestringrequired

      What the agent wrote

    • rows_trail[].[].source_urlstring | null

      As 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"

List organization tasks

GET/v1/fleets/tasks

fleets:readTested with an API keyfleets_listTasks

Parameters

  • limitquery · integer
  • beforequery · string (uuid)

Responses

  • 200Success
    Response fields
    • tasksobject[]required
    • tasks[].[].task_idstring (uuid)required
    • tasks[].[].submitted_atstring (date-time)required
    • tasks[].[].started_atstring | null (date-time)
    • tasks[].[].completed_atstring | null (date-time)
    • tasks[].[].state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • next_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"

Dispatch an agent task

POST/v1/fleets/tasks

fleets:writeTested with an API keyfleets_submitTask

Request body application/json

  • inputstringrequired

    Task 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_secondsinteger

    min 1 · max 3600 · default 300

  • idempotency_keystring

    min length 1 · max length 128 · pattern ^[!-~]+$

Responses

  • 200Success
    Response fields
    • task_idstring (uuid)required
    • statusobjectrequired
    • status.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • status.outputstring
    • status.errorstring
    • submitted_atstring (date-time)required
    • started_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"
  }'

Read an organization task

GET/v1/fleets/tasks/{task_id}

fleets:readTested with an API keyfleets_getTask

Parameters

  • task_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • task_idstring (uuid)required
    • statusobjectrequired
    • status.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • status.outputstring
    • status.errorstring
    • submitted_atstring (date-time)required
    • started_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"

Upgrade

Upgrade a seat to a larger plan

POST/v1/fleets/seats/{seat_id}/upgrade

fleets:writefleets_upgradeSeat

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
    • idstringrequired
    • object"fleets.seat"required
    • type"helper" | "operator" | "always_on"required
    • namestring
    • state"active" | "paused" | "held" | "killed" | "releasing" | "released"required

      releasing: between release start and released; every write but release answers 409

    • pause_reasonstring

      Why the seat is paused, for example purse_empty

    • agent_idstring | null
    • pool_idstring | null
    • purseobjectrequired
    • purse.allowanceinteger

      Plan allowance in credits (seats)

    • purse.grantedinteger

      Credits granted so far (hire and top-ups; 0 for a pooled seat)

    • purse.availableintegerrequired

      Credits available now (for a pooled seat, the pool's)

    • purse.reservedintegerrequired
    • purse.spentintegerrequired
    • purse.overdraftintegerrequired

      Credits borrowed and not yet repaid

    • purse.borrow_ceilinginteger

      Overdraft allowed, set by the user (default 0; always 0 for a pooled seat)

    • purse.carvedinteger

      Credits carved out to seats (pools)

    • purse.pool_idstring

      The pool a pooled seat draws on

    • computerobjectrequired
    • computer.entitled_minutesintegerrequired

      min 0

    • computer.used_minutesintegerrequired

      min 0

    • releaseobject
    • release.idstringrequired
    • release.object"fleets.seat.release"required
    • release.seat_idstring
    • release.state"released"required
    • release.returned_creditsintegerrequired

      Credits returned when the purse was settled min 0

    • release.returned_computer_minutesintegerrequired

      min 0

    • release.unpaid_overdraft_creditsinteger

      Overdraft left unpaid at release; the billing ledger settles it min 0

    • release.spent_creditsinteger

      min 0

    • release.pool_idstring | null
    • release.agent_deletedboolean
    • release.released_atstring
    • created_atstring
    • updated_atstring
    • created_bystring

      The 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"
  }'

Cancel

Cancel an organization task

POST/v1/fleets/tasks/{task_id}/cancel

fleets:writeTested with an API keyfleets_cancelTask

Parameters

  • task_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • task_idstringrequired
    • statusobjectrequired
    • status.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • status.outputstring
    • status.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"

Receipt

Read an execution receipt

GET/v1/fleets/tasks/{task_id}/receipt

fleets:readTested with an API keyfleets_getTaskReceipt

Parameters

  • task_idpath · string (uuid)required

Responses

  • 200Success
    Response fields
    • task_idstring (uuid)required
    • statusobjectrequired
    • status.state"pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "timed_out"required
    • status.outputstring
    • status.errorstring
    • submitted_atstring (date-time)required
    • started_atstring | null (date-time)
    • completed_atstring | null (date-time)
    • tenantstringrequired
    • principalstringrequired
    • idempotency_keystring | nullrequired
    • request_fingerprintstringrequired
    • timeout_secondsintegerrequired
    • exit_codeinteger | nullrequired
    • exit_signalinteger | nullrequired
    • cleanup_resultobject | nullrequired
    • cleanup_result.process_group_goneboolean
    • cleanup_result.workdir_removedboolean
    • cleanup_result.sigkill_sentboolean
    • henry_receiptobject

      Original 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"

Usage

List task lifecycle and execution-time usage events

GET/v1/fleets/usage/events

fleets:readTested with an API keyfleets_listUsageEvents

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 · integer

    Tasks per page

  • beforequery · string (uuid)

    next_before from the previous page

Responses

  • 200Success
    Response fields
    • eventsobject[]required
    • events[].[].event_idstringrequired

      Stable id, fleets:task:<task_id>:<submitted|started|finished>

    • events[].[].kind"task.submitted" | "task.started" | "task.finished"required
    • events[].[].occurred_atstring (date-time)required
    • events[].[].tenantstringrequired
    • events[].[].principalstringrequired
    • events[].[].resourceobjectrequired
    • events[].[].resource.type"fleets.task"required
    • events[].[].resource.idstringrequired
    • events[].[].statestring

      Terminal state, on task.finished only

    • events[].[].usageobject

      On task.finished only, and only for a task that started and was not interrupted

    • events[].[].usage.meterstringrequired
    • events[].[].usage.unit"millisecond"required
    • events[].[].usage.quantityintegerrequired

      min 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"

Web connection

Read whether the organization's seat web credential is set

GET/v1/fleets/web-connection

fleets:readfleets_getWebConnection

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
    • connectedbooleanrequired
    • updated_atinteger

      min 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"

Store the organization's seat web credential, encrypted with Genesis KMS

PUT/v1/fleets/web-connection

fleets:writefleets_putWebConnection

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_keystringrequired

    Genesis 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
    • connectedbooleanrequired
    • updated_atinteger

      min 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"
  }'

Remove the organization's seat web credential

DELETE/v1/fleets/web-connection

fleets:writefleets_deleteWebConnection

Responses

  • 200Secret-free status
    Response fields
    • connectedbooleanrequired
    • updated_atinteger

      min 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"

L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support