OneOS Docs
Genesis 0.3.3 Console

API reference

Lanes

Agent context, cache, ledger and routing, with policies, promotions and receipts. Sandbox.

Operations
27
Base path
https://os.one.ml/api/v1/lanes
Scopes
lanes:read lanes:write
API keys
24 tested with an API key
SDK
genesis.call('lanes_cacheLookup', …) · helpers under genesis.lanes
CLI
genesis lanes
MCP
24 tools; the other 3 through genesis_call

Operations

OperationEndpointAPI key
Look up a cache entry (read)POST/cache/lookupTested with an API key
Snapshot the cache (read)POST/cache/snapshotsTested with an API key
Restore the cache from a snapshotPOST/cache/snapshots/restoreTested with an API key
Write a cache entryPOST/cache/writeTested with an API key
Build a frame, route it and answerPOST/context/answerTested with an API key
Build a context frame for an agent taskPOST/context/framesTested with an API key
Snapshot context records (read)POST/context/records/snapshotsTested with an API key
Restore context records from a snapshotPOST/context/records/snapshots/restoreTested with an API key
Delete everything Lanes holds for your selectionPOST/deletions/tenantTested with an API key
Export everything Lanes holds for your selection (read)POST/exports/tenantTested with an API key
Check a Foundry route against the frame's limitsPOST/foundry/routes/enforceTested with an API key
Get a context recordGET/lanes/records/{recordId}Tested with an API key
Delete a context recordDELETE/lanes/records/{recordId}—
Preview the context frame and route for a query (read)POST/lanes/retrieveTested with an API key
Write a context recordPOST/lanes/writeTested with an API key
Read the ledger entries for a frameGET/ledger/frames/{frameId}Tested with an API key
Snapshot the ledger (read)POST/ledger/snapshotsTested with an API key
Restore the ledger from a snapshotPOST/ledger/snapshots/restoreTested with an API key
Read your selection's legal holdGET/legal-holds/tenant—
Set or clear your selection's legal hold (audited; blocks tenant deletion while set)POST/legal-holds/tenant—
Read the receipt for an earlier writeGET/operations/{operationId}Tested with an API key
Read meter, audit, evidence and probe recordsGET/operations/recordsTested with an API key
Evaluate data-use policy for an actionPOST/policy/evaluateTested with an API key
Approve or reject a promotion candidatePOST/promotions/{promotionId}/reviewTested with an API key
List promotion candidatesGET/promotions/candidatesTested with an API key
Propose a record for promotionPOST/promotions/candidatesTested with an API key
Restore records, cache and ledger from a recovery bundlePOST/recovery/restoreTested with an API key

Cache

Look up a cache entry (read)

POST/v1/lanes/cache/lookup

lanes:readTested with an API keyIdempotency-Key requiredlanes_cacheLookup

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • cacheKeystringrequired
  • cacheClassstringrequired
  • requestedBystringrequired

Responses

  • 200Lookup result
    Response fields
    • cacheKeystring
    • cacheClassstring
    • statusstring
    • hitobject | null
    • policyDecisionIdsstring[]
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/cache/lookup" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cacheKey": "string",
    "cacheClass": "string",
    "requestedBy": "string"
  }'

Snapshot the cache (read)

POST/v1/lanes/cache/snapshots

lanes:readTested with an API keyIdempotency-Key requiredlanes_snapshotCache

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • exportedBystringrequired

Responses

  • 201Cache snapshot
    Response fields
    • scopeobject
    • exportedBystring
    • evidenceRefstring
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/cache/snapshots" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "exportedBy": "string"
  }'

Restore the cache from a snapshot

POST/v1/lanes/cache/snapshots/restore

lanes:writeTested with an API keyIdempotency-Key requiredlanes_restoreCache

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • scopeobject
  • exportedBystring
  • evidenceRefstring

Responses

curl -X POST "https://os.one.ml/api/v1/lanes/cache/snapshots/restore" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Write a cache entry

POST/v1/lanes/cache/write

lanes:writeTested with an API keyIdempotency-Key requiredlanes_cacheWrite

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • cacheKeystringrequired
  • cacheClassstringrequired
  • valueRefstringrequired
  • summarystringrequired
  • labelsstring[]required
  • sourceRecordIdsstring[]required
  • writtenBystringrequired

Responses

  • 201Cache artifact
    Response fields
    • idstring
    • scopeobject
    • cacheKeystring
    • cacheClassstring
    • valueRefstring
    • summarystring
    • labelsstring[]
    • sourceRecordIdsstring[]
    • statusstring
    • evidenceRefstring
    • policyDecisionIdsstring[]
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/cache/write" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cacheKey": "string",
    "cacheClass": "string",
    "valueRef": "string",
    "summary": "string",
    "labels": [],
    "sourceRecordIds": [],
    "writtenBy": "string"
  }'

Context

Build a frame, route it and answer

POST/v1/lanes/context/answer

lanes:writeTested with an API keyIdempotency-Key requiredlanes_answer

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • agentIdstringrequired
  • taskIdstringrequired
  • querystringrequired
  • allowRawContextbooleanrequired
  • tokenBudgetintegerrequired
  • callFoundryboolean

    /v1/context/answer only. On by default since genesis-api#1233 (3 Dec 2026): when nothing in your scope can answer (routeDecision call_foundry), the gateway calls Foundry for the answer as you, on the frame's terms, billed to your own Foundry usage (key permission foundry:invoke) and stopped by your own spend limit. This is a billing change for existing callers that already call Foundry themselves on call_foundry: send false to keep the route-only answer and avoid a second call. default true

Responses

  • 200Answer with its frame, route and cache decision
    Response fields
    • frameobject
    • frame.idstring
    • frame.frameIdstring
    • frame.scopeobject
    • frame.agentIdstring
    • frame.taskIdstring
    • frame.querystring
    • frame.tokenBudgetinteger
    • frame.itemsobject[]
    • frame.items[].[].recordIdstring
    • frame.items[].[].contentRefstring
    • frame.items[].[].summarystring
    • frame.items[].[].visibilitystring
    • frame.exclusionsobject[]
    • frame.exclusions[].[].recordIdstring
    • frame.exclusions[].[].kindstring
    • frame.exclusions[].[].reasonstring
    • routeDecisionstring

      The route Lanes chose, for example call_foundry or run_local_curator_only.

    • routeobject
    • route.decisionstring
    • route.foundryobject | null
    • route.reasonstring
    • route.confidenceBasisPointsinteger
    • route.estimatedSavingsobject | null
    • cacheobject
    • answerstring | null

      The answer: from the cache, the frame or (on call_foundry) Foundry.

    • policyDecisionIdsstring[]
    • foundryobject

      Present only when the gateway handled a call_foundry route for lanes/context-answer and callFoundry was not false. Absent when the operator turned the feature off, Foundry is not configured on this gateway, the route alias differs, or the Lanes answer was too large to inspect.

    • foundry.status"answered" | "unavailable"
    • foundry.routeAliasstring
    • foundry.requestIdstring

      Foundry's request id for the call.

    • foundry.responseIdstring
    • foundry.modelstring
    • foundry.usageobject

      Token usage as Foundry reported it.

    • foundry.reasonstring

      When unavailable: why (budget_paused, project_spend_limit, foundry_live_closed, foundry_live_not_admitted, foundry_scope_missing, route_terms_disallow_provider, route_cost_cap_not_enforceable, route_terms_data_use_not_enforceable, token_budget_too_small, invalid_data_class, foundry_refused, foundry_timeout, foundry_bad_answer, ...)

    • foundry.httpStatusinteger
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/context/answer" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "string",
    "taskId": "string",
    "query": "string",
    "allowRawContext": true,
    "tokenBudget": 1
  }'

Build a context frame for an agent task

POST/v1/lanes/context/frames

lanes:writeTested with an API keyIdempotency-Key requiredlanes_createFrame

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • agentIdstringrequired
  • taskIdstringrequired
  • querystringrequired
  • allowRawContextbooleanrequired
  • tokenBudgetintegerrequired
  • callFoundryboolean

    /v1/context/answer only. On by default since genesis-api#1233 (3 Dec 2026): when nothing in your scope can answer (routeDecision call_foundry), the gateway calls Foundry for the answer as you, on the frame's terms, billed to your own Foundry usage (key permission foundry:invoke) and stopped by your own spend limit. This is a billing change for existing callers that already call Foundry themselves on call_foundry: send false to keep the route-only answer and avoid a second call. default true

Responses

  • 201Frame and route
    Response fields
    • frameobject
    • frame.idstring
    • frame.frameIdstring
    • frame.scopeobject
    • frame.agentIdstring
    • frame.taskIdstring
    • frame.querystring
    • frame.tokenBudgetinteger
    • frame.itemsobject[]
    • frame.items[].[].recordIdstring
    • frame.items[].[].contentRefstring
    • frame.items[].[].summarystring
    • frame.items[].[].visibilitystring
    • frame.exclusionsobject[]
    • frame.exclusions[].[].recordIdstring
    • frame.exclusions[].[].kindstring
    • frame.exclusions[].[].reasonstring
    • routeobject
    • route.decisionstring
    • route.foundryobject | null
    • route.reasonstring
    • route.confidenceBasisPointsinteger
    • route.estimatedSavingsobject | null
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/context/frames" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "string",
    "taskId": "string",
    "query": "string",
    "allowRawContext": true,
    "tokenBudget": 1
  }'

Snapshot context records (read)

POST/v1/lanes/context/records/snapshots

lanes:readTested with an API keyIdempotency-Key requiredlanes_snapshotRecords

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • exportedBystringrequired

Responses

  • 201Records snapshot
    Response fields
    • scopeobject
    • exportedBystring
    • evidenceRefstring
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/context/records/snapshots" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "exportedBy": "string"
  }'

Restore context records from a snapshot

POST/v1/lanes/context/records/snapshots/restore

lanes:writeTested with an API keyIdempotency-Key requiredlanes_restoreRecords

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • scopeobject
  • exportedBystring
  • evidenceRefstring

Responses

curl -X POST "https://os.one.ml/api/v1/lanes/context/records/snapshots/restore" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Deletions

Delete everything Lanes holds for your selection

POST/v1/lanes/deletions/tenant

lanes:writeTested with an API keyIdempotency-Key requiredlanes_deleteTenant

Refused 403 tenant deletion blocked by legal hold while the selection's server-side legal hold is set (setLegalHold). legalHold in the body can never lift that hold; true refuses as well.

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • requestedBystringrequired
  • reasonstringrequired
  • legalHoldboolean

Responses

  • 202Deletion report
    Response fields

    A JSON object.

  • 403Blocked by a legal hold
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/deletions/tenant" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "requestedBy": "string",
    "reason": "string"
  }'

Exports

Export everything Lanes holds for your selection (read)

POST/v1/lanes/exports/tenant

lanes:readTested with an API keyIdempotency-Key requiredlanes_exportTenant

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • requestedBystringrequired
  • includeLedgerbooleanrequired
  • includeOperationalRecordsbooleanrequired

Responses

  • 200Tenant export
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/exports/tenant" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "requestedBy": "string",
    "includeLedger": true,
    "includeOperationalRecords": true
  }'

Foundry

Check a Foundry route against the frame's limits

POST/v1/lanes/foundry/routes/enforce

lanes:writeTested with an API keyIdempotency-Key requiredlanes_enforceFoundryRoute

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • routeAliasstringrequired
  • modelClassstringrequired
  • dataUseTermsstring[]required
  • tokenBudgetintegerrequired
  • inputTokensintegerrequired

Responses

  • 200Enforcement result
    Response fields
    • allowedboolean
    • routeAliasstring
    • modelClassstring
    • inputTokensinteger
    • maxInputTokensinteger
    • reasonsstring[]
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/foundry/routes/enforce" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "routeAlias": "string",
    "modelClass": "string",
    "dataUseTerms": [],
    "tokenBudget": 1,
    "inputTokens": 1
  }'

Lanes

Get a context record

GET/v1/lanes/lanes/records/{recordId}

lanes:readTested with an API keylanes_getRecord

Parameters

  • recordIdpath · stringrequired

Responses

  • 200Context record
    Response fields
    • idstring
    • scopeobject
    • subjectstring
    • contentRefstring
    • summarystring
    • visibility"Tenant" | "CollectiveCard" | "Public"
    • labelsstring[]
  • 404Not found in your selection
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/lanes/records/$RECORD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Delete a context record

DELETE/v1/lanes/lanes/records/{recordId}

lanes:writeIdempotency-Key optionallanes_deleteRecord

Needs lanes:write (as writing a record does). Erases this record in your selection (org, workspace, project, environment) and the saved write responses that hold it, so replaying a write key never returns it. A repeat by the same selection answers the same 200; another selection's record and an unknown id are 404. Frames, ledger entries and promotion candidates made before the delete keep their copy until erased (deletions/frames or the tenant erase). Idempotency-Key is accepted, not required. No request body.

Parameters

  • recordIdpath · stringrequired
  • Idempotency-Keyheader · string

Responses

  • 200Deleted (or already deleted by this selection)
    Response fields
    • idstringrequired
    • deletedtruerequired
  • 400A request body was sent
  • 403lanes:write required
  • 404Not found in your selection
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/lanes/lanes/records/$RECORD_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY"

Preview the context frame and route for a query (read)

POST/v1/lanes/lanes/retrieve

lanes:readTested with an API keyIdempotency-Key requiredlanes_retrieve

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

Type: object | object

Responses

  • 200Frame and route
    Response fields
    • frameobject
    • frame.idstring
    • frame.frameIdstring
    • frame.scopeobject
    • frame.agentIdstring
    • frame.taskIdstring
    • frame.querystring
    • frame.tokenBudgetinteger
    • frame.itemsobject[]
    • frame.items[].[].recordIdstring
    • frame.items[].[].contentRefstring
    • frame.items[].[].summarystring
    • frame.items[].[].visibilitystring
    • frame.exclusionsobject[]
    • frame.exclusions[].[].recordIdstring
    • frame.exclusions[].[].kindstring
    • frame.exclusions[].[].reasonstring
    • routeobject
    • route.decisionstring
    • route.foundryobject | null
    • route.reasonstring
    • route.confidenceBasisPointsinteger
    • route.estimatedSavingsobject | null
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/lanes/retrieve" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "string",
    "taskId": "string",
    "query": "string",
    "allowRawContext": true,
    "tokenBudget": 1
  }'

Write a context record

POST/v1/lanes/lanes/write

lanes:writeTested with an API keyIdempotency-Key requiredlanes_writeRecord

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • subjectstringrequired
  • contentRefstringrequired
  • summarystringrequired
  • visibility"Tenant" | "CollectiveCard" | "Public"required
  • labelsstring[]required
  • proposedDataClassstring

Responses

  • 201Record written
    Response fields
    • idstring
    • scopeobject
    • subjectstring
    • contentRefstring
    • summarystring
    • visibility"Tenant" | "CollectiveCard" | "Public"
    • labelsstring[]
  • 409Idempotency-Key reused with a different payload
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/lanes/write" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "string",
    "contentRef": "string",
    "summary": "string",
    "visibility": "Tenant",
    "labels": []
  }'

Ledger

Read the ledger entries for a frame

GET/v1/lanes/ledger/frames/{frameId}

lanes:readTested with an API keylanes_getLedgerFrame

Parameters

  • frameIdpath · stringrequired

Responses

  • 200Ledger entries
    Response fields
    • sequenceinteger
    • frameIdstring
    • kindstring
    • detailany
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/ledger/frames/$FRAME_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Snapshot the ledger (read)

POST/v1/lanes/ledger/snapshots

lanes:readTested with an API keyIdempotency-Key requiredlanes_snapshotLedger

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • exportedBystringrequired

Responses

  • 201Ledger snapshot
    Response fields
    • scopeobject
    • exportedBystring
    • evidenceRefstring
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/ledger/snapshots" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "exportedBy": "string"
  }'

Restore the ledger from a snapshot

POST/v1/lanes/ledger/snapshots/restore

lanes:writeTested with an API keyIdempotency-Key requiredlanes_restoreLedger

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • scopeobject
  • exportedBystring
  • evidenceRefstring

Responses

curl -X POST "https://os.one.ml/api/v1/lanes/ledger/snapshots/restore" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Read your selection's legal hold

GET/v1/lanes/legal-holds/tenant

lanes:readlanes_getLegalHold

Responses

  • 200Legal hold state
    Response fields
    • heldbooleanrequired
    • setBystring | null
    • reasonstring | null
    • setAtMsinteger | null
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/legal-holds/tenant" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Set or clear your selection's legal hold (audited; blocks tenant deletion while set)

POST/v1/lanes/legal-holds/tenant

lanes:writeIdempotency-Key requiredlanes_setLegalHold

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • holdbooleanrequired
  • requestedBystringrequired

    max length 256

  • reasonstringrequired

    max length 2000

Responses

  • 200Legal hold state
    Response fields
    • heldbooleanrequired
    • setBystring | null
    • reasonstring | null
    • setAtMsinteger | null
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/legal-holds/tenant" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "hold": true,
    "requestedBy": "string",
    "reason": "string"
  }'

Operations

Read the receipt for an earlier write

GET/v1/lanes/operations/{operationId}

lanes:readTested with an API keylanes_getOperation

Parameters

  • operationIdpath · stringrequired

Responses

  • 200Operation receipt
    Response fields
    • operationIdstring
    • statestring
    • responseStatusinteger
  • 404Not found in your selection
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/operations/$OPERATION_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Read meter, audit, evidence and probe records

GET/v1/lanes/operations/records

lanes:readTested with an API keylanes_listOperationalRecords

Responses

  • 200Operational records
    Response fields
    • meterRecordsobject[]
    • auditRecordsobject[]
    • evidenceRecordsobject[]
    • probeEventsobject[]
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/operations/records" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Policy

Evaluate data-use policy for an action

POST/v1/lanes/policy/evaluate

lanes:writeTested with an API keyIdempotency-Key requiredlanes_evaluatePolicy

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • actorIdstringrequired
  • actionstringrequired
  • dataClassstringrequired
  • allowRawContextbooleanrequired
  • modelClassstringrequired

Responses

  • 200Policy decision
    Response fields
    • decisionIdstring
    • allowedboolean
    • decision"allow" | "deny"
    • reasonstring
    • requiresRedactionboolean
    • auditLevelstring
    • reasonsstring[]
    • denialReasonsstring[]
    • explanationobject
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/policy/evaluate" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "actorId": "string",
    "action": "string",
    "dataClass": "string",
    "allowRawContext": true,
    "modelClass": "string"
  }'

Review

Approve or reject a promotion candidate

POST/v1/lanes/promotions/{promotionId}/review

lanes:writeTested with an API keyIdempotency-Key requiredlanes_reviewPromotion

Parameters

  • promotionIdpath · stringrequired
  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • promotionIdstringrequired

    Must equal the path promotionId

  • reviewedBystringrequired
  • approvebooleanrequired
  • reasonstringrequired

Responses

  • 200Reviewed candidate
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/promotions/$PROMOTION_ID/review" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "promotionId": "string",
    "reviewedBy": "string",
    "approve": true,
    "reason": "string"
  }'

Promotions

List promotion candidates

GET/v1/lanes/promotions/candidates

lanes:readTested with an API keylanes_listPromotionCandidates

Responses

  • 200Promotion candidates
    Response fields

    Type: object[]

  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lanes/promotions/candidates" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Propose a record for promotion

POST/v1/lanes/promotions/candidates

lanes:writeTested with an API keyIdempotency-Key requiredlanes_proposePromotion

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

  • sourceRecordIdstringrequired
  • proposedBystringrequired
  • sanitizedContentRefstring
  • sanitizedSummarystring
  • labelsstring[]

Responses

  • 202Candidate proposed
    Response fields

    A JSON object.

  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/promotions/candidates" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceRecordId": "string",
    "proposedBy": "string"
  }'

Recovery

Restore records, cache and ledger from a recovery bundle

POST/v1/lanes/recovery/restore

lanes:writeTested with an API keyIdempotency-Key requiredlanes_recoveryRestore

Parameters

  • Idempotency-Keyheader · stringrequired

    Stable key; reuse it to replay the original result, never act twice

Request body application/json

A JSON object; see the description above.

Responses

  • 202Restore report
    Response fields
    • scopeobject
    • contextRecordsRestoredinteger
    • cacheArtifactsRestoredinteger
    • framesRestoredinteger
    • ledgerEntriesRestoredinteger
    • stageOrderstring[]
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lanes/recovery/restore" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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