API reference
Auto
Management for agent organizations: orgs, mandates, approvals and a verifiable decision ledger.
- Operations
- 78
- Base path
https://os.one.ml/api/v1/auto- Scopes
auto:readauto:write- API keys
- 1 refused to API keys · 73 tested with an API key
- SDK
genesis.call('auto_getDidDocument', …)· helpers undergenesis.auto- CLI
genesis auto- MCP
- 63 tools; the other 15 through
genesis_call
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Auto's DID document (did:oas:one:service:auto) | GET/.well-known/did.json | Tested with an API key |
| Auto's public signing keys (JWKS) | GET/.well-known/jwks.json | Tested with an API key |
| List activity, newest first | GET/activity/events | — |
| Today's numbers and a one-line headline | GET/activity/summary | — |
| Get an approval | GET/approvals/{approval} | Tested with an API key |
| Approve or deny a pending approval | POST/approvals/{approval}/decision | API keys refused |
| Check whether a principal may act under its delegated authority | POST/authority/check | Tested with an API key |
| Get a ledgered authority check and whether its spend was released | GET/authority/checks/{check} | Tested with an API key |
| Release the spend an allowed check committed | POST/authority/checks/{check}/release | Tested with an API key |
| Verify a check receipt or an authority credential | POST/authority/verify | Tested with an API key |
| Get a budget with its spend in the current period | GET/budgets/{budget} | Tested with an API key |
| Archive a budget | DELETE/budgets/{budget} | Tested with an API key |
| Update a budget's name, amount, period or description | PATCH/budgets/{budget} | Tested with an API key |
| Get a cadence with its recent occurrences | GET/cadences/{cadence} | Tested with an API key |
| Archive a cadence | DELETE/cadences/{cadence} | Tested with an API key |
| Update, pause or resume a cadence | PATCH/cadences/{cadence} | Tested with an API key |
| List a cadence's recorded occurrences | GET/cadences/{cadence}/occurrences | Tested with an API key |
| Record that an occurrence was held or skipped | POST/cadences/{cadence}/occurrences | Tested with an API key |
| List your companies with their live state and one number | GET/companies | — |
| Get a company's screen | GET/companies/{org} | — |
| Get an authority credential with its signed claims | GET/credentials/{credential} | Tested with an API key |
| Revoke an authority credential | POST/credentials/{credential}/revoke | Tested with an API key |
| An authority credential's public status | GET/credentials/{credential}/status | Tested with an API key |
| Get a goal | GET/goals/{goal} | Tested with an API key |
| Archive a goal | DELETE/goals/{goal} | Tested with an API key |
| Update a goal or move its status | PATCH/goals/{goal} | Tested with an API key |
| Record a measurement of one of a goal's metrics | POST/goals/{goal}/measurements | Tested with an API key |
| Get a mandate | GET/mandates/{mandate} | Tested with an API key |
| Archive a mandate | DELETE/mandates/{mandate} | Tested with an API key |
| Update a mandate or move its status | PATCH/mandates/{mandate} | Tested with an API key |
| Propose a spend under a mandate | POST/mandates/{mandate}/actions | Tested with an API key |
| Send one MCP JSON-RPC message to Auto | POST/mcp | Tested with an API key |
| List autonomous orgs | GET/orgs | Tested with an API key |
| Create an autonomous org with a charter | POST/orgs | Tested with an API key |
| Get an org | GET/orgs/{org} | Tested with an API key |
| Archive an org and all its mandates | DELETE/orgs/{org} | Tested with an API key |
| Update an org's name, owner or charter | PATCH/orgs/{org} | Tested with an API key |
| List an org's approvals | GET/orgs/{org}/approvals | Tested with an API key |
| List an org's budgets with their spend in the current period | GET/orgs/{org}/budgets | Tested with an API key |
| Create a spend budget for a unit or the whole org | POST/orgs/{org}/budgets | Tested with an API key |
| List an org's cadences (meetings, reviews, reports) | GET/orgs/{org}/cadences | Tested with an API key |
| Create a cadence the org keeps | POST/orgs/{org}/cadences | Tested with an API key |
| List the cadences due within a window | GET/orgs/{org}/cadences/due | Tested with an API key |
| Get an org chart | GET/orgs/{org}/chart | Tested with an API key |
| Get where an org is exposed (vacancies, successors) | GET/orgs/{org}/continuity | Tested with an API key |
| List an org's authority credentials | GET/orgs/{org}/credentials | Tested with an API key |
| Record a non-spending decision in the ledger | POST/orgs/{org}/decisions | Tested with an API key |
| List an org's goals | GET/orgs/{org}/goals | Tested with an API key |
| Set a goal with metrics for a position | POST/orgs/{org}/goals | Tested with an API key |
| Read an org's decision ledger | GET/orgs/{org}/ledger | Tested with an API key |
| Recompute an org's ledger hash chain | GET/orgs/{org}/ledger/verify | Tested with an API key |
| List an org's mandates | GET/orgs/{org}/mandates | Tested with an API key |
| Create a mandate | POST/orgs/{org}/mandates | Tested with an API key |
| List an org's policies | GET/orgs/{org}/policies | Tested with an API key |
| Create a policy that tightens authority checks | POST/orgs/{org}/policies | Tested with an API key |
| List an org's positions | GET/orgs/{org}/positions | Tested with an API key |
| Create a position with its delegated authority, optionally filled | POST/orgs/{org}/positions | Tested with an API key |
| Get an org's scorecard | GET/orgs/{org}/scorecard | Tested with an API key |
| List an org's units | GET/orgs/{org}/units | Tested with an API key |
| Create a unit (department or team) in an org | POST/orgs/{org}/units | Tested with an API key |
| Get a policy | GET/policies/{policy} | Tested with an API key |
| Archive a policy | DELETE/policies/{policy} | Tested with an API key |
| Update, pause or resume a policy | PATCH/policies/{policy} | Tested with an API key |
| Get a position with its reporting chain | GET/positions/{position} | Tested with an API key |
| Archive a position | DELETE/positions/{position} | Tested with an API key |
| Update a position's title, unit, reporting line or authority | PATCH/positions/{position} | Tested with an API key |
| Start an acting appointment for a position | PUT/positions/{position}/acting | Tested with an API key |
| End a position's acting appointment | DELETE/positions/{position}/acting | Tested with an API key |
| Issue a signed AuthorityCredential for a position's holder | POST/positions/{position}/credentials | Tested with an API key |
| Fill a position, or swap its occupant | PUT/positions/{position}/occupant | Tested with an API key |
| Vacate a position | DELETE/positions/{position}/occupant | Tested with an API key |
| Get a position's scorecard | GET/positions/{position}/scorecard | Tested with an API key |
| Set a position's succession plan | PUT/positions/{position}/succession | Tested with an API key |
| List a position's occupancy terms | GET/positions/{position}/terms | Tested with an API key |
| Get a unit | GET/units/{unit} | Tested with an API key |
| Archive a unit | DELETE/units/{unit} | Tested with an API key |
| Rename, describe or move a unit | PATCH/units/{unit} | Tested with an API key |
| Show the identity Auto sees for your credential | GET/whoami | Tested with an API key |
well known
Auto's DID document (did:oas:one:service:auto)
GET/v1/auto/.well-known/did.json
Public, no credential. The DID document of Auto's issuer DID, with its verification method. Cached for 5 minutes.
Responses
- 200The DID document
Response fields
A JSON object.
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/.well-known/did.json"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_getDidDocument'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_getDidDocument",
"arguments": {}
}
}
}Auto's public signing keys (JWKS)
GET/v1/auto/.well-known/jwks.json
Public: no credential (an Authorization header is ignored). The Ed25519 keys that verify check receipts and AuthorityCredentials offline. Cached for 5 minutes (Cache-Control passes through).
Responses
- 200The key set
Response fields
keysobject[]required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/.well-known/jwks.json"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_getJwks'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_getJwks",
"arguments": {}
}
}
}Activity
List activity, newest first
GET/v1/auto/activity/events
Scope auto:read. Needs Activity (AUTO_ACTIVITY); otherwise a 404. One shaped line per thing that happened (Auto's receipts, money, jobs, usage rollups, vendor events, your app), never a raw payload; emails, card and phone numbers and secrets are masked before a row is stored. Newest first. A rollup (API calls, usage) is one row per hour that moves to the top as it grows; its title already has the count filled in. after returns only rows newer than a cursor, before only older (pass next_cursor to page back). Cursors are opaque decimal strings.
Parameters
companyquery · stringOnly this company (an Auto org id,
aorg_...); one you may not read is a 404kindsquery · stringComma list of up to 20 kinds, e.g.
money.revenue,customer.signupsourcesquery · stringComma list of up to 20 sources, e.g.
garden,stripeafterquery · stringOnly rows newer than this cursor (a
latest_cursoror an event'scursor)beforequery · stringOnly rows older than this cursor (a
next_cursor)limitquery · integer1-200, default 50
Responses
- 200A page of activity
Response fields
object"list"requireddataobject[]requireddata[].[].object"activity_event"requireddata[].[].idstringrequiredRow id
data[].[].cursorstringrequiredPosition in the stream; newer rows have larger cursors
data[].[].company_idstring | nullrequiredThe Auto org (
aorg_...) the row belongs to, or null for the whole tenantdata[].[].sourcestringrequiredWhere the row came from, e.g.
auto,garden,stripe,genesis,appdata[].[].kindstringrequiredDotted snake_case, e.g.
money.revenue,customer.signup,job.done,gateway.callsdata[].[].titlestringrequiredOne line; a rollup's count is already filled in
data[].[].subtitlestring | nullrequireddata[].[].actorstring | nullrequiredWho did it (a principal)
data[].[].actor_kindstring | nullrequiredagent,person,serviceorexternaldata[].[].amountobject | nullrequireddata[].[].quantitynumber | nullrequiredA rollup's count or another quantity
data[].[].linkstring | nullrequiredAn app path (
/...) or an https link to the vendor dashboard the row came fromdata[].[].refstring | nullrequiredThe source object's id
data[].[].occurred_atstring (date-time)requireddata[].[].received_atstring (date-time)requiredhas_morebooleanrequiredMore older rows exist
next_cursorstring | nullrequiredPass as
beforefor the next (older) pagelatest_cursorstring | nullrequiredThe newest row's cursor; pass as
afterto read only what is new
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/activity/events" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_listActivityEvents'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listActivityEvents",
"arguments": {}
}
}Today's numbers and a one-line headline
GET/v1/auto/activity/summary
Scope auto:read. Needs Activity (AUTO_ACTIVITY); otherwise a 404. Revenue today (revenue less refunds), new signups today and cash in today, where "today" is the day in tz, plus a headline that compares revenue with yesterday. A number is null when no source reports it yet (show a dash, not 0). Money is never summed across currencies: the number is in the currency with the most money today and the rest are in other_currencies. sources lists the sources that reported in the last 30 days.
Parameters
companyquery · stringOnly this company (an Auto org id,
aorg_...); one you may not read is a 404tzquery · stringIANA time zone for "today", e.g.
America/Chicago(default UTC)
Responses
- 200The summary
Response fields
object"activity_summary"requiredas_ofstring (date-time)requiredtime_zonestringrequiredheadlinestringrequiredOne line, e.g. "Revenue is up on yesterday."
revenue_todayobject | nullrequiredRevenue less refunds today; null when no revenue source reports
new_signupsinteger | nullrequiredSignups today; null when no signup source reports
cash_inobject | nullrequiredMoney settled in today; null when no settlement source reports
sourcesstring[]requiredSources that reported in the last 30 days
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/activity/summary" \
-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('auto_getActivitySummary'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getActivitySummary",
"arguments": {}
}
}Approvals
Get an approval
GET/v1/auto/approvals/{approval}
Scope auto:read. A pending approval past its deadline is moved to expired first.
Parameters
approvalpath · stringrequired
Responses
- 200The approval
Response fields
idstringrequiredorg_idstringrequiredmandate_idstringrequiredsummarystringrequiredreasoningstringrequiredinputsobjectrequiredamountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$reasonsobject[]requiredreasons[].[].limit"per_action" | "per_day" | "budget"requiredreasons[].[].limit_amountintegerrequiredreasons[].[].amountintegerrequiredreasons[].[].spent_todayintegerPresent for per_day
reasons[].[].spent_in_periodintegerPresent for budget
approverstringrequiredstatus"pending" | "approved" | "denied" | "expired"requiredrequested_bystringrequireddecided_bystring | nullrequirednotestring | nullrequiredexpires_atstring (date-time)requireddecided_atstring | null (date-time)requiredcreated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/approvals/$APPROVAL" \
-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('auto_getApproval', {
approval: '<approval>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getApproval",
"arguments": {
"approval": "<approval>"
}
}
}List an org's approvals
GET/v1/auto/orgs/{org}/approvals
Scope auto:read. Newest first, up to 200. Pending approvals past their deadline are moved to expired first.
Parameters
orgpath · stringrequiredstatusquery · "pending" | "approved" | "denied" | "expired"
Responses
- 200Approvals
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].org_idstringrequireddata[].[].mandate_idstringrequireddata[].[].summarystringrequireddata[].[].reasoningstringrequireddata[].[].inputsobjectrequireddata[].[].amountobjectrequireddata[].[].amount.amountintegerrequiredMinor units (cents) min 0
data[].[].amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$data[].[].reasonsobject[]requireddata[].[].reasons[].[].limit"per_action" | "per_day" | "budget"requireddata[].[].reasons[].[].limit_amountintegerrequireddata[].[].reasons[].[].amountintegerrequireddata[].[].reasons[].[].spent_todayintegerPresent for per_day
data[].[].reasons[].[].spent_in_periodintegerPresent for budget
data[].[].approverstringrequireddata[].[].status"pending" | "approved" | "denied" | "expired"requireddata[].[].requested_bystringrequireddata[].[].decided_bystring | nullrequireddata[].[].notestring | nullrequireddata[].[].expires_atstring (date-time)requireddata[].[].decided_atstring | null (date-time)requireddata[].[].created_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/approvals" \
-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('auto_listApprovals', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listApprovals",
"arguments": {
"org": "<org>"
}
}
}Decision
Approve or deny a pending approval
POST/v1/auto/approvals/{approval}/decision
Scope auto:write. Only the mandate's approver principal may decide (403 otherwise), and never with an m2m_token credential: use an API key or a genesis login session of the approver. Approving records the action as a decision and returns it; the mandate must still be active. An approval already decided or expired is a 409.
Parameters
approvalpath · stringrequired
Request body application/json
decision"approve" | "deny"requirednotestringmin length 1 · max length 2000
Responses
- 200The decided approval and, when approved, the ledger decision
Response fields
approvalobjectrequiredapproval.idstringrequiredapproval.org_idstringrequiredapproval.mandate_idstringrequiredapproval.summarystringrequiredapproval.reasoningstringrequiredapproval.inputsobjectrequiredapproval.amountobjectrequiredapproval.amount.amountintegerrequiredMinor units (cents) min 0
approval.amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$approval.reasonsobject[]requiredapproval.reasons[].[].limit"per_action" | "per_day" | "budget"requiredapproval.reasons[].[].limit_amountintegerrequiredapproval.reasons[].[].amountintegerrequiredapproval.reasons[].[].spent_todayintegerPresent for per_day
approval.reasons[].[].spent_in_periodintegerPresent for budget
approval.approverstringrequiredapproval.status"pending" | "approved" | "denied" | "expired"requiredapproval.requested_bystringrequiredapproval.decided_bystring | nullrequiredapproval.notestring | nullrequiredapproval.expires_atstring (date-time)requiredapproval.decided_atstring | null (date-time)requiredapproval.created_atstring (date-time)requireddecisionobject | nullrequired
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/approvals/$APPROVAL/decision" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": "approve"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_decideApproval', {
approval: '<approval>',
body: {
decision: 'approve',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_decideApproval",
"arguments": {
"approval": "<approval>",
"body": {
"decision": "approve"
}
}
}
}
}Authority
Check whether a principal may act under its delegated authority
POST/v1/auto/authority/check
Scope auto:read. "May this principal, in this position, do this?" for spend, sign, external_mail, hire, or a plugin's custom action such as garden.payout or scopes.assign (granted through a position's authority.actions). Give position_id, org_id, or neither (Auto resolves the org from the principal's positions); principal defaults to the caller, who may hold the position or act for it (acting). Returns allow, or deny with reasons (position limits, unit_budget caps from budgets, and policy rules) and the escalation path up the reporting line to the first position that allows it, a position a policy escalates to, or the org owner. Every check is ledgered as authority.check and never metered; receipt is an EdDSA JWS of the answer signed by Auto (check it with verifyAuthorityToken). An allowed spend counts against the position's per-day limit and budget and against unit and org budgets unless dry_run; a caller with only auto:read always gets a dry run. Give back spend that did not happen with releaseAuthorityCheck. With an Idempotency-Key, a repeat returns the first answer with idempotent_replay: true (a concurrent check with the same key is a 409). With neither org_id nor position_id, a tenant with several orgs where the principal holds no position is a 409 whose message starts with ambiguous_org (pass org_id).
Parameters
Idempotency-Keyheader · stringOptional stable key, 8-128 characters of [A-Za-z0-9_.:-]; a repeat returns the first answer instead of checking (and counting spend) again
Request body application/json
org_idstring | nullpattern
^[A-Za-z0-9_]{1,64}$position_idstring | nullpattern
^[A-Za-z0-9_]{1,64}$principalstringWho wants to act; defaults to the caller pattern
^[A-Za-z0-9][A-Za-z0-9_.:@-]{0,255}$actionstringrequiredspend,sign,external_mail,hire, or a custom action such asscopes.assignmax length 128 · pattern^(?:spend|sign|external_mail|hire|[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_]*)+)$amountobjectRequired for spend; optional for sign (checked against per_document)
amount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$recipientsstring[]Email addresses or domains; required for external_mail
summarystringRecorded in the ledger min length 1 · max length 500
contextobjectFree-form, up to 16 KiB serialized
dry_runbooleanEvaluate without counting an allowed spend; always true for an auto:read caller
Responses
- 200The outcome (allow or deny), with the ledger entry that records it and its signed receipt
Response fields
check_idstringrequiredCheck id (chk_...)
outcome"allow" | "deny"requiredactionstringrequiredprincipalstringrequiredorg_idstringrequiredpositionobject | nullrequiredactingobject | nullrequiredSet when the principal acts for the position rather than holding it
reasonsobject[]requiredreasons[].[].code"no_position" | "not_occupant" | "vacant" | "not_granted" | "currency" | "over_limit" | "recipient_domain" | "unit_budget" | "policy"requiredreasons[].[].principalstringreasons[].[].authoritystringThe built-in or custom action not granted
reasons[].[].expectedstringreasons[].[].limit"per_action" | "per_day" | "budget" | "per_document"reasons[].[].limit_amountintegerreasons[].[].amountintegerreasons[].[].spent_todayintegerreasons[].[].spent_in_periodintegerreasons[].[].domainstringreasons[].[].budget_idstringreasons[].[].namestringreasons[].[].unit_idstring | nullNull for an org-wide budget
reasons[].[].policy_idstringreasons[].[].policystringThe policy name
reasons[].[].rule_idstringreasons[].[].effect"deny" | "escalate"reasons[].[].escalate_tostring | nullThe position a policy escalates to
reasons[].[].messagestring | nullpolicyobject[]requiredThe policy reasons (also in reasons)
policy[].[].code"no_position" | "not_occupant" | "vacant" | "not_granted" | "currency" | "over_limit" | "recipient_domain" | "unit_budget" | "policy"requiredpolicy[].[].principalstringpolicy[].[].authoritystringThe built-in or custom action not granted
policy[].[].expectedstringpolicy[].[].limit"per_action" | "per_day" | "budget" | "per_document"policy[].[].limit_amountintegerpolicy[].[].amountintegerpolicy[].[].spent_todayintegerpolicy[].[].spent_in_periodintegerpolicy[].[].domainstringpolicy[].[].budget_idstringpolicy[].[].namestringpolicy[].[].unit_idstring | nullNull for an org-wide budget
policy[].[].policy_idstringpolicy[].[].policystringThe policy name
policy[].[].rule_idstringpolicy[].[].effect"deny" | "escalate"policy[].[].escalate_tostring | nullThe position a policy escalates to
policy[].[].messagestring | nullescalationobject[]requiredOn deny, the positions above, nearest first, and whether each would allow it
escalation[].[].position_idstringrequiredescalation[].[].titlestringrequiredescalation[].[].occupantobject | nullrequiredescalation[].[].actingobject | nullrequiredescalation[].[].vacantbooleanrequiredescalation[].[].allowsbooleanrequiredescalate_toobject | object | nullrequiredOn deny, the first position up the line that allows it, else the org owner; null on allow
dry_runbooleanrequiredmeteredfalserequiredledger_entryobjectrequiredledger_entry.idstringrequiredledger_entry.seqintegerrequiredledger_entry.hashstringrequiredreceiptstring | nullrequiredEdDSA JWS (typ auto-receipt+jwt) over this answer, signed by Auto (did:oas:one:service:auto); null when Auto has no signing key
idempotent_replaybooleanTrue when an Idempotency-Key matched an earlier check; this is that check's answer
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/authority/check" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const idempotencyKey = '<a stable key per change>'
const result = await genesis.call('auto_checkAuthority', {
body: {
action: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_checkAuthority",
"arguments": {
"body": {
"action": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Get a ledgered authority check and whether its spend was released
GET/v1/auto/authority/checks/{check}
Scope auto:read. The check as recorded in the ledger, the spend it committed (committed, null for a deny or dry run) and its release, if any.
Parameters
checkpath · stringrequired
Responses
- 200The check
Response fields
check_idstringrequiredorg_idstringrequiredoutcome"allow" | "deny"requiredactionstringrequiredprincipalstringrequiredcallerstringrequiredThe principal that made the check
position_idstring | nullrequiredamountobject | nullrequiredrecipientsstring[]requiredreasonsobject[]requiredreasons[].[].code"no_position" | "not_occupant" | "vacant" | "not_granted" | "currency" | "over_limit" | "recipient_domain" | "unit_budget" | "policy"requiredreasons[].[].principalstringreasons[].[].authoritystringThe built-in or custom action not granted
reasons[].[].expectedstringreasons[].[].limit"per_action" | "per_day" | "budget" | "per_document"reasons[].[].limit_amountintegerreasons[].[].amountintegerreasons[].[].spent_todayintegerreasons[].[].spent_in_periodintegerreasons[].[].domainstringreasons[].[].budget_idstringreasons[].[].namestringreasons[].[].unit_idstring | nullNull for an org-wide budget
reasons[].[].policy_idstringreasons[].[].policystringThe policy name
reasons[].[].rule_idstringreasons[].[].effect"deny" | "escalate"reasons[].[].escalate_tostring | nullThe position a policy escalates to
reasons[].[].messagestring | nullescalate_toanyrequiredAs in AuthorityCheckResult
actingobject | nullrequireddry_runbooleanrequiredcommittedobject | nullrequiredThe spend the check counted; null for a deny or a dry run
created_atstring (date-time)requiredledger_entryobjectrequiredledger_entry.idstringrequiredledger_entry.seqintegerrequiredledger_entry.hashstringrequiredreleasedobject | nullrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/authority/checks/$CHECK" \
-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('auto_getAuthorityCheck', {
check: '<check>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getAuthorityCheck",
"arguments": {
"check": "<check>"
}
}
}Release the spend an allowed check committed
POST/v1/auto/authority/checks/{check}/release
Scope auto:write. Spend that was allowed but did not happen stops counting against the position's limits and against budgets. Only an allowed spend that was not a dry run can be released, once (409 otherwise); only the caller that made the check, or the org owner, may release it (403). Ledgered as authority.release with the amount as a negative cost.
Parameters
checkpath · stringrequired
Request body application/json
reasonstringRecorded in the ledger; defaults to "Released" min length 1 · max length 1000
Responses
- 200Released
Response fields
check_idstringrequiredreleasedobjectrequiredreleased.amountintegerrequiredMinor units (cents) min 0
released.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$ledger_entryobjectrequiredledger_entry.idstringrequiredledger_entry.seqintegerrequiredledger_entry.hashstringrequired
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/authority/checks/$CHECK/release" \
-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('auto_releaseAuthorityCheck', {
check: '<check>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_releaseAuthorityCheck",
"arguments": {
"check": "<check>",
"body": {}
}
}
}Verify a check receipt or an authority credential
POST/v1/auto/authority/verify
Scope auto:read. Checks a token Auto signed: an authority check receipt or an AuthorityCredential. Verifies Auto's signature, expiry and, for a credential, revocation; for a receipt of your organization, says whether its spend was released. An invalid token is a 200 with valid: false and reasons (signature, type, unknown, revoked, expired). 409 when Auto has no signing key configured.
Request body application/json
tokenstringrequiredA check receipt or an AuthorityCredential (compact JWS) min length 1 · max length 16384
Responses
- 200The verification result
Response fields
validbooleanrequiredtype"receipt" | "credential"issuerstringAuto's DID
kidstringstatus"active" | "revoked" | "expired" | nullA credential's status; null when Auto does not know it
releasedboolean | nullFor a receipt of your organization, whether its spend was released; null for another organization's receipt
claimsobjectThe signed payload
reasons"signature" | "type" | "unknown" | "revoked" | "expired"[]required
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/authority/verify" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"token": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_verifyAuthorityToken', {
body: {
token: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_verifyAuthorityToken",
"arguments": {
"body": {
"token": "string"
}
}
}
}Budgets
Get a budget with its spend in the current period
GET/v1/auto/budgets/{budget}
Scope auto:read.
Parameters
budgetpath · stringrequired
Responses
- 200The budget
Response fields
idstringrequiredBudget id (bud_...)
org_idstringrequiredunit_idstring | nullrequiredThe unit it caps (with every unit below it); null for the whole org
namestringrequireddescriptionstring | nullrequiredamountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"requiredstatus"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredspent_in_periodintegerrequiredSpend allowed in the current period (minor units)
remainingintegerrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/budgets/$BUDGET" \
-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('auto_getBudget', {
budget: '<budget>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getBudget",
"arguments": {
"budget": "<budget>"
}
}
}Archive a budget
DELETE/v1/auto/budgets/{budget}
Scope auto:write. Needs If-Match. Org owner or org admin only (403). Budgets are archived, never deleted; an archived budget no longer caps checks. Ledgered as budget.archived.
Parameters
budgetpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived budget
Response fields
idstringrequiredBudget id (bud_...)
org_idstringrequiredunit_idstring | nullrequiredThe unit it caps (with every unit below it); null for the whole org
namestringrequireddescriptionstring | nullrequiredamountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"requiredstatus"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredspent_in_periodintegerrequiredSpend allowed in the current period (minor units)
remainingintegerrequired
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/budgets/$BUDGET" \
-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('auto_archiveBudget', {
budget: '<budget>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveBudget",
"arguments": {
"budget": "<budget>"
}
}
}
}Update a budget's name, amount, period or description
PATCH/v1/auto/budgets/{budget}
Scope auto:write. Needs If-Match. At least one field other than reason. Org owner or org admin only (403); an archived budget is a 409. Ledgered as budget.updated.
Parameters
budgetpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
amountobjectamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"descriptionstringmin length 1 · max length 4000
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated budget
Response fields
idstringrequiredBudget id (bud_...)
org_idstringrequiredunit_idstring | nullrequiredThe unit it caps (with every unit below it); null for the whole org
namestringrequireddescriptionstring | nullrequiredamountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"requiredstatus"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredspent_in_periodintegerrequiredSpend allowed in the current period (minor units)
remainingintegerrequired
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/budgets/$BUDGET" \
-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('auto_updateBudget', {
budget: '<budget>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateBudget",
"arguments": {
"budget": "<budget>",
"body": {}
}
}
}List an org's budgets with their spend in the current period
GET/v1/auto/orgs/{org}/budgets
Scope auto:read. Up to 500, oldest first. Archived budgets are hidden unless include_archived=true.
Parameters
orgpath · stringrequiredunit_idquery · stringOnly budgets of this unit
include_archivedquery · boolean
Responses
- 200Budgets
Response fields
dataobject[]requireddata[].[].idstringrequiredBudget id (bud_...)
data[].[].org_idstringrequireddata[].[].unit_idstring | nullrequiredThe unit it caps (with every unit below it); null for the whole org
data[].[].namestringrequireddata[].[].descriptionstring | nullrequireddata[].[].amountobjectrequireddata[].[].amount.amountintegerrequiredMinor units (cents) min 0
data[].[].amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$data[].[].period"once" | "month" | "quarter" | "year"requireddata[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)requireddata[].[].spent_in_periodintegerrequiredSpend allowed in the current period (minor units)
data[].[].remainingintegerrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/budgets" \
-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('auto_listBudgets', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listBudgets",
"arguments": {
"org": "<org>"
}
}
}Create a spend budget for a unit or the whole org
POST/v1/auto/orgs/{org}/budgets
Scope auto:write. Caps the spend authority checks allow in a unit (and every unit below it), or in the whole org when unit_id is omitted, per period. A spend over it is denied with unit_budget. Only the org owner or an org admin (a caller who holds no position) can set budgets (403). Ledgered as budget.created.
Parameters
orgpath · stringrequired
Request body application/json
namestringrequiredmin length 1 · max length 200
unit_idstring | nullAn active unit of the same org; omit for an org-wide budget pattern
^[A-Za-z0-9_]{1,64}$amountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"requireddescriptionstring | nullmin length 1 · max length 4000
Responses
- 201Budget created
Response fields
idstringrequiredBudget id (bud_...)
org_idstringrequiredunit_idstring | nullrequiredThe unit it caps (with every unit below it); null for the whole org
namestringrequireddescriptionstring | nullrequiredamountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$period"once" | "month" | "quarter" | "year"requiredstatus"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredspent_in_periodintegerrequiredSpend allowed in the current period (minor units)
remainingintegerrequired
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/budgets" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"amount": {
"amount": 0,
"currency": "string"
},
"period": "once"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createBudget', {
org: '<org>',
body: {
name: 'string',
amount: {
amount: 0,
currency: 'string',
},
period: 'once',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createBudget",
"arguments": {
"org": "<org>",
"body": {
"name": "string",
"amount": {
"amount": 0,
"currency": "string"
},
"period": "once"
}
}
}
}Cadences
Get a cadence with its recent occurrences
GET/v1/auto/cadences/{cadence}
Scope auto:read. Includes recent, the last 10 occurrences, newest first.
Parameters
cadencepath · stringrequired
Responses
- 200The cadence
Response fields
idstringrequiredCadence id (cad_...)
org_idstringrequirednamestringrequiredkind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requiredowner_position_idstringrequiredparticipant_position_idsstring[]requiredscheduleobjectrequiredschedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerrequiredschedule.weekdayinteger | nullrequiredschedule.dayinteger | nullrequiredschedule.timestringrequiredschedule.starts_onstring (date)requiredagendastring[]requiredgoal_idsstring[]requireddescriptionstring | nullrequiredstatus"active" | "paused" | "archived"requirednext_due_atstring (date-time)requiredlast_held_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredrecentobject[]requiredThe last 10 occurrences (newest first)
recent[].[].idstringrequiredOccurrence id (occ_...)
recent[].[].cadence_idstringrequiredrecent[].[].due_atstring (date-time)requiredrecent[].[].status"held" | "skipped"requiredrecent[].[].held_atstring | null (date-time)requiredrecent[].[].notesstring | nullrequiredrecent[].[].outcomesstring[]requiredrecent[].[].attendeesstring[]requiredPosition ids
recent[].[].recorded_bystringrequiredrecent[].[].created_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/cadences/$CADENCE" \
-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('auto_getCadence', {
cadence: '<cadence>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getCadence",
"arguments": {
"cadence": "<cadence>"
}
}
}Archive a cadence
DELETE/v1/auto/cadences/{cadence}
Scope auto:write. Needs If-Match. The owner's occupant, someone acting for it, or a manager (403). Cadences are archived, never deleted. Ledgered as cadence.updated with status archived.
Parameters
cadencepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived cadence
Response fields
idstringrequiredCadence id (cad_...)
org_idstringrequirednamestringrequiredkind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requiredowner_position_idstringrequiredparticipant_position_idsstring[]requiredscheduleobjectrequiredschedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerrequiredschedule.weekdayinteger | nullrequiredschedule.dayinteger | nullrequiredschedule.timestringrequiredschedule.starts_onstring (date)requiredagendastring[]requiredgoal_idsstring[]requireddescriptionstring | nullrequiredstatus"active" | "paused" | "archived"requirednext_due_atstring (date-time)requiredlast_held_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/cadences/$CADENCE" \
-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('auto_archiveCadence', {
cadence: '<cadence>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveCadence",
"arguments": {
"cadence": "<cadence>"
}
}
}
}Update, pause or resume a cadence
PATCH/v1/auto/cadences/{cadence}
Scope auto:write. Needs If-Match. At least one field other than reason. A new schedule, or resuming a paused cadence, restarts the clock from now. The owner's occupant, someone acting for it, or a manager (403); a new owner must be one the caller also runs. An archived cadence is a 409. Ledgered as cadence.updated.
Parameters
cadencepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
kind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"owner_position_idstringpattern
^[A-Za-z0-9_]{1,64}$participant_position_idsarray | nullscheduleobjectAll times UTC.
weekday(1 = Monday ... 7 = Sunday) is required for weekly and only for weekly;day(1-28) is required for monthly and quarterly and only for them.schedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerEvery n periods min 1 · max 12 · default
1schedule.weekdayinteger | nullmin 1 · max 7
schedule.dayinteger | nullmin 1 · max 28
schedule.timestringHH:MM UTC default
"15:00"· pattern^([01][0-9]|2[0-3]):[0-5][0-9]$schedule.starts_onstring (date)Defaults to today
agendastring[]goal_idsarray | nulldescriptionstringmin length 1 · max length 4000
status"active" | "paused" | "archived"reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated cadence
Response fields
idstringrequiredCadence id (cad_...)
org_idstringrequirednamestringrequiredkind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requiredowner_position_idstringrequiredparticipant_position_idsstring[]requiredscheduleobjectrequiredschedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerrequiredschedule.weekdayinteger | nullrequiredschedule.dayinteger | nullrequiredschedule.timestringrequiredschedule.starts_onstring (date)requiredagendastring[]requiredgoal_idsstring[]requireddescriptionstring | nullrequiredstatus"active" | "paused" | "archived"requirednext_due_atstring (date-time)requiredlast_held_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/cadences/$CADENCE" \
-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('auto_updateCadence', {
cadence: '<cadence>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateCadence",
"arguments": {
"cadence": "<cadence>",
"body": {}
}
}
}List an org's cadences (meetings, reviews, reports)
GET/v1/auto/orgs/{org}/cadences
Scope auto:read. Up to 500, soonest due first. Archived cadences are hidden unless include_archived=true.
Parameters
orgpath · stringrequiredposition_idquery · stringOnly cadences this position owns or takes part in
include_archivedquery · boolean
Responses
- 200Cadences
Response fields
dataobject[]requireddata[].[].idstringrequiredCadence id (cad_...)
data[].[].org_idstringrequireddata[].[].namestringrequireddata[].[].kind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requireddata[].[].owner_position_idstringrequireddata[].[].participant_position_idsstring[]requireddata[].[].scheduleobjectrequireddata[].[].schedule.freq"daily" | "weekly" | "monthly" | "quarterly"requireddata[].[].schedule.intervalintegerrequireddata[].[].schedule.weekdayinteger | nullrequireddata[].[].schedule.dayinteger | nullrequireddata[].[].schedule.timestringrequireddata[].[].schedule.starts_onstring (date)requireddata[].[].agendastring[]requireddata[].[].goal_idsstring[]requireddata[].[].descriptionstring | nullrequireddata[].[].status"active" | "paused" | "archived"requireddata[].[].next_due_atstring (date-time)requireddata[].[].last_held_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/cadences" \
-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('auto_listCadences', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listCadences",
"arguments": {
"org": "<org>"
}
}
}Create a cadence the org keeps
POST/v1/auto/orgs/{org}/cadences
Scope auto:write. A recurring meeting, review, report, check-in, planning session or retro, owned by a position. Auto keeps the schedule (UTC) and the record of each occurrence; the agents and people who hold it read what is due (listDueCadences). The owner position's occupant, someone acting for it, or anyone who manages it may create it (403). Participants and goals must be in the same org. Ledgered as cadence.created.
Parameters
orgpath · stringrequired
Request body application/json
namestringrequiredmin length 1 · max length 200
kind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requiredowner_position_idstringrequiredThe active position that runs it pattern
^[A-Za-z0-9_]{1,64}$participant_position_idsarray | nullscheduleobjectrequiredAll times UTC.
weekday(1 = Monday ... 7 = Sunday) is required for weekly and only for weekly;day(1-28) is required for monthly and quarterly and only for them.schedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerEvery n periods min 1 · max 12 · default
1schedule.weekdayinteger | nullmin 1 · max 7
schedule.dayinteger | nullmin 1 · max 28
schedule.timestringHH:MM UTC default
"15:00"· pattern^([01][0-9]|2[0-3]):[0-5][0-9]$schedule.starts_onstring (date)Defaults to today
agendastring[]goal_idsarray | nulldescriptionstring | nullmin length 1 · max length 4000
Responses
- 201Cadence created
Response fields
idstringrequiredCadence id (cad_...)
org_idstringrequirednamestringrequiredkind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requiredowner_position_idstringrequiredparticipant_position_idsstring[]requiredscheduleobjectrequiredschedule.freq"daily" | "weekly" | "monthly" | "quarterly"requiredschedule.intervalintegerrequiredschedule.weekdayinteger | nullrequiredschedule.dayinteger | nullrequiredschedule.timestringrequiredschedule.starts_onstring (date)requiredagendastring[]requiredgoal_idsstring[]requireddescriptionstring | nullrequiredstatus"active" | "paused" | "archived"requirednext_due_atstring (date-time)requiredlast_held_atstring | null (date-time)requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/cadences" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"kind": "meeting",
"owner_position_id": "string",
"schedule": {
"freq": "daily"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createCadence', {
org: '<org>',
body: {
name: 'string',
kind: 'meeting',
owner_position_id: 'string',
schedule: {
freq: 'daily',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createCadence",
"arguments": {
"org": "<org>",
"body": {
"name": "string",
"kind": "meeting",
"owner_position_id": "string",
"schedule": {
"freq": "daily"
}
}
}
}
}List the cadences due within a window
GET/v1/auto/orgs/{org}/cadences/due
Scope auto:read. Active cadences whose next occurrence falls within within_hours (default 24), overdue first, with who runs each (the owner position, its occupant and anyone acting for it).
Parameters
orgpath · stringrequiredwithin_hoursquery · integer
Responses
- 200Due cadences
Response fields
org_idstringrequiredas_ofstring (date-time)requiredwithin_hoursintegerrequireddataobject[]requireddata[].[].idstringrequiredCadence id (cad_...)
data[].[].org_idstringrequireddata[].[].namestringrequireddata[].[].kind"meeting" | "review" | "report" | "check_in" | "planning" | "retro"requireddata[].[].owner_position_idstringrequireddata[].[].participant_position_idsstring[]requireddata[].[].scheduleobjectrequireddata[].[].schedule.freq"daily" | "weekly" | "monthly" | "quarterly"requireddata[].[].schedule.intervalintegerrequireddata[].[].schedule.weekdayinteger | nullrequireddata[].[].schedule.dayinteger | nullrequireddata[].[].schedule.timestringrequireddata[].[].schedule.starts_onstring (date)requireddata[].[].agendastring[]requireddata[].[].goal_idsstring[]requireddata[].[].descriptionstring | nullrequireddata[].[].status"active" | "paused" | "archived"requireddata[].[].next_due_atstring (date-time)requireddata[].[].last_held_atstring | null (date-time)requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)requireddata[].[].overduebooleanrequireddata[].[].ownerobjectrequireddata[].[].owner.position_idstringrequireddata[].[].owner.titlestringrequireddata[].[].owner.occupantobject | nullrequireddata[].[].owner.actingobject | nullrequired
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/cadences/due" \
-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('auto_listDueCadences', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listDueCadences",
"arguments": {
"org": "<org>"
}
}
}Occurrences
List a cadence's recorded occurrences
GET/v1/auto/cadences/{cadence}/occurrences
Scope auto:read. Newest first, up to limit (default 50).
Parameters
cadencepath · stringrequiredlimitquery · integer
Responses
- 200Occurrences
Response fields
dataobject[]requireddata[].[].idstringrequiredOccurrence id (occ_...)
data[].[].cadence_idstringrequireddata[].[].due_atstring (date-time)requireddata[].[].status"held" | "skipped"requireddata[].[].held_atstring | null (date-time)requireddata[].[].notesstring | nullrequireddata[].[].outcomesstring[]requireddata[].[].attendeesstring[]requiredPosition ids
data[].[].recorded_bystringrequireddata[].[].created_atstring (date-time)required
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/cadences/$CADENCE/occurrences" \
-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('auto_listCadenceOccurrences', {
cadence: '<cadence>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listCadenceOccurrences",
"arguments": {
"cadence": "<cadence>"
}
}
}Record that an occurrence was held or skipped
POST/v1/auto/cadences/{cadence}/occurrences
Scope auto:write. Records the occurrence due at due_at (default: the cadence's next due time) and moves the cadence to its next slot. A participant position's occupant (or someone acting for it), the owner, or a manager may record it (403). The cadence must be active, an occurrence already recorded for that time is a 409, and due_at more than a day ahead is a 422. Ledgered as cadence.held or cadence.skipped.
Parameters
cadencepath · stringrequired
Request body application/json
status"held" | "skipped"requireddue_atstring (date-time)ISO 8601 with a zone; defaults to the cadence's next due time
held_atstring (date-time)ISO 8601 with a zone; defaults to now when held
notesstring | nullmin length 1 · max length 20000
outcomesstring[]attendeesarray | nullActive position ids of the org
Responses
- 201Recorded, with the cadence's next due time
Response fields
occurrenceobjectrequiredoccurrence.idstringrequiredOccurrence id (occ_...)
occurrence.cadence_idstringrequiredoccurrence.due_atstring (date-time)requiredoccurrence.status"held" | "skipped"requiredoccurrence.held_atstring | null (date-time)requiredoccurrence.notesstring | nullrequiredoccurrence.outcomesstring[]requiredoccurrence.attendeesstring[]requiredPosition ids
occurrence.recorded_bystringrequiredoccurrence.created_atstring (date-time)requirednext_due_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/cadences/$CADENCE/occurrences" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"status": "held"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_recordCadenceOccurrence', {
cadence: '<cadence>',
body: {
status: 'held',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_recordCadenceOccurrence",
"arguments": {
"cadence": "<cadence>",
"body": {
"status": "held"
}
}
}
}Companies
List your companies with their live state and one number
GET/v1/auto/companies
Scope auto:read. Needs Activity (AUTO_ACTIVITY); otherwise a 404. Each active org as a company: its name, whether an agent is working now (live: working, idle with agents but none working, none without agents), one key number (revenue today when the company has a revenue source, else its first bound or measured metric), how many positions are filled and when it last had activity. Most recent activity first; at most 100 companies, with no paging. Without company isolation any auto:read caller in the tenant sees every company and its numbers; with it on, an agent below the top of a company sees only its own companies. A delegated identity (One acting for a person) is refused with 403 person_only, as on all four company and activity reads.
Parameters
tzquery · stringIANA time zone for "today", e.g.
America/Chicago(default UTC)
Responses
- 200Companies
Response fields
object"list"requireddataobject[]requireddata[].[].idstringrequiredThe Auto org id (aorg_...)
data[].[].namestringrequireddata[].[].nicknamestring | nullrequireddata[].[].live"working" | "idle" | "none"requiredworking: an agent is working now; idle: agents, none working; none: no agents
data[].[].key_numberobject | nullrequireddata[].[].agentsintegerrequiredFilled positions
data[].[].last_activity_atstring | null (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/companies" \
-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('auto_listCompanies'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listCompanies",
"arguments": {}
}
}Get a company's screen
GET/v1/auto/companies/{org}
Scope auto:read. Needs Activity (AUTO_ACTIVITY). The company's agents in chart order with each one's live state and current task, up to three numbers (bound metrics first, then today's revenue, signups and cash in), the company chat thread and its 20 latest activity rows. Each agent's principal and occupant are shown, as on the org chart. Read-only; nothing here is stored. A company you may not read is a 404.
Parameters
orgpath · stringrequiredtzquery · stringIANA time zone for "today", e.g.
America/Chicago(default UTC)
Responses
- 200The company
Response fields
object"company"requiredidstringrequirednamestringrequirednicknamestring | nullrequiredstatusstringrequiredchatobjectrequiredchat.threadstringrequiredThe company chat thread,
auto:<org id>agentsobject[]requiredagents[].[].position_idstringrequiredagents[].[].titlestringrequiredagents[].[].reports_tostring | nullrequiredagents[].[].occupantobject | nullrequiredagents[].[].actingbooleanrequiredSomeone is acting for the position
agents[].[].principalstringrequiredagents[].[].statestringrequiredThe last reported state (
working,thinking,waiting, ...);idlewhen none was reported in the last 2 minutesagents[].[].taskstring | nullrequiredWhat the agent last said it is doing
agents[].[].sincestring | null (date-time)requiredagents[].[].workingbooleanrequirednumbersobject[]requirednumbers[].[].keystringrequiredThe metric key, or
revenue_today,new_signups,cash_innumbers[].[].labelstringrequirednumbers[].[].valuenumber | nullrequirednumbers[].[].unitstringrequiredminorfor money (withcurrency),count, or the metric's own unitnumbers[].[].currencystring | nullnumbers[].[].targetnumbernumbers[].[].attainmentnumber | nullnumbers[].[].boundbooleanrequiredTrue when the number is read live from Activity
activityobjectrequiredactivity.object"list"requiredactivity.dataobject[]requiredactivity.data[].[].object"activity_event"requiredactivity.data[].[].idstringrequiredRow id
activity.data[].[].cursorstringrequiredPosition in the stream; newer rows have larger cursors
activity.data[].[].company_idstring | nullrequiredThe Auto org (
aorg_...) the row belongs to, or null for the whole tenantactivity.data[].[].sourcestringrequiredWhere the row came from, e.g.
auto,garden,stripe,genesis,appactivity.data[].[].kindstringrequiredDotted snake_case, e.g.
money.revenue,customer.signup,job.done,gateway.callsactivity.data[].[].titlestringrequiredOne line; a rollup's count is already filled in
activity.data[].[].subtitlestring | nullrequiredactivity.data[].[].actorstring | nullrequiredWho did it (a principal)
activity.data[].[].actor_kindstring | nullrequiredagent,person,serviceorexternalactivity.data[].[].amountobject | nullrequiredactivity.data[].[].quantitynumber | nullrequiredA rollup's count or another quantity
activity.data[].[].linkstring | nullrequiredAn app path (
/...) or an https link to the vendor dashboard the row came fromactivity.data[].[].refstring | nullrequiredThe source object's id
activity.data[].[].occurred_atstring (date-time)requiredactivity.data[].[].received_atstring (date-time)requiredactivity.has_morebooleanrequiredMore older rows exist
activity.next_cursorstring | nullrequiredPass as
beforefor the next (older) pageactivity.latest_cursorstring | nullrequiredThe newest row's cursor; pass as
afterto read only what is new
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/companies/$ORG" \
-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('auto_getCompany', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getCompany",
"arguments": {
"org": "<org>"
}
}
}Credentials
Get an authority credential with its signed claims
GET/v1/auto/credentials/{credential}
Scope auto:read. The credential record and the claims Auto signed (not the token).
Parameters
credentialpath · stringrequired
Responses
- 200The credential
Response fields
idstringrequiredCredential id (cred_...); the JWT
jtiorg_idstringrequiredposition_idstringrequiredprincipalstringrequiredThe holder's gateway principal
subjectstringrequiredactingbooleanrequiredIssued to someone acting for the position
issued_bystringrequiredissued_atstring (date-time)requiredexpires_atstring (date-time)requiredrevoked_atstring | null (date-time)requiredrevoke_reasonstring | nullrequiredstatus"active" | "revoked" | "expired"requiredclaimsobjectrequiredThe signed JWT claims (iss, sub, aud, iat, nbf, exp, jti, vc)
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/credentials/$CREDENTIAL" \
-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('auto_getCredential', {
credential: '<credential>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getCredential",
"arguments": {
"credential": "<credential>"
}
}
}List an org's authority credentials
GET/v1/auto/orgs/{org}/credentials
Scope auto:read. Up to 500, newest first, with their status (active, revoked or expired). Tokens are never listed.
Parameters
orgpath · stringrequiredposition_idquery · stringOnly credentials for this position
Responses
- 200Credentials
Response fields
dataobject[]requireddata[].[].idstringrequiredCredential id (cred_...); the JWT
jtidata[].[].org_idstringrequireddata[].[].position_idstringrequireddata[].[].principalstringrequiredThe holder's gateway principal
data[].[].subjectstringrequireddata[].[].actingbooleanrequiredIssued to someone acting for the position
data[].[].issued_bystringrequireddata[].[].issued_atstring (date-time)requireddata[].[].expires_atstring (date-time)requireddata[].[].revoked_atstring | null (date-time)requireddata[].[].revoke_reasonstring | nullrequireddata[].[].status"active" | "revoked" | "expired"required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/credentials" \
-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('auto_listCredentials', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listCredentials",
"arguments": {
"org": "<org>"
}
}
}Issue a signed AuthorityCredential for a position's holder
POST/v1/auto/positions/{position}/credentials
Scope auto:write. A W3C verifiable credential (JWT, EdDSA), issued by Auto (did:oas:one:service:auto), that states the holder's position, reporting line, org and delegated authority, so anyone can verify it. The occupant, or the person acting for the position, asks for their own; a manager with hire authority may issue it for them (403). The holder is the occupant, or the acting holder when the caller acts or the position is vacant; a vacant position with nobody acting is a 409. subject_did (an OpenAgentID DID) defaults to urn:one:principal:<principal>. The response is the only time token is returned. 409 when Auto has no signing key configured. Ledgered as credential.issued.
Parameters
positionpath · stringrequired
Request body application/json
ttl_hoursintegermin 1 · max 720 · default
24subject_didstring | nullAn OpenAgentID DID such as did:oas:one:agent:...; defaults to urn:one:principal:<principal> max length 512 · pattern
^did:(?:oas:[a-z0-9][a-z0-9-]{0,63}|l1fe):(?:hmr|mhr|ao|enr|agent|tool|skill|workflow|model|dataset|service|agent:instance):[A-Za-z0-9._-]+$audiencestring | nullSet as the JWT
audmin length 1 · max length 256
Responses
- 201Issued; keep
token, it is not shown againResponse fields
credentialobjectrequiredcredential.idstringrequiredCredential id (cred_...); the JWT
jticredential.org_idstringrequiredcredential.position_idstringrequiredcredential.principalstringrequiredThe holder's gateway principal
credential.subjectstringrequiredcredential.actingbooleanrequiredIssued to someone acting for the position
credential.issued_bystringrequiredcredential.issued_atstring (date-time)requiredcredential.expires_atstring (date-time)requiredcredential.revoked_atstring | null (date-time)requiredcredential.revoke_reasonstring | nullrequiredcredential.status"active" | "revoked" | "expired"requiredtokenstringrequiredThe signed credential (compact JWS, typ vc+jwt); returned only here
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/positions/$POSITION/credentials" \
-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('auto_issuePositionCredential', {
position: '<position>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_issuePositionCredential",
"arguments": {
"position": "<position>",
"body": {}
}
}
}Revoke
Revoke an authority credential
POST/v1/auto/credentials/{credential}/revoke
Scope auto:write. Its holder may revoke their own; otherwise it needs hire authority over the position (403). Already revoked is a 409. Verifiers see revoked from then on. Ledgered as credential.revoked.
Parameters
credentialpath · stringrequired
Request body application/json
reasonstringRecorded in the ledger; defaults to "Revoked" min length 1 · max length 1000
Responses
- 200The revoked credential
Response fields
idstringrequiredCredential id (cred_...); the JWT
jtiorg_idstringrequiredposition_idstringrequiredprincipalstringrequiredThe holder's gateway principal
subjectstringrequiredactingbooleanrequiredIssued to someone acting for the position
issued_bystringrequiredissued_atstring (date-time)requiredexpires_atstring (date-time)requiredrevoked_atstring | null (date-time)requiredrevoke_reasonstring | nullrequiredstatus"active" | "revoked" | "expired"required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/credentials/$CREDENTIAL/revoke" \
-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('auto_revokeCredential', {
credential: '<credential>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_revokeCredential",
"arguments": {
"credential": "<credential>",
"body": {}
}
}
}
}Status
An authority credential's public status
GET/v1/auto/credentials/{credential}/status
Public, no credential: the credentialStatus URL inside every AuthorityCredential, for verifiers outside your organization. No tenant data. Cached for 30 seconds.
Parameters
credentialpath · stringrequiredCredential id
Responses
- 200The credential's status
Response fields
idstringrequiredissuerstring | nullrequiredstatus"active" | "revoked" | "expired"requiredexpires_atstring (date-time)requiredrevoked_atstring | null (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/credentials/$CREDENTIAL/status"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_getCredentialStatus', {
credential: '<credential>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_getCredentialStatus",
"arguments": {
"credential": "<credential>"
}
}
}
}Goals
Get a goal
GET/v1/auto/goals/{goal}
Scope auto:read.
Parameters
goalpath · stringrequired
Responses
- 200The goal
Response fields
idstringrequiredGoal id (goal_...)
org_idstringrequiredposition_idstringrequiredmandate_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredmetricsobject[]requiredmetrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)requiredstatus"active" | "achieved" | "missed" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/goals/$GOAL" \
-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('auto_getGoal', {
goal: '<goal>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getGoal",
"arguments": {
"goal": "<goal>"
}
}
}Archive a goal
DELETE/v1/auto/goals/{goal}
Scope auto:write. Needs If-Match. Sets the status to archived; the response is the archived goal. Ledgered as goal.updated.
Parameters
goalpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived goal
Response fields
idstringrequiredGoal id (goal_...)
org_idstringrequiredposition_idstringrequiredmandate_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredmetricsobject[]requiredmetrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)requiredstatus"active" | "achieved" | "missed" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/goals/$GOAL" \
-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('auto_archiveGoal', {
goal: '<goal>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveGoal",
"arguments": {
"goal": "<goal>"
}
}
}
}Update a goal or move its status
PATCH/v1/auto/goals/{goal}
Scope auto:write. Needs If-Match. At least one field other than reason; status is active, achieved, missed or archived. An archived goal is a 409. Ledgered as goal.updated.
Parameters
goalpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
titlestringmin length 1 · max length 300
descriptionstringmin length 1 · max length 4000
position_idstringpattern
^[A-Za-z0-9_]{1,64}$mandate_idstring | nullpattern
^[A-Za-z0-9_]{1,64}$metricsobject[]metrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)status"active" | "achieved" | "missed" | "archived"reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated goal
Response fields
idstringrequiredGoal id (goal_...)
org_idstringrequiredposition_idstringrequiredmandate_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredmetricsobject[]requiredmetrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)requiredstatus"active" | "achieved" | "missed" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/goals/$GOAL" \
-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('auto_updateGoal', {
goal: '<goal>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateGoal",
"arguments": {
"goal": "<goal>",
"body": {}
}
}
}List an org's goals
GET/v1/auto/orgs/{org}/goals
Scope auto:read. Goals that are not archived, oldest first, up to 1000.
Parameters
orgpath · stringrequiredposition_idquery · stringOnly goals owned by this position
Responses
- 200Goals
Response fields
dataobject[]requireddata[].[].idstringrequiredGoal id (goal_...)
data[].[].org_idstringrequireddata[].[].position_idstringrequireddata[].[].mandate_idstring | nullrequireddata[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].metricsobject[]requireddata[].[].metrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$data[].[].metrics[].[].namestringrequiredmin length 1 · max length 200
data[].[].metrics[].[].targetnumberrequireddata[].[].metrics[].[].unitstringrequiredmin length 1 · max length 32
data[].[].metrics[].[].direction"up" | "down"requireddata[].[].due_onstring | null (date)requireddata[].[].status"active" | "achieved" | "missed" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/goals" \
-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('auto_listGoals', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listGoals",
"arguments": {
"org": "<org>"
}
}
}Set a goal with metrics for a position
POST/v1/auto/orgs/{org}/goals
Scope auto:write. The goal belongs to an active position of the org and may point at one of its mandates. Set by whoever manages that position, or by its occupant (403 otherwise). Ledgered as goal.created.
Parameters
orgpath · stringrequired
Request body application/json
titlestringrequiredmin length 1 · max length 300
descriptionstringmin length 1 · max length 4000
position_idstringrequiredThe active position that owns the goal pattern
^[A-Za-z0-9_]{1,64}$mandate_idstring | nullA mandate of the same org pattern
^[A-Za-z0-9_]{1,64}$metricsobject[]requiredmetrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)A date like 2026-12-31
Responses
- 201Goal created
Response fields
idstringrequiredGoal id (goal_...)
org_idstringrequiredposition_idstringrequiredmandate_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredmetricsobject[]requiredmetrics[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$metrics[].[].namestringrequiredmin length 1 · max length 200
metrics[].[].targetnumberrequiredmetrics[].[].unitstringrequiredmin length 1 · max length 32
metrics[].[].direction"up" | "down"requireddue_onstring | null (date)requiredstatus"active" | "achieved" | "missed" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/goals" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string",
"position_id": "string",
"metrics": [
{
"key": "string",
"name": "string",
"target": 1,
"unit": "string",
"direction": "up"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createGoal', {
org: '<org>',
body: {
title: 'string',
position_id: 'string',
metrics: [
{
key: 'string',
name: 'string',
target: 1,
unit: 'string',
direction: 'up',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createGoal",
"arguments": {
"org": "<org>",
"body": {
"title": "string",
"position_id": "string",
"metrics": [
{
"key": "string",
"name": "string",
"target": 1,
"unit": "string",
"direction": "up"
}
]
}
}
}
}Measurements
Record a measurement of one of a goal's metrics
POST/v1/auto/goals/{goal}/measurements
Scope auto:write. key must be one of the goal's metric keys (422 otherwise). Returns the measurement with its attainment toward the metric's target. Ledgered as goal.measured.
Parameters
goalpath · stringrequired
Request body application/json
keystringrequiredOne of the goal's metric keys min length 1 · max length 64
valuenumberrequirednotestringmin length 1 · max length 2000
measured_atstring (date-time)ISO 8601 with a zone; defaults to now
Responses
- 201The measurement
Response fields
idstringrequiredMeasurement id (msr_...)
goal_idstringrequiredkeystringrequiredvaluenumberrequirednotestring | nullrequiredrecorded_bystringrequiredmeasured_atstring (date-time)requiredattainmentnumberrequiredHow far the value is toward the metric's target min 0 · max 1
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/goals/$GOAL/measurements" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"key": "string",
"value": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_recordGoalMeasurement', {
goal: '<goal>',
body: {
key: 'string',
value: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_recordGoalMeasurement",
"arguments": {
"goal": "<goal>",
"body": {
"key": "string",
"value": 1
}
}
}
}Mandates
Get a mandate
GET/v1/auto/mandates/{mandate}
Scope auto:read.
Parameters
mandatepath · stringrequired
Responses
- 200The mandate
Response fields
idstringrequiredorg_idstringrequiredoutcomestringrequiredbudgetobjectrequiredbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectrequiredescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]requiredkpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active" | "paused" | "completed" | "archived"requiredposition_idstring | nullrequiredThe position that holds the mandate; its spend authority bounds the mandate's limits
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/mandates/$MANDATE" \
-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('auto_getMandate', {
mandate: '<mandate>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getMandate",
"arguments": {
"mandate": "<mandate>"
}
}
}Archive a mandate
DELETE/v1/auto/mandates/{mandate}
Scope auto:write. Needs If-Match. Sets the status to archived (terminal); the response is the archived mandate.
Parameters
mandatepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived mandate
Response fields
idstringrequiredorg_idstringrequiredoutcomestringrequiredbudgetobjectrequiredbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectrequiredescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]requiredkpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active" | "paused" | "completed" | "archived"requiredposition_idstring | nullrequiredThe position that holds the mandate; its spend authority bounds the mandate's limits
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/mandates/$MANDATE" \
-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('auto_archiveMandate', {
mandate: '<mandate>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveMandate",
"arguments": {
"mandate": "<mandate>"
}
}
}
}Update a mandate or move its status
PATCH/v1/auto/mandates/{mandate}
Scope auto:write. Needs If-Match. Status moves: draft to active|archived; active to paused|completed|archived; paused to active|completed|archived; completed to archived; archived is terminal. decision_limits.per_action cannot exceed budget.total, and changing the budget currency requires new decision_limits.
Parameters
mandatepath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
outcomestringmin length 1 · max length 4000
budgetobjectbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]kpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active" | "paused" | "completed" | "archived"position_idstring | nullThe holding position, or null to detach; limits must fit its spend authority (422) pattern
^[A-Za-z0-9_]{1,64}$reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated mandate
Response fields
idstringrequiredorg_idstringrequiredoutcomestringrequiredbudgetobjectrequiredbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectrequiredescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]requiredkpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active" | "paused" | "completed" | "archived"requiredposition_idstring | nullrequiredThe position that holds the mandate; its spend authority bounds the mandate's limits
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/mandates/$MANDATE" \
-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('auto_updateMandate', {
mandate: '<mandate>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateMandate",
"arguments": {
"mandate": "<mandate>",
"body": {}
}
}
}List an org's mandates
GET/v1/auto/orgs/{org}/mandates
Scope auto:read. Up to 500, oldest first.
Parameters
orgpath · stringrequired
Responses
- 200Mandates
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].org_idstringrequireddata[].[].outcomestringrequireddata[].[].budgetobjectrequireddata[].[].budget.totalobjectrequireddata[].[].budget.total.amountintegerrequiredMinor units (cents) min 0
data[].[].budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$data[].[].budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedata[].[].decision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
data[].[].decision_limits.per_actionobjectrequireddata[].[].decision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
data[].[].decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$data[].[].decision_limits.per_dayobject | nulldata[].[].escalationobjectrequireddata[].[].escalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
data[].[].escalation.rulesstring[]data[].[].escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
data[].[].kpisobject[]requireddata[].[].kpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$data[].[].kpis[].[].namestringrequiredmin length 1 · max length 200
data[].[].kpis[].[].targetnumberrequireddata[].[].kpis[].[].unitstringrequiredmin length 1 · max length 32
data[].[].kpis[].[].direction"up" | "down"requireddata[].[].status"draft" | "active" | "paused" | "completed" | "archived"requireddata[].[].position_idstring | nullrequiredThe position that holds the mandate; its spend authority bounds the mandate's limits
data[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/mandates" \
-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('auto_listMandates', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listMandates",
"arguments": {
"org": "<org>"
}
}
}Create a mandate
POST/v1/auto/orgs/{org}/mandates
Scope auto:write. A mandate is an outcome with a budget, per-action and optional per-day decision limits, an approver and KPIs. Starts as draft unless status is active.
Parameters
orgpath · stringrequired
Request body application/json
outcomestringrequiredmin length 1 · max length 4000
budgetobjectrequiredbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectrequiredescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]kpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active"Defaults to draft
position_idstring | nullAn active position of the org that holds the mandate; the budget and decision limits must fit its spend authority (422) pattern
^[A-Za-z0-9_]{1,64}$
Responses
- 201Mandate created
Response fields
idstringrequiredorg_idstringrequiredoutcomestringrequiredbudgetobjectrequiredbudget.totalobjectrequiredbudget.total.amountintegerrequiredMinor units (cents) min 0
budget.total.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$budget.period"once" | "month" | "quarter" | "year"requiredUTC calendar period;
oncecovers the mandate's lifedecision_limitsobjectrequiredMust use the budget currency; per_action cannot exceed budget.total.
decision_limits.per_actionobjectrequireddecision_limits.per_action.amountintegerrequiredMinor units (cents) min 0
decision_limits.per_action.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$decision_limits.per_dayobject | nullescalationobjectrequiredescalation.approverstringrequiredThe principal who decides over-limit approvals min length 1 · max length 256
escalation.rulesstring[]escalation.timeout_hoursintegerHours before a pending approval expires (default 24) min 1 · max 720
kpisobject[]requiredkpis[].[].keystringrequiredpattern
^[a-z][a-z0-9_]{0,63}$kpis[].[].namestringrequiredmin length 1 · max length 200
kpis[].[].targetnumberrequiredkpis[].[].unitstringrequiredmin length 1 · max length 32
kpis[].[].direction"up" | "down"requiredstatus"draft" | "active" | "paused" | "completed" | "archived"requiredposition_idstring | nullrequiredThe position that holds the mandate; its spend authority bounds the mandate's limits
versionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/mandates" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"outcome": "string",
"budget": {
"total": {
"amount": 0,
"currency": "string"
},
"period": "once"
},
"decision_limits": {
"per_action": {
"amount": 0,
"currency": "string"
}
},
"escalation": {
"approver": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createMandate', {
org: '<org>',
body: {
outcome: 'string',
budget: {
total: {
amount: 0,
currency: 'string',
},
period: 'once',
},
decision_limits: {
per_action: {
amount: 0,
currency: 'string',
},
},
escalation: {
approver: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createMandate",
"arguments": {
"org": "<org>",
"body": {
"outcome": "string",
"budget": {
"total": {
"amount": 0,
"currency": "string"
},
"period": "once"
},
"decision_limits": {
"per_action": {
"amount": 0,
"currency": "string"
}
},
"escalation": {
"approver": "string"
}
}
}
}
}Actions
Propose a spend under a mandate
POST/v1/auto/mandates/{mandate}/actions
Scope auto:write. The mandate must be active and the amount in its budget currency. Within every limit (per action, per day, period budget) the spend is recorded as a decision at once (201, outcome approved). Over any limit it waits as a pending approval for the mandate's approver (202, outcome pending_approval), with every broken limit in reasons.
Parameters
mandatepath · stringrequired
Request body application/json
summarystringrequiredmin length 1 · max length 500
reasoningstringrequiredmin length 1 · max length 20000
inputsobjectFree-form evidence, up to 64 KiB serialized
amountobjectrequiredamount.amountintegerrequiredMinor units (cents) min 0
amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$
Responses
- 201Within limits; recorded as a decision
Response fields
outcome"approved"requireddecisionobjectrequireddecision.seqintegerrequireddecision.idstringrequireddecision.org_idstringrequireddecision.mandate_idstring | nullrequireddecision.kind"org.created" | "org.updated" | "org.archived" | "mandate.created" | "mandate.updated" | "mandate.archived" | "decision" | "approval.requested" | "approval.approved" | "approval.denied" | "approval.expired" | "unit.created" | "unit.updated" | "unit.archived" | "position.created" | "position.updated" | "position.archived" | "position.filled" | "position.vacated" | "goal.created" | "goal.updated" | "goal.measured" | "authority.check" | "authority.release" | "budget.created" | "budget.updated" | "budget.archived" | "policy.created" | "policy.updated" | "policy.archived" | "cadence.created" | "cadence.updated" | "cadence.held" | "cadence.skipped" | "position.succession" | "position.acting" | "position.acting_ended" | "credential.issued" | "credential.revoked"requireddecision.actorstringrequireddecision.actor_kindstringrequireddecision.summarystringrequireddecision.reasoningstringrequireddecision.inputsanyrequiredFree-form; shape depends on kind
decision.costobject | nullrequiredWhat the entry counted against limits and budgets; an
authority.releasegives spend back with a negative amountdecision.request_idstringrequireddecision.created_atstring (date-time)requireddecision.prev_hashstringrequireddecision.hashstringrequired
- 202Over a limit; waiting for the approver
Response fields
outcome"pending_approval"requiredapprovalobjectrequiredapproval.idstringrequiredapproval.org_idstringrequiredapproval.mandate_idstringrequiredapproval.summarystringrequiredapproval.reasoningstringrequiredapproval.inputsobjectrequiredapproval.amountobjectrequiredapproval.amount.amountintegerrequiredMinor units (cents) min 0
approval.amount.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$approval.reasonsobject[]requiredapproval.reasons[].[].limit"per_action" | "per_day" | "budget"requiredapproval.reasons[].[].limit_amountintegerrequiredapproval.reasons[].[].amountintegerrequiredapproval.reasons[].[].spent_todayintegerPresent for per_day
approval.reasons[].[].spent_in_periodintegerPresent for budget
approval.approverstringrequiredapproval.status"pending" | "approved" | "denied" | "expired"requiredapproval.requested_bystringrequiredapproval.decided_bystring | nullrequiredapproval.notestring | nullrequiredapproval.expires_atstring (date-time)requiredapproval.decided_atstring | null (date-time)requiredapproval.created_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/mandates/$MANDATE/actions" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"summary": "string",
"reasoning": "string",
"amount": {
"amount": 0,
"currency": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_proposeAction', {
mandate: '<mandate>',
body: {
summary: 'string',
reasoning: 'string',
amount: {
amount: 0,
currency: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_proposeAction",
"arguments": {
"mandate": "<mandate>",
"body": {
"summary": "string",
"reasoning": "string",
"amount": {
"amount": 0,
"currency": "string"
}
}
}
}
}Mcp
Send one MCP JSON-RPC message to Auto
POST/v1/auto/mcp
Auto's own MCP server (streamable HTTP, stateless): one JSON-RPC 2.0 message per request, one JSON-RPC response back. Methods: initialize, ping, tools/list, tools/call, resources/list and resources/read (the approval card, ui://auto/approval-card.html). Notifications (no id, e.g. notifications/initialized) answer 202 with no body. Batches (a JSON array) are refused with 400 (Auto's code batch_unsupported; the gateway answers it as BATCH_UNSUPPORTED). Scope auto:read to reach the endpoint; tools/list lists only the tools your scopes allow, and each tool checks its own scope (auto:read or auto:write): a call without it is a result with isError: true ("Requires scope auto:write"). Tool errors (invalid input, not found, conflict) are results with isError: true as well; an unknown tool or method is a JSON-RPC error (-32602, -32601). auto_decide_approval is app-only: only the mandate approver may decide, from the approval card. Each tool mirrors a REST operation (auto_list_orgs is listOrgs, auto_propose_action is proposeAction). Protocol version 2025-06-18.
Request body application/json
jsonrpc"2.0"requiredidstring | integermethodstringrequiredparamsobjectFor
tools/call,{name, arguments}; forresources/read,{uri}.
Responses
- 200The JSON-RPC response, a result or a JSON-RPC error
Response fields
jsonrpc"2.0"requiredidstring | integer | nullThe request's id; absent when a known method was sent without one.
resultobjecterrorobjecterror.codeintegerrequirederror.messagestringrequired
- 202A notification was accepted; no body
- 400A batch (
batch_unsupportedfrom Auto,BATCH_UNSUPPORTEDthrough the gateway) or a body that is not JSON - 403Missing scope, not the approver, or no authority over the record
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/mcp" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_callMcp', {
body: {
jsonrpc: '2.0',
method: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_callMcp",
"arguments": {
"body": {
"jsonrpc": "2.0",
"method": "string"
}
}
}
}Orgs
List autonomous orgs
GET/v1/auto/orgs
Scope auto:read. Up to 500, oldest first. Archived orgs are hidden unless include_archived=true.
Parameters
include_archivedquery · boolean
Responses
- 200Orgs
Response fields
dataobject[]requireddata[].[].idstringrequireddata[].[].namestringrequireddata[].[].ownerstringrequireddata[].[].charterobjectrequireddata[].[].charter.purposestringrequiredmin length 1 · max length 4000
data[].[].charter.valuesstring[]data[].[].charter.constraintsstring[]data[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs" \
-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('auto_listOrgs'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listOrgs",
"arguments": {}
}
}Create an autonomous org with a charter
POST/v1/auto/orgs
Scope auto:write. owner defaults to the calling principal.
Request body application/json
namestringrequiredmin length 1 · max length 200
charterobjectrequiredcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]ownerstringDefaults to the calling principal min length 1 · max length 256
Responses
- 201Org created; the
ETagheader carries its versionResponse fields
idstringrequirednamestringrequiredownerstringrequiredcharterobjectrequiredcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"charter": {
"purpose": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createOrg', {
body: {
name: 'string',
charter: {
purpose: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createOrg",
"arguments": {
"body": {
"name": "string",
"charter": {
"purpose": "string"
}
}
}
}
}Get an org
GET/v1/auto/orgs/{org}
Scope auto:read.
Parameters
orgpath · stringrequired
Responses
- 200The org
Response fields
idstringrequirednamestringrequiredownerstringrequiredcharterobjectrequiredcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG" \
-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('auto_getOrg', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getOrg",
"arguments": {
"org": "<org>"
}
}
}Archive an org and all its mandates
DELETE/v1/auto/orgs/{org}
Scope auto:write. Needs If-Match. Orgs are archived, never deleted, so the ledger keeps pointing at them; the response is the archived org.
Parameters
orgpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived org
Response fields
idstringrequirednamestringrequiredownerstringrequiredcharterobjectrequiredcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/orgs/$ORG" \
-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('auto_archiveOrg', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveOrg",
"arguments": {
"org": "<org>"
}
}
}
}Update an org's name, owner or charter
PATCH/v1/auto/orgs/{org}
Scope auto:write. Needs If-Match. An archived org cannot be updated. At least one of name, charter or owner is required.
Parameters
orgpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
charterobjectcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]ownerstringmin length 1 · max length 256
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated org
Response fields
idstringrequirednamestringrequiredownerstringrequiredcharterobjectrequiredcharter.purposestringrequiredmin length 1 · max length 4000
charter.valuesstring[]charter.constraintsstring[]status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/orgs/$ORG" \
-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('auto_updateOrg', {
org: '<org>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateOrg",
"arguments": {
"org": "<org>",
"body": {}
}
}
}Chart
Get an org chart
GET/v1/auto/orgs/{org}/chart
Scope auto:read. Active units and positions as trees (units by parent, positions by reporting line), with counts.
Parameters
orgpath · stringrequired
Responses
- 200The org chart
Response fields
orgobjectrequiredorg.idstringrequiredorg.namestringrequiredorg.ownerstringrequiredunitsobject[]requiredTop units with their sub-units
units[].[].idstringrequiredUnit id (unit_...)
units[].[].org_idstringrequiredunits[].[].namestringrequiredunits[].[].descriptionstring | nullrequiredunits[].[].parent_idstring | nullrequiredThe unit this one sits in; null for a top unit
units[].[].status"active" | "archived"requiredunits[].[].versionintegerrequiredunits[].[].created_atstring (date-time)requiredunits[].[].updated_atstring (date-time)requiredunits[].[].unitsobject[]requiredunits[].[].position_idsstring[]requiredpositionsobject[]requiredTop positions with their reports
positions[].[].idstringrequiredPosition id (pos_...)
positions[].[].org_idstringrequiredpositions[].[].unit_idstring | nullrequiredpositions[].[].titlestringrequiredpositions[].[].descriptionstring | nullrequiredpositions[].[].reports_tostring | nullrequiredThe position this one reports to; null for a top position
positions[].[].authorityobjectrequiredpositions[].[].authority.spendobject | nullrequiredpositions[].[].authority.signobject | nullrequiredpositions[].[].authority.hirebooleanrequiredpositions[].[].authority.external_mailobject | nullrequiredpositions[].[].authority.actionsstring[]requiredCustom action grants
positions[].[].occupantobject | nullrequiredpositions[].[].filled_atstring | null (date-time)requiredpositions[].[].successionstring[]requiredSuccessor position ids in order (setPositionSuccession)
positions[].[].actingobject | nullrequiredSomeone acting for the position (startActing), or null
positions[].[].status"active" | "archived"requiredpositions[].[].versionintegerrequiredpositions[].[].created_atstring (date-time)requiredpositions[].[].updated_atstring (date-time)requiredpositions[].[].reportsobject[]requiredcountsobjectrequiredcounts.unitsintegerrequiredcounts.positionsintegerrequiredcounts.filledintegerrequiredcounts.agentsintegerrequiredPositions an agent occupies
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/chart" \
-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('auto_getOrgChart', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getOrgChart",
"arguments": {
"org": "<org>"
}
}
}Continuity
Get where an org is exposed (vacancies, successors)
GET/v1/auto/orgs/{org}/continuity
Scope auto:read. Every active position with its successors and risks: vacant (nobody holds or acts for it), no_successor, no_filled_successor and single_point_of_spend (a filled position with spend authority and no successor), with counts.
Parameters
orgpath · stringrequired
Responses
- 200The continuity report
Response fields
org_idstringrequiredas_ofstring (date-time)requiredpositionsobject[]requiredpositions[].[].position_idstringrequiredpositions[].[].titlestringrequiredpositions[].[].reports_tostring | nullrequiredpositions[].[].occupantobject | nullrequiredpositions[].[].actingobject | nullrequiredpositions[].[].successorsobject[]requiredpositions[].[].successors[].[].position_idstringrequiredpositions[].[].successors[].[].titlestring | nullrequiredpositions[].[].successors[].[].filledbooleanrequiredpositions[].[].successors[].[].activebooleanrequiredpositions[].[].risks"vacant" | "no_successor" | "no_filled_successor" | "single_point_of_spend"[]requiredpositions[].[].okbooleanrequiredcountsobjectrequiredcounts.positionsintegerrequiredcounts.okintegerrequiredcounts.vacantintegerrequiredcounts.actingintegerrequiredcounts.no_successorintegerrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/continuity" \
-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('auto_getOrgContinuity', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getOrgContinuity",
"arguments": {
"org": "<org>"
}
}
}Decisions
Record a non-spending decision in the ledger
POST/v1/auto/orgs/{org}/decisions
Scope auto:write. Appends a decision entry with its reasoning and inputs. A decision that names a mandate_id and a positive cost is refused (422): spending under a mandate goes through proposeAction so its limits apply.
Parameters
orgpath · stringrequired
Request body application/json
mandate_idstringMust belong to this org min length 1 · max length 64
summarystringrequiredmin length 1 · max length 500
reasoningstringrequiredmin length 1 · max length 20000
inputsobjectFree-form evidence, up to 64 KiB serialized
costobjectcost.amountintegerrequiredMinor units (cents) min 0
cost.currencystringrequiredISO 4217 code such as USD pattern
^[A-Z]{3}$
Responses
- 201The ledger entry
Response fields
seqintegerrequiredidstringrequiredorg_idstringrequiredmandate_idstring | nullrequiredkind"org.created" | "org.updated" | "org.archived" | "mandate.created" | "mandate.updated" | "mandate.archived" | "decision" | "approval.requested" | "approval.approved" | "approval.denied" | "approval.expired" | "unit.created" | "unit.updated" | "unit.archived" | "position.created" | "position.updated" | "position.archived" | "position.filled" | "position.vacated" | "goal.created" | "goal.updated" | "goal.measured" | "authority.check" | "authority.release" | "budget.created" | "budget.updated" | "budget.archived" | "policy.created" | "policy.updated" | "policy.archived" | "cadence.created" | "cadence.updated" | "cadence.held" | "cadence.skipped" | "position.succession" | "position.acting" | "position.acting_ended" | "credential.issued" | "credential.revoked"requiredactorstringrequiredactor_kindstringrequiredsummarystringrequiredreasoningstringrequiredinputsanyrequiredFree-form; shape depends on kind
costobject | nullrequiredWhat the entry counted against limits and budgets; an
authority.releasegives spend back with a negative amountrequest_idstringrequiredcreated_atstring (date-time)requiredprev_hashstringrequiredhashstringrequired
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/decisions" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"summary": "string",
"reasoning": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_recordDecision', {
org: '<org>',
body: {
summary: 'string',
reasoning: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_recordDecision",
"arguments": {
"org": "<org>",
"body": {
"summary": "string",
"reasoning": "string"
}
}
}
}Ledger
Read an org's decision ledger
GET/v1/auto/orgs/{org}/ledger
Scope auto:read. Hash-chained entries in seq order; pass next_after back as after to page.
Parameters
orgpath · stringrequiredafterquery · integerReturn entries with seq greater than this (default 0)
limitquery · integerPage size, 1-500 (default 100)
Responses
- 200A page of ledger entries
Response fields
dataobject[]requireddata[].[].seqintegerrequireddata[].[].idstringrequireddata[].[].org_idstringrequireddata[].[].mandate_idstring | nullrequireddata[].[].kind"org.created" | "org.updated" | "org.archived" | "mandate.created" | "mandate.updated" | "mandate.archived" | "decision" | "approval.requested" | "approval.approved" | "approval.denied" | "approval.expired" | "unit.created" | "unit.updated" | "unit.archived" | "position.created" | "position.updated" | "position.archived" | "position.filled" | "position.vacated" | "goal.created" | "goal.updated" | "goal.measured" | "authority.check" | "authority.release" | "budget.created" | "budget.updated" | "budget.archived" | "policy.created" | "policy.updated" | "policy.archived" | "cadence.created" | "cadence.updated" | "cadence.held" | "cadence.skipped" | "position.succession" | "position.acting" | "position.acting_ended" | "credential.issued" | "credential.revoked"requireddata[].[].actorstringrequireddata[].[].actor_kindstringrequireddata[].[].summarystringrequireddata[].[].reasoningstringrequireddata[].[].inputsanyrequiredFree-form; shape depends on kind
data[].[].costobject | nullrequiredWhat the entry counted against limits and budgets; an
authority.releasegives spend back with a negative amountdata[].[].request_idstringrequireddata[].[].created_atstring (date-time)requireddata[].[].prev_hashstringrequireddata[].[].hashstringrequirednext_afterinteger | nullrequiredseq to pass as
afterfor the next page; null when this page was not full
- 404Not found in your organization
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/ledger" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_getLedger', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getLedger",
"arguments": {
"org": "<org>"
}
}
}Recompute an org's ledger hash chain
GET/v1/auto/orgs/{org}/ledger/verify
Scope auto:read. Reports the head hash, or the seq where the chain first breaks.
Parameters
orgpath · stringrequired
Responses
- 200Verification result
Response fields
okbooleanrequiredentriesintegerrequiredheadstringChain head hash; present when ok
broken_atintegerseq of the first broken entry; present when not ok
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/ledger/verify" \
-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('auto_verifyLedger', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_verifyLedger",
"arguments": {
"org": "<org>"
}
}
}Policies
List an org's policies
GET/v1/auto/orgs/{org}/policies
Scope auto:read. Up to 500, oldest first. Archived policies are hidden unless include_archived=true (paused ones are listed).
Parameters
orgpath · stringrequiredinclude_archivedquery · boolean
Responses
- 200Policies
Response fields
dataobject[]requireddata[].[].idstringrequiredPolicy id (pol_...)
data[].[].org_idstringrequireddata[].[].namestringrequireddata[].[].descriptionstring | nullrequireddata[].[].rulesobject[]requireddata[].[].rules[].[].idstringrequireddata[].[].rules[].[].actionstringrequireddata[].[].rules[].[].effect"deny" | "escalate"requireddata[].[].rules[].[].escalate_tostring | nullrequireddata[].[].rules[].[].messagestring | nullrequireddata[].[].rules[].[].whenobjectrequireddata[].[].rules[].[].when.amount_overobject | nullrequireddata[].[].rules[].[].when.recipient_domainsstring[]requireddata[].[].rules[].[].when.unit_idsstring[]requireddata[].[].rules[].[].when.position_idsstring[]requireddata[].[].rules[].[].when.occupant_kinds"agent" | "person"[]requireddata[].[].rules[].[].when.outside_hoursobject | nullrequireddata[].[].status"active" | "paused" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/policies" \
-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('auto_listPolicies', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listPolicies",
"arguments": {
"org": "<org>"
}
}
}Create a policy that tightens authority checks
POST/v1/auto/orgs/{org}/policies
Scope auto:write. A policy can only tighten what a position may do, never widen it. Each rule matches an action (built-in, custom, a wildcard like scopes.*, or *) and optional conditions; a matching rule denies, or escalates to a named position (that position and every position above it are not bound by the rule). Rules may name only units and positions of the same org. Org owner or org admin only (403). Ledgered as policy.created.
Parameters
orgpath · stringrequired
Request body application/json
namestringrequiredmin length 1 · max length 200
descriptionstring | nullmin length 1 · max length 4000
rulesobject[]requiredrules[].[].idstringUnique within the policy; defaults to rule_<n> pattern
^[A-Za-z0-9_]{1,64}$rules[].[].actionstringrequiredA built-in action, a custom action, a wildcard like
scopes.*, or*max length 128 · pattern^(?:\*|spend|sign|external_mail|hire|[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_]*)+|[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_]*)*\.\*)$rules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullRequired for escalate (an active position of the org); not allowed for deny pattern
^[A-Za-z0-9_]{1,64}$rules[].[].messagestring | nullmin length 1 · max length 500
rules[].[].whenobject | nullConditions; all given ones must match. Omit to match every check of the action.
status"active" | "paused"default
"active"
Responses
- 201Policy created
Response fields
idstringrequiredPolicy id (pol_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredrulesobject[]requiredrules[].[].idstringrequiredrules[].[].actionstringrequiredrules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullrequiredrules[].[].messagestring | nullrequiredrules[].[].whenobjectrequiredrules[].[].when.amount_overobject | nullrequiredrules[].[].when.recipient_domainsstring[]requiredrules[].[].when.unit_idsstring[]requiredrules[].[].when.position_idsstring[]requiredrules[].[].when.occupant_kinds"agent" | "person"[]requiredrules[].[].when.outside_hoursobject | nullrequiredstatus"active" | "paused" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/policies" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"rules": [
{
"action": "string",
"effect": "deny"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createPolicy', {
org: '<org>',
body: {
name: 'string',
rules: [
{
action: 'string',
effect: 'deny',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createPolicy",
"arguments": {
"org": "<org>",
"body": {
"name": "string",
"rules": [
{
"action": "string",
"effect": "deny"
}
]
}
}
}
}Get a policy
GET/v1/auto/policies/{policy}
Scope auto:read.
Parameters
policypath · stringrequired
Responses
- 200The policy
Response fields
idstringrequiredPolicy id (pol_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredrulesobject[]requiredrules[].[].idstringrequiredrules[].[].actionstringrequiredrules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullrequiredrules[].[].messagestring | nullrequiredrules[].[].whenobjectrequiredrules[].[].when.amount_overobject | nullrequiredrules[].[].when.recipient_domainsstring[]requiredrules[].[].when.unit_idsstring[]requiredrules[].[].when.position_idsstring[]requiredrules[].[].when.occupant_kinds"agent" | "person"[]requiredrules[].[].when.outside_hoursobject | nullrequiredstatus"active" | "paused" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/policies/$POLICY" \
-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('auto_getPolicy', {
policy: '<policy>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getPolicy",
"arguments": {
"policy": "<policy>"
}
}
}Archive a policy
DELETE/v1/auto/policies/{policy}
Scope auto:write. Needs If-Match. Org owner or org admin only (403). Policies are archived, never deleted. Ledgered as policy.archived.
Parameters
policypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived policy
Response fields
idstringrequiredPolicy id (pol_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredrulesobject[]requiredrules[].[].idstringrequiredrules[].[].actionstringrequiredrules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullrequiredrules[].[].messagestring | nullrequiredrules[].[].whenobjectrequiredrules[].[].when.amount_overobject | nullrequiredrules[].[].when.recipient_domainsstring[]requiredrules[].[].when.unit_idsstring[]requiredrules[].[].when.position_idsstring[]requiredrules[].[].when.occupant_kinds"agent" | "person"[]requiredrules[].[].when.outside_hoursobject | nullrequiredstatus"active" | "paused" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/policies/$POLICY" \
-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('auto_archivePolicy', {
policy: '<policy>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archivePolicy",
"arguments": {
"policy": "<policy>"
}
}
}
}Update, pause or resume a policy
PATCH/v1/auto/policies/{policy}
Scope auto:write. Needs If-Match. At least one field other than reason; rules replaces every rule. status: paused stops it applying. Org owner or org admin only (403); an archived policy is a 409. Ledgered as policy.updated.
Parameters
policypath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
descriptionstringmin length 1 · max length 4000
rulesobject[]rules[].[].idstringUnique within the policy; defaults to rule_<n> pattern
^[A-Za-z0-9_]{1,64}$rules[].[].actionstringrequiredA built-in action, a custom action, a wildcard like
scopes.*, or*max length 128 · pattern^(?:\*|spend|sign|external_mail|hire|[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_]*)+|[a-z][a-z0-9]*(?:\.[a-z][a-z0-9_]*)*\.\*)$rules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullRequired for escalate (an active position of the org); not allowed for deny pattern
^[A-Za-z0-9_]{1,64}$rules[].[].messagestring | nullmin length 1 · max length 500
rules[].[].whenobject | nullConditions; all given ones must match. Omit to match every check of the action.
status"active" | "paused"reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated policy
Response fields
idstringrequiredPolicy id (pol_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredrulesobject[]requiredrules[].[].idstringrequiredrules[].[].actionstringrequiredrules[].[].effect"deny" | "escalate"requiredrules[].[].escalate_tostring | nullrequiredrules[].[].messagestring | nullrequiredrules[].[].whenobjectrequiredrules[].[].when.amount_overobject | nullrequiredrules[].[].when.recipient_domainsstring[]requiredrules[].[].when.unit_idsstring[]requiredrules[].[].when.position_idsstring[]requiredrules[].[].when.occupant_kinds"agent" | "person"[]requiredrules[].[].when.outside_hoursobject | nullrequiredstatus"active" | "paused" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/policies/$POLICY" \
-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('auto_updatePolicy', {
policy: '<policy>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updatePolicy",
"arguments": {
"policy": "<policy>",
"body": {}
}
}
}Positions
List an org's positions
GET/v1/auto/orgs/{org}/positions
Scope auto:read. Up to 2000, oldest first. Archived positions are hidden unless include_archived=true.
Parameters
orgpath · stringrequiredunit_idquery · stringOnly positions in this unit
include_archivedquery · boolean
Responses
- 200Positions
Response fields
dataobject[]requireddata[].[].idstringrequiredPosition id (pos_...)
data[].[].org_idstringrequireddata[].[].unit_idstring | nullrequireddata[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].reports_tostring | nullrequiredThe position this one reports to; null for a top position
data[].[].authorityobjectrequireddata[].[].authority.spendobject | nullrequireddata[].[].authority.signobject | nullrequireddata[].[].authority.hirebooleanrequireddata[].[].authority.external_mailobject | nullrequireddata[].[].authority.actionsstring[]requiredCustom action grants
data[].[].occupantobject | nullrequireddata[].[].filled_atstring | null (date-time)requireddata[].[].successionstring[]requiredSuccessor position ids in order (setPositionSuccession)
data[].[].actingobject | nullrequiredSomeone acting for the position (startActing), or null
data[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/positions" \
-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('auto_listPositions', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listPositions",
"arguments": {
"org": "<org>"
}
}
}Create a position with its delegated authority, optionally filled
POST/v1/auto/orgs/{org}/positions
Scope auto:write. Authority only flows down: a position's authority can never exceed the authority of the position it reports_to (422 with every excess). Only the org owner or a caller who holds no position in the org can create a top position (no reports_to); a caller who holds a position can create positions only below their own, and filling one on creation needs hire authority (403). Ledgered as position.created, plus position.filled with an occupant.
Parameters
orgpath · stringrequired
Request body application/json
titlestringrequiredmin length 1 · max length 200
unit_idstring | nullAn active unit of the same org pattern
^[A-Za-z0-9_]{1,64}$reports_tostring | nullAn active position of the same org; omit for a top position pattern
^[A-Za-z0-9_]{1,64}$authorityobjectDelegated authority. Omitted or null grants mean none. It can never exceed the authority of the position this one reports to.
authority.spendobject | nullauthority.signobject | nullauthority.hirebooleanMay appoint and vacate occupants of positions below it
authority.external_mailobject | nullauthority.actionsarray | nullCustom actions a plugin asks about (
garden.payout,orgs.file,scopes.assign): an exact action, a prefix wildcard such asscopes.*, or*for every custom actionoccupantobject | nullFill it on creation (needs hire authority)
descriptionstringmin length 1 · max length 4000
Responses
- 201Position created
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/positions" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createPosition', {
org: '<org>',
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createPosition",
"arguments": {
"org": "<org>",
"body": {
"title": "string"
}
}
}
}Get a position with its reporting chain
GET/v1/auto/positions/{position}
Scope auto:read. Includes chain, the positions above it, nearest first.
Parameters
positionpath · stringrequired
Responses
- 200The position
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)requiredchainobject[]requiredThe positions above this one, nearest first
chain[].[].idstringrequiredchain[].[].titlestringrequiredchain[].[].occupantobject | nullrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/positions/$POSITION" \
-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('auto_getPosition', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getPosition",
"arguments": {
"position": "<position>"
}
}
}Archive a position
DELETE/v1/auto/positions/{position}
Scope auto:write. Needs If-Match. A position that active positions report to is a 409. Ends the current occupant's term and clears the occupant; the response is the archived position. Ledgered as position.archived.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived position
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/positions/$POSITION" \
-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('auto_archivePosition', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archivePosition",
"arguments": {
"position": "<position>"
}
}
}
}Update a position's title, unit, reporting line or authority
PATCH/v1/auto/positions/{position}
Scope auto:write. Needs If-Match. At least one field other than reason. The new authority must fit within the manager's (422), and the authority of its active reports and of mandates it holds must still fit within it (409: lower those first). A move that would create a cycle is a 422. Ledgered as position.updated. The occupant changes through appointOccupant and vacatePosition.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
titlestringmin length 1 · max length 200
unit_idstring | nullpattern
^[A-Za-z0-9_]{1,64}$reports_tostring | nullnull makes it a top position (org owner or org admin only) pattern
^[A-Za-z0-9_]{1,64}$authorityobjectDelegated authority. Omitted or null grants mean none. It can never exceed the authority of the position this one reports to.
authority.spendobject | nullauthority.signobject | nullauthority.hirebooleanMay appoint and vacate occupants of positions below it
authority.external_mailobject | nullauthority.actionsarray | nullCustom actions a plugin asks about (
garden.payout,orgs.file,scopes.assign): an exact action, a prefix wildcard such asscopes.*, or*for every custom actiondescriptionstringmin length 1 · max length 4000
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated position
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/positions/$POSITION" \
-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('auto_updatePosition', {
position: '<position>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updatePosition",
"arguments": {
"position": "<position>",
"body": {}
}
}
}Scorecard
Get an org's scorecard
GET/v1/auto/orgs/{org}/scorecard
Scope auto:read. Every active position with its goals, the latest measurement of each metric, and attainment (0 to 1) per goal, position and org.
Parameters
orgpath · stringrequired
Responses
- 200The org scorecard
Response fields
org_idstringrequiredas_ofstring (date-time)requiredattainmentnumber | nullrequiredpositionsobject[]requiredpositions[].[].position_idstringrequiredpositions[].[].titlestringrequiredpositions[].[].unit_idstring | nullrequiredpositions[].[].reports_tostring | nullrequiredpositions[].[].occupantobject | nullrequiredpositions[].[].goalsobject[]positions[].[].goals[].[].idstringrequiredpositions[].[].goals[].[].titlestringrequiredpositions[].[].goals[].[].status"active" | "achieved" | "missed" | "archived"requiredpositions[].[].goals[].[].due_onstring | null (date)requiredpositions[].[].goals[].[].mandate_idstring | nullrequiredpositions[].[].goals[].[].metricsobject[]requiredpositions[].[].goals[].[].metrics[].[].keystringrequiredpositions[].[].goals[].[].metrics[].[].namestringrequiredpositions[].[].goals[].[].metrics[].[].targetnumberrequiredpositions[].[].goals[].[].metrics[].[].unitstringrequiredpositions[].[].goals[].[].metrics[].[].direction"up" | "down"requiredpositions[].[].goals[].[].metrics[].[].valuenumber | nullrequiredThe latest measurement
positions[].[].goals[].[].metrics[].[].measured_atstring | null (date-time)requiredpositions[].[].goals[].[].metrics[].[].attainmentnumber | nullrequiredmin 0 · max 1
positions[].[].goals[].[].attainmentnumber | nullrequiredMean attainment of measured metrics
positions[].[].goal_countintegerrequiredpositions[].[].attainmentnumber | nullrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/scorecard" \
-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('auto_getOrgScorecard', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getOrgScorecard",
"arguments": {
"org": "<org>"
}
}
}Get a position's scorecard
GET/v1/auto/positions/{position}/scorecard
Scope auto:read. The position's goals with their latest measurements and attainment, and its direct reports' attainment. For an archived position Auto currently answers 200 with only reports: [] (the position row is absent from the org scorecard); treat a body without position_id as an archived position.
Parameters
positionpath · stringrequired
Responses
- 200The position scorecard
Response fields
position_idstringrequiredtitlestringrequiredunit_idstring | nullrequiredreports_tostring | nullrequiredoccupantobject | nullrequiredgoalsobject[]requiredgoals[].[].idstringrequiredgoals[].[].titlestringrequiredgoals[].[].status"active" | "achieved" | "missed" | "archived"requiredgoals[].[].due_onstring | null (date)requiredgoals[].[].mandate_idstring | nullrequiredgoals[].[].metricsobject[]requiredgoals[].[].metrics[].[].keystringrequiredgoals[].[].metrics[].[].namestringrequiredgoals[].[].metrics[].[].targetnumberrequiredgoals[].[].metrics[].[].unitstringrequiredgoals[].[].metrics[].[].direction"up" | "down"requiredgoals[].[].metrics[].[].valuenumber | nullrequiredThe latest measurement
goals[].[].metrics[].[].measured_atstring | null (date-time)requiredgoals[].[].metrics[].[].attainmentnumber | nullrequiredmin 0 · max 1
goals[].[].attainmentnumber | nullrequiredMean attainment of measured metrics
goal_countintegerrequiredattainmentnumber | nullrequiredreportsobject[]requiredDirect reports' rows, without their goals
reports[].[].position_idstringrequiredreports[].[].titlestringrequiredreports[].[].unit_idstring | nullrequiredreports[].[].reports_tostring | nullrequiredreports[].[].occupantobject | nullrequiredreports[].[].goalsobject[]reports[].[].goals[].[].idstringrequiredreports[].[].goals[].[].titlestringrequiredreports[].[].goals[].[].status"active" | "achieved" | "missed" | "archived"requiredreports[].[].goals[].[].due_onstring | null (date)requiredreports[].[].goals[].[].mandate_idstring | nullrequiredreports[].[].goals[].[].metricsobject[]requiredreports[].[].goals[].[].metrics[].[].keystringrequiredreports[].[].goals[].[].metrics[].[].namestringrequiredreports[].[].goals[].[].metrics[].[].targetnumberrequiredreports[].[].goals[].[].metrics[].[].unitstringrequiredreports[].[].goals[].[].metrics[].[].direction"up" | "down"requiredreports[].[].goals[].[].metrics[].[].valuenumber | nullrequiredThe latest measurement
reports[].[].goals[].[].metrics[].[].measured_atstring | null (date-time)requiredreports[].[].goals[].[].metrics[].[].attainmentnumber | nullrequiredmin 0 · max 1
reports[].[].goals[].[].attainmentnumber | nullrequiredMean attainment of measured metrics
reports[].[].goal_countintegerrequiredreports[].[].attainmentnumber | nullrequired
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/positions/$POSITION/scorecard" \
-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('auto_getPositionScorecard', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getPositionScorecard",
"arguments": {
"position": "<position>"
}
}
}Units
List an org's units
GET/v1/auto/orgs/{org}/units
Scope auto:read. Up to 1000, oldest first. Archived units are hidden unless include_archived=true.
Parameters
orgpath · stringrequiredinclude_archivedquery · boolean
Responses
- 200Units
Response fields
dataobject[]requireddata[].[].idstringrequiredUnit id (unit_...)
data[].[].org_idstringrequireddata[].[].namestringrequireddata[].[].descriptionstring | nullrequireddata[].[].parent_idstring | nullrequiredThe unit this one sits in; null for a top unit
data[].[].status"active" | "archived"requireddata[].[].versionintegerrequireddata[].[].created_atstring (date-time)requireddata[].[].updated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/orgs/$ORG/units" \
-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('auto_listUnits', {
org: '<org>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listUnits",
"arguments": {
"org": "<org>"
}
}
}Create a unit (department or team) in an org
POST/v1/auto/orgs/{org}/units
Scope auto:write. Ledgered as unit.created. Only the org owner, or a caller who holds no position in the org (an org admin with an org API key), can manage units: any caller who holds a position in the org gets 403, whatever its authority. A parent_id must be an active unit of the same org.
Parameters
orgpath · stringrequired
Request body application/json
namestringrequiredmin length 1 · max length 200
parent_idstring | nullAn active unit of the same org pattern
^[A-Za-z0-9_]{1,64}$descriptionstringmin length 1 · max length 4000
Responses
- 201Unit created
Response fields
idstringrequiredUnit id (unit_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredparent_idstring | nullrequiredThe unit this one sits in; null for a top unit
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/auto/orgs/$ORG/units" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_createUnit', {
org: '<org>',
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_createUnit",
"arguments": {
"org": "<org>",
"body": {
"name": "string"
}
}
}
}Get a unit
GET/v1/auto/units/{unit}
Scope auto:read.
Parameters
unitpath · stringrequired
Responses
- 200The unit
Response fields
idstringrequiredUnit id (unit_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredparent_idstring | nullrequiredThe unit this one sits in; null for a top unit
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/units/$UNIT" \
-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('auto_getUnit', {
unit: '<unit>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_getUnit",
"arguments": {
"unit": "<unit>"
}
}
}Archive a unit
DELETE/v1/auto/units/{unit}
Scope auto:write. Needs If-Match. Only the org owner, or a caller who holds no position in the org, can manage units (403 for any position holder). A unit with active sub-units or positions is a 409: move or archive them first. Units are archived, never deleted; the response is the archived unit. Ledgered as unit.archived.
Parameters
unitpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200Archived unit
Response fields
idstringrequiredUnit id (unit_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredparent_idstring | nullrequiredThe unit this one sits in; null for a top unit
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/units/$UNIT" \
-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('auto_archiveUnit', {
unit: '<unit>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_archiveUnit",
"arguments": {
"unit": "<unit>"
}
}
}
}Rename, describe or move a unit
PATCH/v1/auto/units/{unit}
Scope auto:write. Needs If-Match. Only the org owner, or a caller who holds no position in the org, can manage units (403 for any position holder). At least one of name, description or parent_id; parent_id: null makes it a top unit. A move that would create a cycle is a 422. Ledgered as unit.updated.
Parameters
unitpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
namestringmin length 1 · max length 200
parent_idstring | nullnull makes it a top unit pattern
^[A-Za-z0-9_]{1,64}$descriptionstringmin length 1 · max length 4000
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200Updated unit
Response fields
idstringrequiredUnit id (unit_...)
org_idstringrequirednamestringrequireddescriptionstring | nullrequiredparent_idstring | nullrequiredThe unit this one sits in; null for a top unit
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/auto/units/$UNIT" \
-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('auto_updateUnit', {
unit: '<unit>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_updateUnit",
"arguments": {
"unit": "<unit>",
"body": {}
}
}
}Acting
Start an acting appointment for a position
PUT/v1/auto/positions/{position}/acting
Scope auto:write. Needs If-Match. The occupant of from_position_id, or of the first filled successor when it is omitted, acts for the position and holds its authority until a real appointment or until the acting appointment ends (409 when that position is vacant or there is no filled successor, or when the occupant would act for their own position). Replacing an acting appointment revokes credentials issued to the previous acting holder. Needs hire authority over the position (403). Ledgered as position.acting.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
from_position_idstring | nullWhose occupant acts; omit to use the first filled successor pattern
^[A-Za-z0-9_]{1,64}$reasonstringrequiredmin length 1 · max length 4000
Responses
- 200The position with its acting appointment
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/auto/positions/$POSITION/acting" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_startActing', {
position: '<position>',
body: {
reason: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_startActing",
"arguments": {
"position": "<position>",
"body": {
"reason": "string"
}
}
}
}End a position's acting appointment
DELETE/v1/auto/positions/{position}/acting
Scope auto:write. Needs If-Match. Ends it and revokes credentials issued to the acting holder. 409 when nobody is acting. Needs hire authority over the position (403). Ledgered as position.acting_ended.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.reasonquery · stringRecorded in the ledger
Responses
- 200The position without an acting appointment
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/positions/$POSITION/acting" \
-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('auto_endActing', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_endActing",
"arguments": {
"position": "<position>"
}
}
}
}Occupant
Fill a position, or swap its occupant
PUT/v1/auto/positions/{position}/occupant
Scope auto:write. Needs If-Match and hire authority over the position (403). The occupant is a person or an agent run by Henry, Fleets or Flocks; Auto references it, never runs it. The previous term ends at the same instant the new one starts. Ledgered as position.filled; a filled position is metered as auto.filled_position_days.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
occupantobjectrequiredA person, or an agent run by Henry, Fleets or Flocks (Auto references it, never runs it).
occupant.kind"agent" | "person"requiredoccupant.source"henry" | "fleets" | "flocks"Required for agents; not allowed for people
occupant.refstringrequiredThe agent or person id pattern
^[A-Za-z0-9][A-Za-z0-9_.:@-]{0,255}$occupant.principalstring | nullThe gateway principal that acts as this occupant; defaults to ref pattern
^[A-Za-z0-9][A-Za-z0-9_.:@-]{0,255}$occupant.namestring | nullmin length 1 · max length 200
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200The position with its new occupant
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/auto/positions/$POSITION/occupant" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"occupant": {
"kind": "agent",
"ref": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('auto_appointOccupant', {
position: '<position>',
body: {
occupant: {
kind: 'agent',
ref: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_appointOccupant",
"arguments": {
"position": "<position>",
"body": {
"occupant": {
"kind": "agent",
"ref": "string"
}
}
}
}
}Vacate a position
DELETE/v1/auto/positions/{position}/occupant
Scope auto:write. Needs If-Match and hire authority over the position (403). A vacant position is a 409. Ends the occupant's term. Ledgered as position.vacated.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Responses
- 200The vacated position
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/auto/positions/$POSITION/occupant" \
-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('auto_vacatePosition', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "auto_vacatePosition",
"arguments": {
"position": "<position>"
}
}
}
}Succession
Set a position's succession plan
PUT/v1/auto/positions/{position}/succession
Scope auto:write. Needs If-Match. Replaces the ordered list of up to 5 successor positions (active positions of the same org, not the position itself); an empty list clears it. Needs authority to manage the position (403). Ledgered as position.succession.
Parameters
positionpath · stringrequiredIf-Matchheader · stringrequiredThe
versionyou read, as"3"(the ETag of the GET). A stale version is a 409.
Request body application/json
successorsarray | nullPosition ids in order; empty or omitted clears the plan
reasonstringRecorded in the ledger min length 1 · max length 4000
Responses
- 200The position with its new succession
Response fields
idstringrequiredPosition id (pos_...)
org_idstringrequiredunit_idstring | nullrequiredtitlestringrequireddescriptionstring | nullrequiredreports_tostring | nullrequiredThe position this one reports to; null for a top position
authorityobjectrequiredauthority.spendobject | nullrequiredauthority.signobject | nullrequiredauthority.hirebooleanrequiredauthority.external_mailobject | nullrequiredauthority.actionsstring[]requiredCustom action grants
occupantobject | nullrequiredfilled_atstring | null (date-time)requiredsuccessionstring[]requiredSuccessor position ids in order (setPositionSuccession)
actingobject | nullrequiredSomeone acting for the position (startActing), or null
status"active" | "archived"requiredversionintegerrequiredcreated_atstring (date-time)requiredupdated_atstring (date-time)required
- 403Missing scope, not the approver, or no authority over the record
- 404Not found in your organization
- 409Stale version, archived record, bad status for the action, approval already decided, check already released or credential already revoked
- 422Invalid body, query or If-Match; unknown fields are rejected
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/auto/positions/$POSITION/succession" \
-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('auto_setPositionSuccession', {
position: '<position>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_setPositionSuccession",
"arguments": {
"position": "<position>",
"body": {}
}
}
}Terms
List a position's occupancy terms
GET/v1/auto/positions/{position}/terms
Scope auto:read. Who held the position and when, newest first, up to 200. The current term has ended_at null.
Parameters
positionpath · stringrequired
Responses
- 200Terms
Response fields
dataobject[]requireddata[].[].idstringrequiredTerm id (term_...)
data[].[].occupantobjectrequiredA person, or an agent run by Henry, Fleets or Flocks (Auto references it, never runs it).
data[].[].occupant.kind"agent" | "person"requireddata[].[].occupant.source"henry" | "fleets" | "flocks"Required for agents; not allowed for people
data[].[].occupant.refstringrequiredThe agent or person id pattern
^[A-Za-z0-9][A-Za-z0-9_.:@-]{0,255}$data[].[].occupant.principalstring | nullThe gateway principal that acts as this occupant; defaults to ref pattern
^[A-Za-z0-9][A-Za-z0-9_.:@-]{0,255}$data[].[].occupant.namestring | nullmin length 1 · max length 200
data[].[].started_atstring (date-time)requireddata[].[].ended_atstring | null (date-time)required
- 404Not found in your organization
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/positions/$POSITION/terms" \
-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('auto_listPositionTerms', {
position: '<position>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_listPositionTerms",
"arguments": {
"position": "<position>"
}
}
}Whoami
Show the identity Auto sees for your credential
GET/v1/auto/whoami
Scope auto:read.
Responses
- 200Org, principal, principal kind and scopes as the gateway signed them
Response fields
orgstringrequiredprincipalstringrequiredkind"api_key" | "m2m_token" | "bridge_session"requiredscopesstring[]required
- 403Missing scope, not the approver, or no authority over the record
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/auto/whoami" \
-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('auto_whoami'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "auto_whoami",
"arguments": {}
}
}L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support