API reference
company-md
company.md (a founder's living company file, shared with investors' agents)
- Operations
- 24
- Base path
https://os.one.ml/api/v1/company-md- Scopes
company-md:readcompany-md:write- API keys
- —
- SDK
genesis.call('companyMd_eraseCompanyMd', …)- MCP
- 20 tools; the other 4 through
genesis_call
Operations
Erase
Erase everything company.md keeps for me (every share is revoked first)
POST/v1/company-md/erase
Responses
- 200Counts of what was erased
Response fields
A JSON object.
- 503An error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/erase" \
-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('companyMd_eraseCompanyMd'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_eraseCompanyMd",
"arguments": {}
}
}Export
Everything company.md keeps for me, as one JSON
GET/v1/company-md/export
Responses
- 200The export
Response fields
A JSON object.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/export" \
-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('companyMd_exportCompanyMd'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_exportCompanyMd",
"arguments": {}
}
}Files
My company.md documents, newest first
GET/v1/company-md/files
Responses
- 200The files
Response fields
A JSON object.
- 401An error
- 403An error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/files" \
-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('companyMd_listFiles'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_listFiles",
"arguments": {}
}
}Make a company file from a Boxes Doc I own
POST/v1/company-md/files
Scope company_md:write. {company, box_doc, text}: the founder's client (the Console, or One in the founder's session) reads the Doc through Boxes GET /v1/docs/{id} as the person and sends its text; company-md reads no Boxes itself. Without text the answer is 409 box_doc_unreadable. Requires an Idempotency-Key.
Parameters
Idempotency-Keyheader · stringrequired
Request body application/json
companystringrequiredmin length 1 · max length 200
box_docstringrequiredmin length 1 · max length 200
textstringThe Doc's text as Boxes returned it to the founder's client (up to 128 KiB). max length 131072
Responses
- 200The same file (replay of the same key and body)
Response fields
A JSON object.
- 201The file
Response fields
A JSON object.
- 400An error
- 409An error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/files" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"company": "string",
"box_doc": "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('companyMd_createFile', {
body: {
company: 'string',
box_doc: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_createFile",
"arguments": {
"body": {
"company": "string",
"box_doc": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}One file, its latest version, drift flags, counts and schedule
GET/v1/company-md/files/{file}
Parameters
filepath · stringrequired
Responses
- 200The file
Response fields
A JSON object.
- 404An error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/files/$FILE" \
-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('companyMd_getFile', {
file: '<file>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_getFile",
"arguments": {
"file": "<file>"
}
}
}Delete a file, its versions and its shares (every share is revoked first)
DELETE/v1/company-md/files/{file}
Parameters
filepath · stringrequired
Responses
- 200Deleted
Response fields
A JSON object.
- 404An error
- 503An error
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/company-md/files/$FILE" \
-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('companyMd_deleteFile', {
file: '<file>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_deleteFile",
"arguments": {
"file": "<file>"
}
}
}Change a file's reader rules (off-limits topics) or its sync schedule
PATCH/v1/company-md/files/{file}
Parameters
filepath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200The file
Response fields
A JSON object.
- 400An error
- 403An error
- 404An error
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/company-md/files/$FILE" \
-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('companyMd_updateFile', {
file: '<file>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_updateFile",
"arguments": {
"file": "<file>",
"body": {}
}
}
}Drift
Report a sync pass (facts that changed, disagree with their source or went stale)
POST/v1/company-md/files/{file}/drift
Parameters
filepath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200The open drift list
Response fields
A JSON object.
- 400An error
- 404An error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/files/$FILE/drift" \
-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('companyMd_reportDrift', {
file: '<file>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_reportDrift",
"arguments": {
"file": "<file>",
"body": {}
}
}
}Publish
Check the Doc and publish it as the next version readers get (dry_run=1 checks only)
POST/v1/company-md/files/{file}/publish
Scope company_md:write. The body carries the Doc's text (read through Boxes as the person by the founder's client; company-md reads no Boxes itself) and the service runs the company.md check on it. dry_run=1 stores nothing and answers content_sha256, base_version and the amount lines; for One (not the founder in person) it also raises the founder's publish card in Taps and answers card_id, approval (the card's Taps id) and publish_body, the exact request body the card binds. A new version published by anyone but the founder in person needs that card approved: send publish_body verbatim with x-one-approval: <approval>; otherwise 403 person_required with action: publish.
Parameters
filepath · stringrequireddry_runquery · "0" | "1" | "true" | "false"x-one-approvalheader · string
Request body application/json
textstringThe Doc's text as Boxes returned it to the founder's client (up to 128 KiB); what is checked and published. max length 131072
content_sha256stringFrom the dry run; bound on the founder's publish card. pattern
^[0-9a-f]{64}$base_versionintegerFrom the dry run (the latest version then; 0 for the first publish); bound on the card. min 0
amount_lines_sha256stringpattern
^[0-9a-f]{64}$
Responses
- 200A dry run, or the same content as the latest version
Response fields
A JSON object.
- 201The new version
Response fields
A JSON object.
- 403An error
- 409An error
- 422An error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/files/$FILE/publish" \
-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('companyMd_publishFile', {
file: '<file>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_publishFile",
"arguments": {
"file": "<file>",
"body": {}
}
}
}Shares
Versions
A file's published versions, newest first
GET/v1/company-md/files/{file}/versions
Parameters
filepath · stringrequired
Responses
- 200The versions
Response fields
A JSON object.
- 404An error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/files/$FILE/versions" \
-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('companyMd_listVersions', {
file: '<file>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_listVersions",
"arguments": {
"file": "<file>"
}
}
}One published version's text and facts
GET/v1/company-md/files/{file}/versions/{n}
Parameters
filepath · stringrequirednpath · integerrequired
Responses
- 200The version
Response fields
A JSON object.
- 404An error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/files/$FILE/versions/$N" \
-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('companyMd_getVersion', {
file: '<file>',
n: '<n>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_getVersion",
"arguments": {
"file": "<file>",
"n": "<n>"
}
}
}Format
The company.md format (Markdown) and the JSON Schema of its front matter
GET/v1/company-md/format
Responses
- 200The format
Response fields
A JSON object.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/format" \
-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('companyMd_getFormat'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_getFormat",
"arguments": {}
}
}Pricing
The price per reader question in force
GET/v1/company-md/pricing
Responses
- 200The price
Response fields
A JSON object.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/pricing" \
-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('companyMd_getPricing'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_getPricing",
"arguments": {}
}
}Decide
Answer or decline a reader's held question
POST/v1/company-md/questions/{question}/decide
Parameters
questionpath · stringrequired
Request body application/json
A JSON object; see the description above.
Responses
- 200The question
Response fields
A JSON object.
- 403An error
- 404An error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/questions/$QUESTION/decide" \
-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('companyMd_decideQuestion', {
question: '<question>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "companyMd_decideQuestion",
"arguments": {
"question": "<question>",
"body": {}
}
}
}S
Ask
Facts
Guest view
Log
L1fe AI Inc. · Built from Genesis 0.3.3 and the live gateway on 2026-10-25. Support