OneOS Docs
Genesis 0.3.1 Console

API reference

Lots

Tamper-evident records: a chain of events for a project, its history, and verifying the chain.

Operations
28
Base path
https://os.one.ml/api/v1/lots
Scopes
lots:read lots:review lots:write
API keys
—
SDK
genesis.call('lots_erase_tasks_get', …) · helpers under genesis.lots
CLI
genesis lots
MCP
20 tools; the other 8 through genesis_call

Operations

OperationEndpointAPI key
An erase task and its read-back evidenceGET/erase-tasks/{task}—
The event kinds a caller may append, with their schemasGET/event-kinds—
Projects you hold a role on, newest firstGET/projects—
Create a project (a new chain)POST/projects—
A project and its chain headGET/projects/{project}—
Blueprints in this project, newest first (head version only)GET/projects/{project}/blueprints—
Create a blueprint at version 1POST/projects/{project}/blueprints—
A blueprint with every version and its reviewsGET/projects/{project}/blueprints/{blueprint}—
Add the next blueprint versionPOST/projects/{project}/blueprints/{blueprint}/versions—
Recompute the project's hash chainGET/projects/{project}/chain:verify—
A page of the project's events after a cursor, oldest firstGET/projects/{project}/events—
Append an event to the project's chainPOST/projects/{project}/events—
Long-poll for events after a cursor (up to 60 s)GET/projects/{project}/events:wait—
Export a project's record (rule 11)GET/projects/{project}/export—
Who holds a role on this projectGET/projects/{project}/grants—
Give a subject a role on this projectPUT/projects/{project}/grants/{subject}—
Remove a subject from this projectDELETE/projects/{project}/grants/{subject}—
Intents in this project, newest first (head version only)GET/projects/{project}/intents—
Create an intent at version 1POST/projects/{project}/intents—
A intent with every version and its reviewsGET/projects/{project}/intents/{intent}—
Add the next intent versionPOST/projects/{project}/intents/{intent}/versions—
One lot: its intent, blueprints and reviewsGET/projects/{project}/lots/{lot}—
The AI reviews of one versionGET/projects/{project}/reviews—
Record an AI review (`factory.review.v1`)POST/projects/{project}/reviews—
Erase a subject (rule 11)POST/subjects/{subject}:erase—
The caller's own subject id and commitment (created on first use)GET/subjects/me—
Export what Lots keeps about you (rule 11)GET/subjects/me/export—
This tenant's month-to-date events and bytes, and its capsGET/usage—

Erase tasks

An erase task and its read-back evidence

GET/v1/lots/erase-tasks/{task}

lots:readlots_erase_tasks_get

Scope lots:read at the gateway, and then Lots decides: the caller needs lots:admin, or must be a person in their own session who is the task's requester or erased subject, or who presents the receipt from their own self erase. Everyone else, including an API key or agent with only lots:read, gets the same 404 as an unknown id. evidence appears only when state is done.

Parameters

  • taskpath · stringrequired
  • receiptquery · string

    The receipt from your own self erase. It works only with your own person session, in the same org and environment. A query string can reach request logs, so send it only to read this task.

Responses

  • 200The task
    Response fields
    • task_idstringrequired
    • subject_idstringrequired
    • basis"self" | "org_admin"required
    • statestringrequired
    • evidenceobject
    • updated_atstring (date-time)required
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/erase-tasks/$TASK" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Event kinds

The event kinds a caller may append, with their schemas

GET/v1/lots/event-kinds

lots:readlots_event_kinds

Scope lots:read.

Responses

  • 200The kinds
    Response fields
    • kindsobjectrequired
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/event-kinds" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Projects

Projects you hold a role on, newest first

GET/v1/lots/projects

lots:readlots_projects_list

Scope lots:read. Page with cursor.

Parameters

  • cursorquery · string
  • limitquery · integer

Responses

  • 200A page of projects
    Response fields
    • projectsobject[]required
    • projects[].[].project_idstringrequired

      pattern ^prj_[A-Za-z0-9]{16,40}$

    • projects[].[].name_commitstringrequired

      pattern ^[0-9a-f]{64}$

    • projects[].[].name_file_idstring | null
    • projects[].[].env"sandbox" | "live"required
    • projects[].[].created_atstring (date-time)
    • projects[].[].headobjectrequired
    • projects[].[].head.seqintegerrequired

      min 0

    • projects[].[].head.event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • cursorstring | nullrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a project (a new chain)

POST/v1/lots/projects

lots:writelots_projects_create

Scope lots:write. The chain starts with a project.created event at seq 1.

Request body application/json

  • name_commitstringrequired

    pattern ^[0-9a-f]{64}$

  • name_file_idstring | null

    The Boxes file that holds the words (lots.body.v1). pattern ^[A-Za-z0-9_-]{1,128}$

Responses

  • 201The new project
    Response fields
    • project_idstringrequired

      pattern ^prj_[A-Za-z0-9]{16,40}$

    • name_commitstringrequired

      pattern ^[0-9a-f]{64}$

    • name_file_idstring | null
    • env"sandbox" | "live"required
    • created_atstring (date-time)
    • headobjectrequired
    • head.seqintegerrequired

      min 0

    • head.event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name_commit": "string"
  }'

A project and its chain head

GET/v1/lots/projects/{project}

lots:readlots_projects_get

Scope lots:read.

Parameters

  • projectpath · stringrequired

Responses

  • 200The project
    Response fields
    • project_idstringrequired

      pattern ^prj_[A-Za-z0-9]{16,40}$

    • name_commitstringrequired

      pattern ^[0-9a-f]{64}$

    • name_file_idstring | null
    • env"sandbox" | "live"required
    • created_atstring (date-time)
    • headobjectrequired
    • head.seqintegerrequired

      min 0

    • head.event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Blueprints

Blueprints in this project, newest first (head version only)

GET/v1/lots/projects/{project}/blueprints

lots:readlots_blueprints_list

Scope lots:read and any project role. Filter by lot; page with cursor.

Parameters

  • projectpath · stringrequired
  • lotquery · string
  • cursorquery · string

    o1.<seq> from an earlier page

  • limitquery · integer

Responses

  • 200A page of blueprints
    Response fields
    • itemsobject[]required
    • items[].[].kind"intent" | "blueprint"required
    • items[].[].idstringrequired
    • items[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • items[].[].versionintegerrequired

      min 1

    • items[].[].version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • items[].[].prev_version_sha256string | null
    • items[].[].body_file_idstring | null
    • items[].[].objectobject
    • items[].[].event_seqinteger
    • items[].[].created_atstring (date-time)
    • cursorstring | nullrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/blueprints" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create a blueprint at version 1

POST/v1/lots/projects/{project}/blueprints

lots:writelots_blueprints_create

Scope lots:write and editor or admin on the project. It belongs to the lot of the intent version it names. Lots stores commitments and Boxes file ids only, never the words.

Parameters

  • projectpath · stringrequired

Request body application/json

  • intent_version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • title_commitstringrequired

    pattern ^[0-9a-f]{64}$

  • sectionsobject[]required
  • sections[].[].idstringrequired

    pattern ^[a-z][a-z0-9_-]{0,63}$

  • sections[].[].commitstringrequired

    pattern ^[0-9a-f]{64}$

  • refsobject
  • refs.rulesobject[]
  • refs.rules[].[].idstringrequired

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

  • refs.rules[].[].version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • refs.codeobject[]
  • refs.code[].[].repostringrequired

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

  • refs.code[].[].pathstringrequired

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

  • refs.code[].[].commitstringrequired

    pattern ^[0-9a-f]{40}$

  • bodyobject | null

Responses

  • 201The new blueprint version
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versionintegerrequired

      min 1

    • version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • prev_version_sha256string | null
    • body_file_idstring | null
    • objectobject
    • event_seqinteger
    • created_atstring (date-time)
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/blueprints" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "intent_version_sha256": "string",
    "title_commit": "string",
    "sections": [
      {
        "id": "string",
        "commit": "string"
      }
    ]
  }'

A blueprint with every version and its reviews

GET/v1/lots/projects/{project}/blueprints/{blueprint}

lots:readlots_blueprints_get

Scope lots:read and any project role.

Parameters

  • projectpath · stringrequired
  • blueprintpath · stringrequired

Responses

  • 200The blueprint
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • headobjectrequired
    • head.versionintegerrequired
    • head.version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • versionsobject[]required
    • versions[].[].kind"intent" | "blueprint"required
    • versions[].[].idstringrequired
    • versions[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versions[].[].versionintegerrequired

      min 1

    • versions[].[].version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • versions[].[].prev_version_sha256string | null
    • versions[].[].body_file_idstring | null
    • versions[].[].objectobject
    • versions[].[].event_seqinteger
    • versions[].[].created_atstring (date-time)
    • reviewsobject[]required
    • reviews[].[].schemastringrequired
    • reviews[].[].subjectobjectrequired
    • reviews[].[].statusstringrequired
    • reviews[].[].verdictstring | null
    • reviews[].[].review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • reviews[].[].event_seqintegerrequired
    • reviews[].[].recorded_atstring (date-time)required
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/blueprints/$BLUEPRINT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Add the next blueprint version

POST/v1/lots/projects/{project}/blueprints/{blueprint}/versions

lots:writelots_blueprints_add_version

Scope lots:write and editor or admin. Name the version you edited in prev_version_sha256; if another edit landed first the answer is 409 STALE_VERSION.

Parameters

  • projectpath · stringrequired
  • blueprintpath · stringrequired

Request body application/json

  • prev_version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • intent_version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • title_commitstringrequired

    pattern ^[0-9a-f]{64}$

  • sectionsobject[]required
  • sections[].[].idstringrequired

    pattern ^[a-z][a-z0-9_-]{0,63}$

  • sections[].[].commitstringrequired

    pattern ^[0-9a-f]{64}$

  • refsobject
  • refs.rulesobject[]
  • refs.rules[].[].idstringrequired

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

  • refs.rules[].[].version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • refs.codeobject[]
  • refs.code[].[].repostringrequired

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

  • refs.code[].[].pathstringrequired

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

  • refs.code[].[].commitstringrequired

    pattern ^[0-9a-f]{40}$

  • bodyobject | null

Responses

  • 201The new blueprint version
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versionintegerrequired

      min 1

    • version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • prev_version_sha256string | null
    • body_file_idstring | null
    • objectobject
    • event_seqinteger
    • created_atstring (date-time)
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 409Conflict (QUORUM_REQUIRED, STALE_VERSION)
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/blueprints/$BLUEPRINT/versions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "intent_version_sha256": "string",
    "title_commit": "string",
    "sections": [
      {
        "id": "string",
        "commit": "string"
      }
    ],
    "prev_version_sha256": "string"
  }'

Chain:verify

Recompute the project's hash chain

GET/v1/lots/projects/{project}/chain:verify

lots:readlots_chain_verify

Scope lots:read. ok false names the first failing seq and why.

Parameters

  • projectpath · stringrequired

Responses

  • 200The verification result
    Response fields
    • okbooleanrequired
    • seqintegerrequired
    • head_sha256stringrequired
    • failed_at_seqinteger
    • reasonstring
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/chain:verify" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Events

A page of the project's events after a cursor, oldest first

GET/v1/lots/projects/{project}/events

lots:readlots_events_list

Scope lots:read. Pass the returned cursor back for the next page; more is true when the page is full.

Parameters

  • projectpath · stringrequired
  • cursorquery · string

    c1.<seq> from an earlier page; omit to start at the beginning

  • limitquery · integer

Responses

  • 200A page of events
    Response fields
    • eventsobject[]required
    • events[].[].seqintegerrequired

      min 1

    • events[].[].kindstringrequired
    • events[].[].subjectobject | nullrequired
    • events[].[].actorobjectrequired
    • events[].[].actor.subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • events[].[].actor.commitstringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].atstring (date-time)required
    • events[].[].payloadobjectrequired
    • events[].[].payload_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].prev_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • cursorstringrequired
    • morebooleanrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Append an event to the project's chain

POST/v1/lots/projects/{project}/events

lots:writelots_events_append

Scope lots:write. The actor is the verified caller (as a subject id and commitment), never taken from the body. Reserved kinds are refused (400 INVALID_KIND). One writer per chain: concurrent appends queue and stay gapless. Payloads are capped per event and per tenant-minute (413, 429).

Parameters

  • projectpath · stringrequired

Request body application/json

  • kindstringrequired

    pattern ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*){1,3}$

  • subjectobject | null
  • payloadobject

Responses

  • 201The appended event
    Response fields
    • seqintegerrequired

      min 1

    • kindstringrequired
    • subjectobject | nullrequired
    • actorobjectrequired
    • actor.subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • actor.commitstringrequired

      pattern ^[0-9a-f]{64}$

    • atstring (date-time)required
    • payloadobjectrequired
    • payload_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • prev_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • cursorstringrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/events" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "string"
  }'

Events:wait

Long-poll for events after a cursor (up to 60 s)

GET/v1/lots/projects/{project}/events:wait

lots:readlots_events_wait

Scope lots:read. Returns as soon as there is at least one event after cursor, or an empty page when timeout_s passes.

Parameters

  • projectpath · stringrequired
  • cursorquery · string

    c1.<seq> from an earlier page; omit to start at the beginning

  • limitquery · integer
  • timeout_squery · integer

Responses

  • 200A page of events (possibly empty)
    Response fields
    • eventsobject[]required
    • events[].[].seqintegerrequired

      min 1

    • events[].[].kindstringrequired
    • events[].[].subjectobject | nullrequired
    • events[].[].actorobjectrequired
    • events[].[].actor.subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • events[].[].actor.commitstringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].atstring (date-time)required
    • events[].[].payloadobjectrequired
    • events[].[].payload_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].prev_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • events[].[].event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • cursorstringrequired
    • morebooleanrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/events:wait" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Export

Export a project's record (rule 11)

GET/v1/lots/projects/{project}/export

lots:readlots_projects_export

Scope lots:read and any role on the project; the role is checked again on every page. Sections in order: events, versions, reviews, then grants for a project admin or a lots:admin caller who has a role. The first page fixes as_of, so later writes do not appear; follow cursor until done. Lots keeps commitments and Boxes file ids, never body text or project names (bodies: boxes), so a full export also needs the Boxes export of those files. Events re-hash to as_of offline by the lots_chain_verify rule. At most 4 open exports per tenant per instance, else 429 TOO_MANY_EXPORTS. Not in the factory MCP profile.

Parameters

  • projectpath · stringrequired
  • cursorquery · string

    The cursor from the previous export page; omit to start

Responses

  • 200One page of the export
    Response fields
    • format"lots.export.v1"required
    • project_idstringrequired

      pattern ^prj_[A-Za-z0-9]{16,40}$

    • envstringrequired
    • as_ofobjectrequired
    • as_of.seqintegerrequired

      min 0

    • as_of.event_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • section"events" | "versions" | "reviews" | "grants"required
    • rowsobject[]required
    • cursorstring | nullrequired
    • donebooleanrequired
    • projectobject

      First page only

    • project.name_commitstringrequired
    • project.name_file_idstring | null
    • project.created_atstring (date-time)required
    • bodies"boxes"

      First page only. The words stay in Boxes.

  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/export" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Grants

Who holds a role on this project

GET/v1/lots/projects/{project}/grants

lots:readlots_grants_list

Scope lots:read and project admin, or lots:admin for an org admin recovering a project.

Parameters

  • projectpath · stringrequired

Responses

  • 200The grants
    Response fields
    • grantsobject[]required
    • grants[].[].subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • grants[].[].role"viewer" | "reviewer" | "editor" | "signer" | "release_signer" | "admin"required
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/grants" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Give a subject a role on this project

PUT/v1/lots/projects/{project}/grants/{subject}

lots:writelots_grants_set

Scope lots:write and project admin, or lots:admin. Recorded on the chain. Not an MCP tool, so a model cannot change who has access.

Parameters

  • projectpath · stringrequired
  • subjectpath · stringrequired

Request body application/json

  • role"viewer" | "reviewer" | "editor" | "signer" | "release_signer" | "admin"required

Responses

  • 200The grant
    Response fields
    • subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • role"viewer" | "reviewer" | "editor" | "signer" | "release_signer" | "admin" | nullrequired
    • changedbooleanrequired
    • seqinteger
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 409Conflict (QUORUM_REQUIRED, STALE_VERSION)
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/lots/projects/$PROJECT/grants/$SUBJECT" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "role": "viewer"
  }'

Remove a subject from this project

DELETE/v1/lots/projects/{project}/grants/{subject}

lots:writelots_grants_delete

Scope lots:write and project admin, or lots:admin. Recorded on the chain. Not an MCP tool.

Parameters

  • projectpath · stringrequired
  • subjectpath · stringrequired

Responses

  • 200The grant, now null
    Response fields
    • subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • role"viewer" | "reviewer" | "editor" | "signer" | "release_signer" | "admin" | nullrequired
    • changedbooleanrequired
    • seqinteger
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 409Conflict (QUORUM_REQUIRED, STALE_VERSION)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/lots/projects/$PROJECT/grants/$SUBJECT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Intents

Intents in this project, newest first (head version only)

GET/v1/lots/projects/{project}/intents

lots:readlots_intents_list

Scope lots:read and any project role. Filter by lot; page with cursor.

Parameters

  • projectpath · stringrequired
  • lotquery · string
  • cursorquery · string

    o1.<seq> from an earlier page

  • limitquery · integer

Responses

  • 200A page of intents
    Response fields
    • itemsobject[]required
    • items[].[].kind"intent" | "blueprint"required
    • items[].[].idstringrequired
    • items[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • items[].[].versionintegerrequired

      min 1

    • items[].[].version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • items[].[].prev_version_sha256string | null
    • items[].[].body_file_idstring | null
    • items[].[].objectobject
    • items[].[].event_seqinteger
    • items[].[].created_atstring (date-time)
    • cursorstring | nullrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/intents" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Create an intent at version 1

POST/v1/lots/projects/{project}/intents

lots:writelots_intents_create

Scope lots:write and editor or admin on the project. An intent opens a new lot (LOT-n). Lots stores commitments and Boxes file ids only, never the words.

Parameters

  • projectpath · stringrequired

Request body application/json

  • title_commitstringrequired

    pattern ^[0-9a-f]{64}$

  • behavioursobject[]
  • behaviours[].[].idstringrequired

    pattern ^[a-z][a-z0-9_-]{0,63}$

  • behaviours[].[].commitstringrequired

    pattern ^[0-9a-f]{64}$

  • sourceobject
  • source.kind"person" | "import" | "rules" | "agent"

    default "person"

  • source.rule_refsobject[]
  • source.rule_refs[].[].idstringrequired

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

  • source.rule_refs[].[].version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • bodyobject | null

Responses

  • 201The new intent version
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versionintegerrequired

      min 1

    • version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • prev_version_sha256string | null
    • body_file_idstring | null
    • objectobject
    • event_seqinteger
    • created_atstring (date-time)
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/intents" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title_commit": "string"
  }'

A intent with every version and its reviews

GET/v1/lots/projects/{project}/intents/{intent}

lots:readlots_intents_get

Scope lots:read and any project role.

Parameters

  • projectpath · stringrequired
  • intentpath · stringrequired

Responses

  • 200The intent
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • headobjectrequired
    • head.versionintegerrequired
    • head.version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • versionsobject[]required
    • versions[].[].kind"intent" | "blueprint"required
    • versions[].[].idstringrequired
    • versions[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versions[].[].versionintegerrequired

      min 1

    • versions[].[].version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • versions[].[].prev_version_sha256string | null
    • versions[].[].body_file_idstring | null
    • versions[].[].objectobject
    • versions[].[].event_seqinteger
    • versions[].[].created_atstring (date-time)
    • reviewsobject[]required
    • reviews[].[].schemastringrequired
    • reviews[].[].subjectobjectrequired
    • reviews[].[].statusstringrequired
    • reviews[].[].verdictstring | null
    • reviews[].[].review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • reviews[].[].event_seqintegerrequired
    • reviews[].[].recorded_atstring (date-time)required
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/intents/$INTENT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Add the next intent version

POST/v1/lots/projects/{project}/intents/{intent}/versions

lots:writelots_intents_add_version

Scope lots:write and editor or admin. Name the version you edited in prev_version_sha256; if another edit landed first the answer is 409 STALE_VERSION.

Parameters

  • projectpath · stringrequired
  • intentpath · stringrequired

Request body application/json

  • prev_version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • title_commitstringrequired

    pattern ^[0-9a-f]{64}$

  • behavioursobject[]
  • behaviours[].[].idstringrequired

    pattern ^[a-z][a-z0-9_-]{0,63}$

  • behaviours[].[].commitstringrequired

    pattern ^[0-9a-f]{64}$

  • sourceobject
  • source.kind"person" | "import" | "rules" | "agent"

    default "person"

  • source.rule_refsobject[]
  • source.rule_refs[].[].idstringrequired

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

  • source.rule_refs[].[].version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • bodyobject | null

Responses

  • 201The new intent version
    Response fields
    • kind"intent" | "blueprint"required
    • idstringrequired
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • versionintegerrequired

      min 1

    • version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • prev_version_sha256string | null
    • body_file_idstring | null
    • objectobject
    • event_seqinteger
    • created_atstring (date-time)
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 409Conflict (QUORUM_REQUIRED, STALE_VERSION)
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/intents/$INTENT/versions" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title_commit": "string",
    "prev_version_sha256": "string"
  }'

Lots

One lot: its intent, blueprints and reviews

GET/v1/lots/projects/{project}/lots/{lot}

lots:readlots_lot_get

Scope lots:read and any project role. At most 50 objects; truncated says when there are more. gaps names the stages not recorded yet.

Parameters

  • projectpath · stringrequired
  • lotpath · stringrequired

Responses

  • 200The lot
    Response fields
    • lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • project_idstringrequired

      pattern ^prj_[A-Za-z0-9]{16,40}$

    • intentobject | nullrequired
    • blueprintsobject[]required
    • blueprints[].[].kind"intent" | "blueprint"required
    • blueprints[].[].idstringrequired
    • blueprints[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • blueprints[].[].headobjectrequired
    • blueprints[].[].head.versionintegerrequired
    • blueprints[].[].head.version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • blueprints[].[].versionsobject[]required
    • blueprints[].[].versions[].[].kind"intent" | "blueprint"required
    • blueprints[].[].versions[].[].idstringrequired
    • blueprints[].[].versions[].[].lot_nostringrequired

      pattern ^LOT-[1-9][0-9]{0,11}$

    • blueprints[].[].versions[].[].versionintegerrequired

      min 1

    • blueprints[].[].versions[].[].version_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • blueprints[].[].versions[].[].prev_version_sha256string | null
    • blueprints[].[].versions[].[].body_file_idstring | null
    • blueprints[].[].versions[].[].objectobject
    • blueprints[].[].versions[].[].event_seqinteger
    • blueprints[].[].versions[].[].created_atstring (date-time)
    • blueprints[].[].reviewsobject[]required
    • blueprints[].[].reviews[].[].schemastringrequired
    • blueprints[].[].reviews[].[].subjectobjectrequired
    • blueprints[].[].reviews[].[].statusstringrequired
    • blueprints[].[].reviews[].[].verdictstring | null
    • blueprints[].[].reviews[].[].review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • blueprints[].[].reviews[].[].event_seqintegerrequired
    • blueprints[].[].reviews[].[].recorded_atstring (date-time)required
    • truncatedbooleanrequired
    • gapsstring[]required
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/lots/$LOT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Reviews

The AI reviews of one version

GET/v1/lots/projects/{project}/reviews

lots:readlots_reviews_list

Scope lots:read and any project role. subject is the version hash.

Parameters

  • projectpath · stringrequired
  • subjectquery · stringrequired

Responses

  • 200The reviews
    Response fields
    • reviewsobject[]required
    • reviews[].[].schemastringrequired
    • reviews[].[].subjectobjectrequired
    • reviews[].[].statusstringrequired
    • reviews[].[].verdictstring | null
    • reviews[].[].review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • reviews[].[].event_seqintegerrequired
    • reviews[].[].recorded_atstring (date-time)required
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/projects/$PROJECT/reviews?subject=$SUBJECT" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Record an AI review (`factory.review.v1`)

POST/v1/lots/projects/{project}/reviews

lots:reviewlots_reviews_record

Scope lots:review (lots:write and lots:admin also satisfy it) and project role reviewer, editor or admin. lots:review opens no other route. Lots re-derives review_sha256 and the verdict from the findings; a review is advice and never signs anything. Recording the same review again answers 200 with created: false. Not an MCP tool: the review job posts these.

Parameters

  • projectpath · stringrequired

Request body application/json

  • schema"factory.review.v1"required
  • subjectobjectrequired
  • subject.kind"intent" | "blueprint"required
  • subject.version_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • reviewerobjectrequired
  • reviewer.modelstringrequired
  • reviewer.served_modelstring | null
  • reviewer.familystring | null
  • reviewer.foundry_request_idstring | null
  • reviewer.rubric_skill_sha256stringrequired

    pattern ^[0-9a-f]{64}$

  • status"ok" | "failed"required
  • failurestring | null
  • verdict"pass" | "concerns" | "block" | null
  • findingsobject[]
  • findings[].[].idstring | null
  • findings[].[].severity"block" | "concern" | "info"required
  • findings[].[].locatorobject
  • findings[].[].locator.sectionstring | null
  • findings[].[].locator.lineinteger | null
  • findings[].[].text_commitstring | null
  • summary_commitstring | null
  • text_file_idstring | null
  • review_sha256string

    pattern ^[0-9a-f]{64}$

  • cost_refobject | null
  • cost_ref.receipt_idstring | null
  • cost_ref.cost_sourcestring | null

Responses

  • 200This review was already recorded (created: false)
    Response fields
    • review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • createdbooleanrequired
    • event_seqinteger
  • 201The review was recorded
    Response fields
    • review_sha256stringrequired

      pattern ^[0-9a-f]{64}$

    • createdbooleanrequired
    • event_seqinteger
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 413Body or payload over its cap (BODY_TOO_LARGE, PAYLOAD_TOO_LARGE)
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/projects/$PROJECT/reviews" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "schema": "factory.review.v1",
    "subject": {
      "kind": "intent",
      "version_sha256": "string"
    },
    "reviewer": {
      "model": "string",
      "rubric_skill_sha256": "string"
    },
    "status": "ok"
  }'

Subjects

Erase a subject (rule 11)

POST/v1/lots/subjects/{subject}:erase

lots:readlots_subjects_erase

A person erases their own subject from their own session; an API key, agent token or other delegated caller naming its own subject gets 403 DELEGATED_CALLER. Erasing another member's subject needs lots:admin, and once that subject has sign-offs it is 409 QUORUM_REQUIRED. Starts a durable erase task (key destroyed, vault row removed, every table scanned, every touched chain re-verified); read it with lots_erase_tasks_get. A self erase also returns receipt, once and only here: afterwards the person has no subject, and the receipt is how they read their proof. Not in the factory MCP profile (a person does this in their own session).

Parameters

  • subjectpath · stringrequired

Responses

  • 202The erase task
    Response fields
    • task_idstringrequired

      pattern ^era_[0-9a-f]{32}$

    • statestringrequired
    • evidenceobject
    • receiptstring

      Self erase only, returned once. Keep it to read this task later with lots_erase_tasks_get.

  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 409Conflict (QUORUM_REQUIRED, STALE_VERSION)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/lots/subjects/$SUBJECT:erase" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

The caller's own subject id and commitment (created on first use)

GET/v1/lots/subjects/me

lots:readlots_subjects_me

Scope lots:read.

Responses

  • 200The caller's subject
    Response fields
    • subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • commitstringrequired

      pattern ^[0-9a-f]{64}$

  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/subjects/me" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Export what Lots keeps about you (rule 11)

GET/v1/lots/subjects/me/export

lots:readlots_subjects_me_export

Scope lots:read, from the person's own session only; an API key, agent token or other delegated caller gets 403 DELEGATED_CALLER. Never creates a subject: with none, or after an erase, it is 404. Sections in order: subject (without the salt), grants, erase_tasks (codes and a count), acted_events (an index with no payloads). Follow cursor until done. Not in the factory MCP profile (a person does this in their own session).

Parameters

  • cursorquery · string

    The cursor from the previous export page; omit to start

Responses

  • 200One page of the export
    Response fields
    • format"lots.export.v1"required
    • envstringrequired
    • subject_idstringrequired

      pattern ^sub_[0-9a-f]{32}$

    • section"subject" | "grants" | "erase_tasks" | "acted_events"required
    • rowsobject[]required
    • cursorstring | nullrequired
    • donebooleanrequired
  • 400Invalid request (INVALID_JSON, INVALID_NAME, INVALID_KIND, INVALID_PAYLOAD, INVALID_SUBJECT, INVALID_CURSOR, INVALID_FIELD, UNKNOWN_FIELD, DUPLICATE_ID, INVALID_LOT, VERDICT_MISMATCH, REVIEW_HASH_MISMATCH)
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 404Not found in this tenant
  • 429Tenant-minute cap reached, or too many open exports (TOO_MANY_EXPORTS); see retry-after or retry_after_s
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/subjects/me/export" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Usage

This tenant's month-to-date events and bytes, and its caps

GET/v1/lots/usage

lots:readlots_usage

Scope lots:read.

Responses

  • 200Usage
    Response fields
    • envstringrequired
    • month_to_dateobjectrequired
    • month_to_date.eventsinteger
    • month_to_date.bytesinteger
    • capsobjectrequired
    • caps.events_per_minuteinteger
    • caps.bytes_per_minuteinteger
    • caps.payload_max_bytesinteger
  • 401No verified identity
  • 403Missing scope (FORBIDDEN, with need), or a delegated caller on a person's own route (DELEGATED_CALLER)
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/lots/usage" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

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