API reference
Flocks
Your own machines and cloud instances with a harness installed: enroll nodes, rotate their credentials and read their state.
- Operations
- 36
- Base path
https://os.one.ml/api/v1/flocks- Scopes
flocks:readflocks:write- API keys
- 1 need a signed-in session · 3 refused to API keys · 5 untested · 26 tested with an API key
- SDK
genesis.call('flocks_listGrants', …)· helpers undergenesis.flocks- MCP
- 36 tools
Operations
Account grants
List account grants
GET/v1/flocks/account-grants
Grants you issued or received. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Parameters
directionquery · "issued" | "received"account_idquery · string
Responses
- 200Success
Response fields
itemsobject[]requireditems[].[].idstringrequiredpattern
^iag_[0-9a-f]{32}$items[].[].account_idstringrequireditems[].[].owner_orgstringrequireditems[].[].grantee_orgstringrequireditems[].[].status"active" | "revoked"requireditems[].[].notestringrequireditems[].[].created_bystringrequireditems[].[].created_atintegerrequireditems[].[].revoked_atinteger | nullrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/account-grants" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listGrants'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listGrants",
"arguments": {}
}
}Revoke an account grant
DELETE/v1/flocks/account-grants/{grant_id}
New runs on the account are refused at once, and every grantee instance bound to it is signed out and wiped. Owner only. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
grant_idpath · stringrequiredGrant id (iag_...)
Responses
- 202Success
Response fields
grantobjectrequiredgrant.idstringrequiredpattern
^iag_[0-9a-f]{32}$grant.account_idstringrequiredgrant.owner_orgstringrequiredgrant.grantee_orgstringrequiredgrant.status"active" | "revoked"requiredgrant.notestringrequiredgrant.created_bystringrequiredgrant.created_atintegerrequiredgrant.revoked_atinteger | nullrequiredjob_idstring | nullrequiredNull when the grant was already revoked (re-revoking starts no job).
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flocks/account-grants/$GRANT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_revokeGrant', {
grant_id: '<grant_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_revokeGrant",
"arguments": {
"grant_id": "<grant_id>"
}
}
}Accounts
List inference accounts
GET/v1/flocks/accounts
Accounts your org owns plus accounts granted to it (granted: true). Never returns credentials. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Parameters
limitquery · integercursorquery · stringproviderquery · string
Responses
- 200Success
Response fields
itemsobject[]requireditems[].[].idstringrequiredpattern
^ia_[0-9a-f]{32}$items[].[].providerstringrequireditems[].[].labelstringrequireditems[].[].auth_kind"subscription_oauth" | "api_key"requireditems[].[].identitystring | nullrequiredSigned-in identity (for example an email); null until the first login completes.
items[].[].status"pending_login" | "active" | "needs_login" | "revoked" | "deleted"requireditems[].[].owner_orgstringrequireditems[].[].grantedbooleanrequiredTrue when the account is owned by another org and granted to the caller org.
items[].[].created_bystringrequireditems[].[].created_atintegerrequireditems[].[].updated_atintegerrequireditems[].[].bound_instancesintegergetAccount only: instances bound to the account across the owner and its grantees. min 0
next_cursorstring | nullrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listAccounts'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listAccounts",
"arguments": {}
}
}Add an inference account
POST/v1/flocks/accounts
Creates an account owned by your org. subscription_oauth accounts start pending_login and are signed in on one instance with loginAccount; api_key accounts are active at once and take only a secret reference. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Request body application/json
providerstringrequiredA provider id from listProviders (claude, codex).
labelstringrequiredmin length 1 · max length 128
auth_kind"subscription_oauth" | "api_key"requiredapi_key_secret_refstringapi_key accounts only: the name of a key your org already holds in Blinds (NAME or blinds:NAME). Never the key itself. Secret Manager names are refused. max length 256
Responses
- 201Success
Response fields
idstringrequiredpattern
^ia_[0-9a-f]{32}$providerstringrequiredlabelstringrequiredauth_kind"subscription_oauth" | "api_key"requiredidentitystring | nullrequiredSigned-in identity (for example an email); null until the first login completes.
status"pending_login" | "active" | "needs_login" | "revoked" | "deleted"requiredowner_orgstringrequiredgrantedbooleanrequiredTrue when the account is owned by another org and granted to the caller org.
created_bystringrequiredcreated_atintegerrequiredupdated_atintegerrequiredbound_instancesintegergetAccount only: instances bound to the account across the owner and its grantees. min 0
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/accounts" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "string",
"label": "string",
"auth_kind": "subscription_oauth"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_createAccount', {
body: {
provider: 'string',
label: 'string',
auth_kind: 'subscription_oauth',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_createAccount",
"arguments": {
"body": {
"provider": "string",
"label": "string",
"auth_kind": "subscription_oauth"
}
}
}
}Get an inference account
GET/v1/flocks/accounts/{id}
The account plus bound_instances, the count of instances bound to it across the owner and its grantees. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Parameters
idpath · stringrequiredInference account id (ia_...)
Responses
- 200Success
Response fields
idstringrequiredpattern
^ia_[0-9a-f]{32}$providerstringrequiredlabelstringrequiredauth_kind"subscription_oauth" | "api_key"requiredidentitystring | nullrequiredSigned-in identity (for example an email); null until the first login completes.
status"pending_login" | "active" | "needs_login" | "revoked" | "deleted"requiredowner_orgstringrequiredgrantedbooleanrequiredTrue when the account is owned by another org and granted to the caller org.
created_bystringrequiredcreated_atintegerrequiredupdated_atintegerrequiredbound_instancesintegergetAccount only: instances bound to the account across the owner and its grantees. min 0
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/accounts/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getAccount', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getAccount",
"arguments": {
"id": "<id>"
}
}
}Remove an inference account
DELETE/v1/flocks/accounts/{id}
Logs the account out of every bound instance (owner and grantees), then revokes the credential in custody. Returns the job to follow. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInference account id (ia_...)
Responses
- 202Success
Response fields
accountobjectrequiredaccount.idstringrequiredpattern
^ia_[0-9a-f]{32}$account.providerstringrequiredaccount.labelstringrequiredaccount.auth_kind"subscription_oauth" | "api_key"requiredaccount.identitystring | nullrequiredSigned-in identity (for example an email); null until the first login completes.
account.status"pending_login" | "active" | "needs_login" | "revoked" | "deleted"requiredaccount.owner_orgstringrequiredaccount.grantedbooleanrequiredTrue when the account is owned by another org and granted to the caller org.
account.created_bystringrequiredaccount.created_atintegerrequiredaccount.updated_atintegerrequiredaccount.bound_instancesintegergetAccount only: instances bound to the account across the owner and its grantees. min 0
job_idstringrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flocks/accounts/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_deleteAccount', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_deleteAccount",
"arguments": {
"id": "<id>"
}
}
}Grants
Grant an account to another org
POST/v1/flocks/accounts/{id}/grants
Lets the grantee org bind its own instances to this account. The credential never leaves the owner's custody. Owner only. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInference account id (ia_...)
Request body application/json
grantee_org_idstringrequirednotestringmax length 256
Responses
- 201Success
Response fields
idstringrequiredpattern
^iag_[0-9a-f]{32}$account_idstringrequiredowner_orgstringrequiredgrantee_orgstringrequiredstatus"active" | "revoked"requirednotestringrequiredcreated_bystringrequiredcreated_atintegerrequiredrevoked_atinteger | nullrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/accounts/$ID/grants" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"grantee_org_id": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_createGrant', {
id: '<id>',
body: {
grantee_org_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_createGrant",
"arguments": {
"id": "<id>",
"body": {
"grantee_org_id": "string"
}
}
}
}Login
Sign an account in from one instance
POST/v1/flocks/accounts/{id}/login
Starts a login job on one of your instances. When the device url and code are captured they appear on the job item for the initiator only; poll getAccountJob. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInference account id (ia_...)
Request body application/json
instance_idstring (uuid)required
Responses
- 202Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/accounts/$ID/login" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "00000000-0000-4000-8000-000000000000"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_loginAccount', {
id: '<id>',
body: {
instance_id: '00000000-0000-4000-8000-000000000000',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_loginAccount",
"arguments": {
"id": "<id>",
"body": {
"instance_id": "00000000-0000-4000-8000-000000000000"
}
}
}
}Reset identity
Clear an account's recorded identity
POST/v1/flocks/accounts/{id}/reset-identity
Owner only. Clears a wrong identity (the answer shows identity null). The next switch verified on one of the owner's own instances records it again; grantee instances never set it. For api_key accounts the identity is key:<first 8 hex characters of the key's SHA-256>. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInference account id (ia_...)
Responses
- 200The account with identity null
Response fields
idstringrequiredpattern
^ia_[0-9a-f]{32}$providerstringrequiredlabelstringrequiredauth_kind"subscription_oauth" | "api_key"requiredidentitystring | nullrequiredSigned-in identity (for example an email); null until the first login completes.
status"pending_login" | "active" | "needs_login" | "revoked" | "deleted"requiredowner_orgstringrequiredgrantedbooleanrequiredTrue when the account is owned by another org and granted to the caller org.
created_bystringrequiredcreated_atintegerrequiredupdated_atintegerrequiredbound_instancesintegergetAccount only: instances bound to the account across the owner and its grantees. min 0
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin; node credentials are refused), or not_account_owner: the account belongs to another org (you hold it by grant)
- 404Unknown account, or one not owned by or granted to your org
- 503ACCOUNT_CUSTODY_UNAVAILABLE or inventory unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/accounts/$ID/reset-identity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_resetAccountIdentity', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_resetAccountIdentity",
"arguments": {
"id": "<id>"
}
}
}Agents
List the org's Flocks agents
GET/v1/flocks/agents
These are harness agents that select one harness and optionally pin a node. They are separate from canonical agents (a_<ULID>), which are executed with executeAgent.
Parameters
limitquery · integerPage size, 1-100 (default 50)
cursorquery · stringOpaque next_cursor from the previous page
Responses
- 200One page of agents
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].namestringrequireditems[].[].harnessstringrequireditems[].[].node_idstring | nullrequiredPinned node, if any
items[].[].owner_subjectstringPresent only when the caller owns the agent
items[].[].created_atintegerrequiredUnix seconds
items[].[].updated_atintegerrequiredUnix seconds
next_cursorstring | nullrequired
- 400Invalid request, malformed cursor or unknown query parameter
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 429Too many list requests; retry after retry_after_seconds
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/agents" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listAgents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listAgents",
"arguments": {}
}
}Create an agent that selects a harness and optionally pins a node
POST/v1/flocks/agents
Request body application/json
namestringrequiredPrintable label min length 1 · max length 128
harness"claude" | "codex" | "gemini" | "droid" | "crush" | "opencode" | "forgecode" | "generic"requirednode_idstringPin the agent to one of your nodes; that node must be online and report the harness ready min length 1 · max length 128 · pattern
^[A-Za-z0-9._:-]+$
Responses
- 201The created agent
Response fields
idstringrequirednamestringrequiredharnessstringrequirednode_idstring | nullrequiredPinned node, if any
owner_subjectstringPresent only when the caller owns the agent
created_atintegerrequiredUnix seconds
updated_atintegerrequiredUnix seconds
- 400Invalid body or unknown harness (HARNESS_UNKNOWN)
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 404Unknown or foreign node
- 409The pinned node is offline or does not report the harness ready (HARNESS_NOT_ON_NODE)
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/agents" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"harness": "claude"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_createAgent', {
body: {
name: 'string',
harness: 'claude',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_createAgent",
"arguments": {
"body": {
"name": "string",
"harness": "claude"
}
}
}
}Read one Flocks agent
GET/v1/flocks/agents/{agent_id}
Parameters
agent_idpath · stringrequired
Responses
- 200The agent
Response fields
idstringrequirednamestringrequiredharnessstringrequirednode_idstring | nullrequiredPinned node, if any
owner_subjectstringPresent only when the caller owns the agent
created_atintegerrequiredUnix seconds
updated_atintegerrequiredUnix seconds
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 404Unknown agent in the verified org
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/agents/$AGENT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Delete (archive) a Flocks agent
DELETE/v1/flocks/agents/{agent_id}
Needs flocks:write (or flocks:admin), as creating an agent does. Soft-deletes the agent in the verified org and environment: its runs are kept as history, and it leaves listAgents and getAgent. A repeat by the owning org in the same environment answers the same 200. Another org's or environment's agent and an unknown id are 404 agent_not_found. Refused with 409 agent_has_active_runs while a run is pending or running (nothing is cancelled).
Parameters
agent_idpath · stringrequired
Responses
- 200Deleted (or already deleted by the owner)
Response fields
idstringrequireddeletedtruerequiredarchivedtruerequired
- 401Invalid One account credential
- 403Insufficient permission
- 404Unknown agent in the verified org and environment
- 409agent_has_active_runs
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flocks/agents/$AGENT_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_deleteAgent', {
agent_id: '<agent_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_deleteAgent",
"arguments": {
"agent_id": "<agent_id>"
}
}
}Runs
Start a run of an agent
POST/v1/flocks/agents/{agent_id}/runs
Runs the agent's harness on its pinned node, the node_id you give, or the first online node reporting the harness ready. On an instance with a bound inference account the run is recorded pending, dispatched with the instance's next heartbeat and answers 202 with the Run (inference_account_id, account_owner_org and grantee_org say which account and orgs it is metered to). Without a bound account, or with no node named and no online node reporting the harness ready, nothing is started: the answer is 503 HARNESS_CREDENTIALS_UNAVAILABLE and the body carries the failed run, which is recorded. Needs flocks:write (flocks:admin also passes).
Parameters
agent_idpath · stringrequiredAgent id
Request body application/json
taskstringrequired1-4096 bytes of printable text (newline, carriage return and tab allowed) min length 1 · max length 4096
node_idstringRun on this node instead of the agent's pinned node, for this run only. It must be online and report the harness ready. min length 1 · max length 128 · pattern
^[A-Za-z0-9._:-]+$
Responses
- 202The pending run
Response fields
idstringrequiredagent_idstringrequiredharnessstringrequirednode_idstring | nullrequiredtaskstringrequiredstate"pending" | "running" | "completed" | "failed"requirederror_codestring | nullrequiredStable code when state is failed
owner_subjectstringPresent only when the caller owns the run
created_atintegerrequiredUnix seconds
updated_atintegerrequiredUnix seconds
inference_account_idstring | nullrequiredInference account the run executed under (runs on instances with a bound account).
account_owner_orgstring | nullrequiredOrg that owns that account.
grantee_orgstring | nullrequiredOrg the run was billed to (the instance org).
run_secondsinteger | nullrequiredWall-clock seconds the harness ran, once finished.
- 400Invalid body, task or node_id
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot start runs
- 404Unknown agent or node
- 409grant_revoked or account_needs_login (the bound account cannot run), or HARNESS_NOT_ON_NODE (the node you named or pinned is offline or does not report the harness ready; nothing is recorded)
- 503HARNESS_CREDENTIALS_UNAVAILABLE: the instance has no bound account, or no node was named and no online node reports the harness ready (reason no_ready_node, run node_id null), so nothing was started; the body carries the failed run. Also inventory unavailable (then without run).
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/agents/$AGENT_ID/runs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"task": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_createRun', {
agent_id: '<agent_id>',
body: {
task: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_createRun",
"arguments": {
"agent_id": "<agent_id>",
"body": {
"task": "string"
}
}
}
}List Flocks agent runs, optionally for one agent
GET/v1/flocks/runs
Runs are recorded by the agent run endpoint, which does not start processes yet (credential lease issuance is absent), so recorded runs are failed with HARNESS_CREDENTIALS_UNAVAILABLE. Canonical executions (executeAgent) are not runs here.
Parameters
limitquery · integerPage size, 1-100 (default 50)
cursorquery · stringOpaque next_cursor from the previous page
agent_idquery · stringOnly runs of this agent
Responses
- 200One page of runs
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].agent_idstringrequireditems[].[].harnessstringrequireditems[].[].node_idstring | nullrequireditems[].[].taskstringrequireditems[].[].state"pending" | "running" | "completed" | "failed"requireditems[].[].error_codestring | nullrequiredStable code when state is failed
items[].[].owner_subjectstringPresent only when the caller owns the run
items[].[].created_atintegerrequiredUnix seconds
items[].[].updated_atintegerrequiredUnix seconds
items[].[].inference_account_idstring | nullrequiredInference account the run executed under (runs on instances with a bound account).
items[].[].account_owner_orgstring | nullrequiredOrg that owns that account.
items[].[].grantee_orgstring | nullrequiredOrg the run was billed to (the instance org).
items[].[].run_secondsinteger | nullrequiredWall-clock seconds the harness ran, once finished.
next_cursorstring | nullrequired
- 400Invalid request, malformed cursor or unknown query parameter
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 429Too many list requests; retry after retry_after_seconds
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/runs" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listRuns'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listRuns",
"arguments": {}
}
}Read one Flocks agent run
GET/v1/flocks/runs/{run_id}
Parameters
run_idpath · stringrequired
Responses
- 200The run
Response fields
idstringrequiredagent_idstringrequiredharnessstringrequirednode_idstring | nullrequiredtaskstringrequiredstate"pending" | "running" | "completed" | "failed"requirederror_codestring | nullrequiredStable code when state is failed
owner_subjectstringPresent only when the caller owns the run
created_atintegerrequiredUnix seconds
updated_atintegerrequiredUnix seconds
inference_account_idstring | nullrequiredInference account the run executed under (runs on instances with a bound account).
account_owner_orgstring | nullrequiredOrg that owns that account.
grantee_orgstring | nullrequiredOrg the run was billed to (the instance org).
run_secondsinteger | nullrequiredWall-clock seconds the harness ran, once finished.
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 404Unknown run in the verified org
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/runs/$RUN_ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getRun', {
run_id: '<run_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getRun",
"arguments": {
"run_id": "<run_id>"
}
}
}Byom
Exchange a join token under verified One account org identity
POST/v1/flocks/byom/enroll
Request body application/json
tokenstringrequiredmax length 256
namestringrequiredmax length 128
platformstringrequiredmax length 128
cpu_countintegerrequiredmin 1 · max 65536
Responses
- 200Success
Response fields
nodeobjectrequirednode.idstringrequirednode.namestringrequirednode.nicknamestringrequirednode.platformstringrequirednode.cpu_countintegerrequiredmin 1
node.state"enrolled" | "revoked"requirednode.last_seen_atintegerrequirednode.enrolled_atintegerrequirednode.labelsobjectFree-form labels; the key flock groups instances.
node.accountsobject[]Inference accounts the instance last reported.
node.accounts[].[].providerstringrequirednode.accounts[].[].account_idstring | nullrequirednode.accounts[].[].identitystring | nullrequirednode.accounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requirednode.accounts[].[].generationintegerrequiredCredential generation the instance holds (0 when none). min 0
node.accounts_supportedbooleanTrue when the instance reported a seal key and can hold inference accounts.
node_bindingstringrequiredheartbeat_interval_secondsintegerrequired
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/byom/enroll" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "string",
"name": "string",
"platform": "string",
"cpu_count": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_enrollNode', {
body: {
token: 'string',
name: 'string',
platform: 'string',
cpu_count: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_enrollNode",
"arguments": {
"body": {
"token": "string",
"name": "string",
"platform": "string",
"cpu_count": 1
}
}
}
}List customer hardware belonging to the verified org
GET/v1/flocks/byom/nodes
Responses
- 200Success
Response fields
idstringrequirednamestringrequirednicknamestringrequiredplatformstringrequiredcpu_countintegerrequiredmin 1
state"enrolled" | "revoked"requiredlast_seen_atintegerrequiredenrolled_atintegerrequiredlabelsobjectFree-form labels; the key flock groups instances.
accountsobject[]Inference accounts the instance last reported.
accounts[].[].providerstringrequiredaccounts[].[].account_idstring | nullrequiredaccounts[].[].identitystring | nullrequiredaccounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requiredaccounts[].[].generationintegerrequiredCredential generation the instance holds (0 when none). min 0
accounts_supportedbooleanTrue when the instance reported a seal key and can hold inference accounts.
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/byom/nodes" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listNodes'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listNodes",
"arguments": {}
}
}Revoke an org-owned node binding immediately
DELETE/v1/flocks/byom/nodes/{id}
Parameters
idpath · stringrequired
Responses
- 200Success
Response fields
idstringrequirednamestringrequirednicknamestringrequiredplatformstringrequiredcpu_countintegerrequiredmin 1
state"enrolled" | "revoked"requiredlast_seen_atintegerrequiredenrolled_atintegerrequiredlabelsobjectFree-form labels; the key flock groups instances.
accountsobject[]Inference accounts the instance last reported.
accounts[].[].providerstringrequiredaccounts[].[].account_idstring | nullrequiredaccounts[].[].identitystring | nullrequiredaccounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requiredaccounts[].[].generationintegerrequiredCredential generation the instance holds (0 when none). min 0
accounts_supportedbooleanTrue when the instance reported a seal key and can hold inference accounts.
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/flocks/byom/nodes/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_revokeNode', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_revokeNode",
"arguments": {
"id": "<id>"
}
}
}Update an org-owned node nickname and labels
PATCH/v1/flocks/byom/nodes/{id}
Parameters
idpath · stringrequired
Request body application/json
nicknamestringmax length 128
labelsobjectUp to 32 labels; keys [a-z0-9._/-]{1,63}, values up to 128 printable characters.
Responses
- 200Success
Response fields
idstringrequirednamestringrequirednicknamestringrequiredplatformstringrequiredcpu_countintegerrequiredmin 1
state"enrolled" | "revoked"requiredlast_seen_atintegerrequiredenrolled_atintegerrequiredlabelsobjectFree-form labels; the key flock groups instances.
accountsobject[]Inference accounts the instance last reported.
accounts[].[].providerstringrequiredaccounts[].[].account_idstring | nullrequiredaccounts[].[].identitystring | nullrequiredaccounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requiredaccounts[].[].generationintegerrequiredCredential generation the instance holds (0 when none). min 0
accounts_supportedbooleanTrue when the instance reported a seal key and can hold inference accounts.
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/flocks/byom/nodes/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_renameNode', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_renameNode",
"arguments": {
"id": "<id>",
"body": {}
}
}
}Read one node's presence and the runs recorded against it
GET/v1/flocks/byom/nodes/{id}/activity
The node as the Flocks gateway last saw it (online, heartbeat age, harness report) plus one page of the runs recorded on that node, newest first (node_activity in flocks crates/flocks-cli/src/cmd/gateway/harness_api.rs). Needs flocks:read, flocks:write or flocks:admin; node credentials are refused. Paging follows listRuns: limit 1-100 (default 50), opaque cursor, next_cursor null on the last page; agent_id is not a filter here and any other query parameter answers 400. owner_subject appears only on runs you started. Shares the list rate limit with listHarnesses, listAgents and listRuns.
Parameters
idpath · stringrequiredNode id (UUID) from listNodes
limitquery · integerRuns per page, 1-100 (default 50)
cursorquery · stringOpaque next_cursor from the previous page
Responses
- 200The node's presence and one page of its runs
Response fields
nodeobjectrequiredOne node as the gateway last saw it.
node.node_idstringrequirednode.namestringrequirednode.nicknamestringrequirednode.platformstringrequirednode.cpu_countintegerrequiredmin 1
node.statestringrequiredenrolled or revoked
node.onlinebooleanrequiredEnrolled and a heartbeat under 90 seconds old
node.enrolled_atintegerrequiredUnix seconds
node.last_seen_atintegerrequiredUnix seconds of the last accepted heartbeat
node.heartbeat_age_secondsintegerrequiredSeconds since the last accepted heartbeat min 0
node.harnessesobject[]requirednode.harnesses[].[].namestringrequirednode.harnesses[].[].versionstring | nullVersion the CLI printed, when the probe succeeded
node.harnesses[].[].readybooleanrequiredThe CLI binary was found and answered the probe
itemsobject[]requiredRuns recorded against the node, newest first
items[].[].idstringrequireditems[].[].agent_idstringrequireditems[].[].harnessstringrequireditems[].[].node_idstring | nullrequireditems[].[].taskstringrequireditems[].[].state"pending" | "running" | "completed" | "failed"requireditems[].[].error_codestring | nullrequiredStable code when state is failed
items[].[].owner_subjectstringPresent only when the caller owns the run
items[].[].created_atintegerrequiredUnix seconds
items[].[].updated_atintegerrequiredUnix seconds
items[].[].inference_account_idstring | nullrequiredInference account the run executed under (runs on instances with a bound account).
items[].[].account_owner_orgstring | nullrequiredOrg that owns that account.
items[].[].grantee_orgstring | nullrequiredOrg the run was billed to (the instance org).
items[].[].run_secondsinteger | nullrequiredWall-clock seconds the harness ran, once finished.
next_cursorstring | nullrequired
- 400Invalid request, malformed cursor or unknown query parameter (invalid_request)
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read node activity
- 404node_not_found: unknown node, or one your org does not own
- 429Too many list requests; retry after retry_after_seconds
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/byom/nodes/$ID/activity" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getNodeActivity', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getNodeActivity",
"arguments": {
"id": "<id>"
}
}
}Record presence using One account auth plus the node-specific binding
POST/v1/flocks/byom/nodes/{id}/heartbeat
Parameters
idpath · stringrequired
Request body application/json
node_bindingstringrequiredmin length 64 · max length 64
Responses
- 200Success
Response fields
acceptedbooleanrequired
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/byom/nodes/$ID/heartbeat" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"node_binding": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_heartbeatNode', {
id: '<id>',
body: {
node_binding: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_heartbeatNode",
"arguments": {
"id": "<id>",
"body": {
"node_binding": "string"
}
}
}
}Read server-owned enrollment availability for the verified org
GET/v1/flocks/byom/readiness
Responses
- 200Enrollment readiness
Response fields
node_enrollment_availablebooleanrequiredTrue only when the service can complete the scoped One account node credential flow.
reason_code"node_credential_issuer_unavailable"Present while a supported scoped node credential issuer is unavailable.
- 401Invalid One account credential
- 403Insufficient permission
- 503The configured durable inventory store is unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/byom/readiness" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getEnrollmentReadiness'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getEnrollmentReadiness",
"arguments": {}
}
}Create an org-scoped single-use join token (admin required)
POST/v1/flocks/byom/tokens
Request body application/json
ttl_secondsintegermin 60 · max 600 · default
600
Responses
- 200Success
Response fields
tokenstringrequiredexpires_atintegerrequired
- 401Invalid One account credential or node binding
- 403Insufficient permission
- 404Unknown resource in verified org
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/byom/tokens" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_createJoinToken', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_createJoinToken",
"arguments": {
"body": {}
}
}
}Harnesses
List the harnesses each of your nodes reports, with version and readiness
GET/v1/flocks/harnesses
Pages the nodes of the verified org with the harnesses each reported in its last heartbeat. known_harnesses names every harness Flocks can drive. The backend serves the same listing at /v1/byom/harnesses.
Parameters
limitquery · integerPage size, 1-100 (default 50)
cursorquery · stringOpaque next_cursor from the previous page
Responses
- 200One page of nodes with their harnesses
Response fields
known_harnessesstring[]requireditemsobject[]requireditems[].[].node_idstringrequireditems[].[].namestringrequireditems[].[].nicknamestringrequireditems[].[].statestringrequireditems[].[].onlinebooleanrequireditems[].[].last_seen_atintegerrequireditems[].[].harnessesobject[]requireditems[].[].harnesses[].[].namestringrequireditems[].[].harnesses[].[].versionstring | nullVersion the CLI printed, when the probe succeeded
items[].[].harnesses[].[].readybooleanrequiredThe CLI binary was found and answered the probe
next_cursorstring | nullrequired
- 400Invalid request, malformed cursor or unknown query parameter
- 401Invalid One account credential
- 403Insufficient permission; node credentials cannot read or manage agents
- 429Too many list requests; retry after retry_after_seconds
- 503Inventory unavailable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/harnesses" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listHarnesses'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listHarnesses",
"arguments": {}
}
}Account
Accounts bound to an instance
GET/v1/flocks/instances/{id}/account
Per provider: the bound account, its identity, auth state and binding state. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Parameters
idpath · stringrequiredInstance (node) id
Responses
- 200Success
Response fields
instance_idstringrequiredaccountsobject[]requiredaccounts[].[].providerstringrequiredaccounts[].[].account_idstring | nullrequiredaccounts[].[].identitystring | nullrequiredaccounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requiredaccounts[].[].binding_state"unbound" | "switching" | "active" | "failed" | "logged_out"requiredaccounts[].[].desired_account_idstring | nullrequiredaccounts[].[].updated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/instances/$ID/account" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getInstanceAccount', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getInstanceAccount",
"arguments": {
"id": "<id>"
}
}
}Sign an instance out of a provider account
POST/v1/flocks/instances/{id}/account/logout
Drains, deletes the account files and clears the binding. The provider's own logout is never run, so other instances sharing the login are unaffected. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInstance (node) id
Request body application/json
providerstringrequiredforcebooleanCancel in-flight runs instead of waiting for them to finish. default
false
Responses
- 202Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/instances/$ID/account/logout" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"provider": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_logoutInstanceAccount', {
id: '<id>',
body: {
provider: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_logoutInstanceAccount",
"arguments": {
"id": "<id>",
"body": {
"provider": "string"
}
}
}
}Switch an instance to an account
POST/v1/flocks/instances/{id}/account/switch
Drains in-flight runs (or cancels them with force), installs the account, verifies its identity and swaps; on failure the previous account stays and the item reports rolled_back. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredInstance (node) id
Request body application/json
account_idstringrequiredproviderstringforcebooleanCancel in-flight runs instead of waiting for them to finish. default
falsedrain_timeout_secsintegermin 0 · max 3600 · default
120
Responses
- 202Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/instances/$ID/account/switch" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account_id": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_switchInstanceAccount', {
id: '<id>',
body: {
account_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_switchInstanceAccount",
"arguments": {
"id": "<id>",
"body": {
"account_id": "string"
}
}
}
}Instances
Sign many instances out of a provider account
POST/v1/flocks/instances/account/bulk-logout
Selector-based logout with bounded concurrency. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Request body application/json
selectorobjectrequiredResolves only against the calling org's enrolled instances; given fields are ANDed. A selector that matches nothing is refused with 400 selector_empty.
selector.instance_idsstring (uuid)[]selector.flockstringMatches instances whose label flock equals this value. max length 128
selector.labelsobjectInstances must carry every label given.
selector.from_account_idstringInstances currently bound to this account.
providerstringrequiredconcurrencyintegermin 1 · max 20 · default
5forcebooleanCancel in-flight runs instead of waiting for them to finish. default
false
Responses
- 202Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/instances/account/bulk-logout" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"selector": {},
"provider": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_bulkLogoutInstanceAccount', {
body: {
selector: {},
provider: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_bulkLogoutInstanceAccount",
"arguments": {
"body": {
"selector": {},
"provider": "string"
}
}
}
}Switch many instances to an account
POST/v1/flocks/instances/account/bulk-switch
Selects instances by id, flock, labels or current account and switches them with bounded concurrency. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Request body application/json
selectorobjectrequiredResolves only against the calling org's enrolled instances; given fields are ANDed. A selector that matches nothing is refused with 400 selector_empty.
selector.instance_idsstring (uuid)[]selector.flockstringMatches instances whose label flock equals this value. max length 128
selector.labelsobjectInstances must carry every label given.
selector.from_account_idstringInstances currently bound to this account.
account_idstringrequiredconcurrencyintegermin 1 · max 20 · default
5forcebooleandrain_timeout_secsintegermin 0 · max 3600
Responses
- 202Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 409Conflict (grant_exists, login_not_waiting, generation_conflict and similar)
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/instances/account/bulk-switch" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"selector": {},
"account_id": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_bulkSwitchInstanceAccount', {
body: {
selector: {},
account_id: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_bulkSwitchInstanceAccount",
"arguments": {
"body": {
"selector": {},
"account_id": "string"
}
}
}
}Jobs
Get an account job
GET/v1/flocks/jobs/{id}
Per-instance results for a login, switch or logout job. Poll until state is not running. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Parameters
idpath · stringrequiredJob id (job_...)
Responses
- 200Success
Response fields
idstringrequiredpattern
^job_[0-9a-f]{32}$kind"login" | "switch" | "logout"requiredstate"running" | "succeeded" | "partial" | "failed"requiredaccount_idstring | nullrequiredproviderstringrequiredconcurrencyintegerrequiredforcebooleanrequiredtotalsobjectrequiredtotals.queuedintegerrequiredtotals.dispatchedintegerrequiredtotals.succeededintegerrequiredtotals.failedintegerrequiredtotals.timed_outintegerrequiredtotals.rolled_backintegerrequiredtotals.unsupportedintegerrequireditemsobject[]requireditems[].[].instance_idstring | nullrequiredNull for an instance of another org (a grantee, on an owner's revoke or delete job); the owner is never told which.
items[].[].state"queued" | "dispatched" | "succeeded" | "failed" | "timed_out" | "rolled_back" | "unsupported"requireditems[].[].previous_account_idstring | nullrequireditems[].[].identitystring | nullrequireditems[].[].error_codestring | nullrequiredHARNESS_NOT_ON_NODE, instance_unsupported, account_needs_login, drain_timeout, timed_out, verify_failed, identity_mismatch, grant_revoked, custody_unavailable, node_offline, login_failed, credential_not_found, generation_conflict or provider_unknown.
items[].[].loginobject | objectLogin items only. The device url (and code, when the provider shows one) reach the job initiator; everyone else sees {pending:true}. A url with a null code means the sign-in waits for the owner to paste the authorization code: send it with submitAccountLoginInput.
items[].[].grantee_instancebooleanrequiredTrue when the instance belongs to another org.
created_atintegerrequiredupdated_atintegerrequired
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/jobs/$ID" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_getAccountJob', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_getAccountJob",
"arguments": {
"id": "<id>"
}
}
}Login input
Send the pasted sign-in code to a waiting login
POST/v1/flocks/jobs/{id}/login-input
A headless Claude sign-in prints a URL and then waits for the authorization code. The job initiator pastes it here; it is sealed to the instance, delivered with the next heartbeat and never stored. Only for a login job whose item on that instance is waiting, else 409 login_not_waiting. Needs flocks:admin for org API keys; a signed-in Console session needs flocks:admin or flocks:write.
Parameters
idpath · stringrequiredJob id (job_...)
Request body application/json
instance_idstring (uuid)requiredcodestringrequiredThe authorization code the owner copied from the provider sign-in page. It is sealed to the instance and never stored or returned. min length 1 · max length 512
Responses
- 202Success
Response fields
acceptedtruerequired
- 400Invalid request
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin; node credentials are refused)
- 404Unknown job in the verified org
- 409login_not_waiting: the job is not a login job, was not started by the caller, or that instance is not waiting for input
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/jobs/$ID/login-input" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instance_id": "00000000-0000-4000-8000-000000000000",
"code": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_submitAccountLoginInput', {
id: '<id>',
body: {
instance_id: '00000000-0000-4000-8000-000000000000',
code: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_submitAccountLoginInput",
"arguments": {
"id": "<id>",
"body": {
"instance_id": "00000000-0000-4000-8000-000000000000",
"code": "string"
}
}
}
}Activate
Activate the exact saved One account node reservation idempotently
POST/v1/flocks/nodes/{id}/activate
Parameters
idpath · string (uuid)required
Request body application/json
node_noncestringrequiredpattern
^[0-9a-f]{64}$namestringrequiredmin length 1 · max length 128
platformstringrequiredmin length 1 · max length 128
cpu_countintegerrequiredmin 1 · max 65536
Responses
- 200The same enrolled node, without reusable secrets
Response fields
nodeobjectrequirednode.idstringrequirednode.namestringrequirednode.nicknamestringrequirednode.platformstringrequirednode.cpu_countintegerrequiredmin 1
node.state"enrolled" | "revoked"requirednode.last_seen_atintegerrequirednode.enrolled_atintegerrequirednode.labelsobjectFree-form labels; the key flock groups instances.
node.accountsobject[]Inference accounts the instance last reported.
node.accounts[].[].providerstringrequirednode.accounts[].[].account_idstring | nullrequirednode.accounts[].[].identitystring | nullrequirednode.accounts[].[].auth_state"authenticated" | "unauthenticated" | "unknown" | "switching"requirednode.accounts[].[].generationintegerrequiredCredential generation the instance holds (0 when none). min 0
node.accounts_supportedbooleanTrue when the instance reported a seal key and can hold inference accounts.
activatedbooleanrequired
- 401Inactive node credential
- 404Unknown or foreign node/nonce
- 409Conflicting or revoked reservation
- 503Native receiver unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/nodes/$ID/activate" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"node_nonce": "string",
"name": "string",
"platform": "string",
"cpu_count": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_activateNode', {
id: '<id>',
body: {
node_nonce: 'string',
name: 'string',
platform: 'string',
cpu_count: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_activateNode",
"arguments": {
"id": "<id>",
"body": {
"node_nonce": "string",
"name": "string",
"platform": "string",
"cpu_count": 1
}
}
}
}Credential:rotate
Prepare a fixed-scope key, persist it, then commit; cancel an uncertain prepare before retrying
POST/v1/flocks/nodes/{id}/credential:rotate
Parameters
idpath · string (uuid)required
Request body application/json
action"prepare" | "commit" | "cancel"requirednode_noncestringrequiredpattern
^[0-9a-f]{64}$operation_noncestringrequiredpattern
^[0-9a-f]{64}$
Responses
- 200Committed or cancelled
Response fields
acceptedbooleanrequired
- 201Prepared key shown once; persist before commit
Response fields
node_idstring (uuid)requiredorganization_idstringrequiredcredential_idstringrequiredcredential_valuestringrequiredmin length 1 · max length 4096
scopes"flocks:node"[]requiredexpires_atstring (date-time)requirednode_nonce_hashstringpattern
^[0-9a-f]{64}$
- 401Inactive key version
- 404Unknown or foreign node/nonce
- 409Pending, terminal or premature rotation
- 503Rotation unavailable; retain recovery state
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/nodes/$ID/credential:rotate" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "prepare",
"node_nonce": "string",
"operation_nonce": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_rotateNodeCredential', {
id: '<id>',
body: {
action: 'prepare',
node_nonce: 'string',
operation_nonce: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_rotateNodeCredential",
"arguments": {
"id": "<id>",
"body": {
"action": "prepare",
"node_nonce": "string",
"operation_nonce": "string"
}
}
}
}Nodes
Exchange a one-time Console join for a node-only One account credential; persist it before activation
POST/v1/flocks/nodes/enroll
Request body application/json
tokenstringrequiredpattern
^[0-9a-f]{64}$node_noncestringrequiredpattern
^[0-9a-f]{64}$
Responses
- 201Credential shown once; save privately before activation
Response fields
node_idstring (uuid)requiredorganization_idstringrequiredcredential_idstringrequiredcredential_valuestringrequiredmin length 1 · max length 4096
scopes"flocks:node"[]requiredexpires_atstring (date-time)requirednode_nonce_hashstringpattern
^[0-9a-f]{64}$
- 400Invalid closed body or unexpected bearer
- 401Expired or used join
- 503Native issuance unavailable
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/flocks/nodes/enroll" \
-H "Content-Type: application/json" \
-d '{
"token": "string",
"node_nonce": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_exchangeJoinToken', {
body: {
token: 'string',
node_nonce: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_exchangeJoinToken",
"arguments": {
"body": {
"token": "string",
"node_nonce": "string"
}
}
}
}Providers
List inference providers
GET/v1/flocks/providers
Providers (claude, codex) with the login kinds each supports and plain guidance on which plans fit sharing one login across many instances. Needs flocks:read (flocks:write or flocks:admin also satisfy it).
Responses
- 200Success
Response fields
itemsobject[]requireditems[].[].idstringrequireditems[].[].display_namestringrequireditems[].[].auth_kinds"subscription_oauth" | "api_key"[]requireditems[].[].plan_guidancestringrequiredOne plain sentence on which plans fit sharing one login across many instances.
- 400Invalid request, or selector_empty
- 401Invalid One account credential
- 403Insufficient permission (org API keys need flocks:admin for writes; node credentials are refused)
- 404Unknown resource in the verified org
- 422The request is well formed but cannot be applied (for example a secret reference Blinds cannot import)
- 503ACCOUNT_CUSTODY_UNAVAILABLE: custody is not configured or unreachable
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/flocks/providers" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('flocks_listProviders'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "flocks_listProviders",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support