OneOS Docs
Genesis 0.3.3 Console

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:read company-md:write
API keys
—
SDK
genesis.call('companyMd_eraseCompanyMd', …)
CLI
genesis company-md
MCP
20 tools; the other 4 through genesis_call

Operations

OperationEndpointAPI key
Erase everything company.md keeps for me (every share is revoked first)POST/erase—
Everything company.md keeps for me, as one JSONGET/export—
My company.md documents, newest firstGET/files—
Make a company file from a Boxes Doc I ownPOST/files—
One file, its latest version, drift flags, counts and scheduleGET/files/{file}—
Delete a file, its versions and its shares (every share is revoked first)DELETE/files/{file}—
Change a file's reader rules (off-limits topics) or its sync schedulePATCH/files/{file}—
Report a sync pass (facts that changed, disagree with their source or went stale)POST/files/{file}/drift—
Check the Doc and publish it as the next version readers get (dry_run=1 checks only)POST/files/{file}/publish—
A file's shares with counts and last viewGET/files/{file}/shares—
Share a file read-only with one reader (a link and its token, shown once)POST/files/{file}/shares—
A file's published versions, newest firstGET/files/{file}/versions—
One published version's text and factsGET/files/{file}/versions/{n}—
The company.md format (Markdown) and the JSON Schema of its front matterGET/format—
The price per reader question in forceGET/pricing—
Answer or decline a reader's held questionPOST/questions/{question}/decide—
A share's latest version as Markdown (the reader's link; no OneOS sign-in)GET/s/{token}—
Ask the founder's One a question about the file (when the founder turned asks on)POST/s/{token}/ask—
A reader question's status and answer (wait_s 0..25 long-polls)GET/s/{token}/ask/{question}—
A share's open facts as JSONGET/s/{token}/facts—
Revoke a share; its link stops working at once and held questions are declinedDELETE/shares/{share}—
Rename a share, change its expiry, asks or the facts that need approvalPATCH/shares/{share}—
What a share's reader sees (the version and facts they get), for answering their questionsGET/shares/{share}/guest-view—
The meeting log of a share (views and questions), newest firstGET/shares/{share}/log—

Erase

Erase everything company.md keeps for me (every share is revoked first)

POST/v1/company-md/erase

company-md:writecompanyMd_eraseCompanyMd

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"

Export

Everything company.md keeps for me, as one JSON

GET/v1/company-md/export

company-md:readcompanyMd_exportCompanyMd

Responses

curl "https://os.one.ml/api/v1/company-md/export" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Files

My company.md documents, newest first

GET/v1/company-md/files

company-md:readcompanyMd_listFiles

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"

Make a company file from a Boxes Doc I own

POST/v1/company-md/files

company-md:writeIdempotency-Key requiredcompanyMd_createFile

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

  • companystringrequired

    min length 1 · max length 200

  • box_docstringrequired

    min length 1 · max length 200

  • textstring

    The 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"
  }'

One file, its latest version, drift flags, counts and schedule

GET/v1/company-md/files/{file}

company-md:readcompanyMd_getFile

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"

Delete a file, its versions and its shares (every share is revoked first)

DELETE/v1/company-md/files/{file}

company-md:writecompanyMd_deleteFile

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"

Change a file's reader rules (off-limits topics) or its sync schedule

PATCH/v1/company-md/files/{file}

company-md:writecompanyMd_updateFile

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 '{}'

Drift

Report a sync pass (facts that changed, disagree with their source or went stale)

POST/v1/company-md/files/{file}/drift

company-md:writecompanyMd_reportDrift

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 '{}'

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

company-md:writecompanyMd_publishFile

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 · stringrequired
  • dry_runquery · "0" | "1" | "true" | "false"
  • x-one-approvalheader · string

Request body application/json

  • textstring

    The 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_sha256string

    From the dry run; bound on the founder's publish card. pattern ^[0-9a-f]{64}$

  • base_versioninteger

    From the dry run (the latest version then; 0 for the first publish); bound on the card. min 0

  • amount_lines_sha256string

    pattern ^[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 '{}'

Shares

A file's shares with counts and last view

GET/v1/company-md/files/{file}/shares

company-md:readcompanyMd_listShares

Parameters

  • filepath · stringrequired

Responses

  • 200The shares
    Response fields

    A JSON object.

  • 404An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/files/$FILE/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Share a file read-only with one reader (a link and its token, shown once)

POST/v1/company-md/files/{file}/shares

company-md:writeIdempotency-Key requiredcompanyMd_createShare

Scope company_md:write. The founder in person only (403 person_required otherwise; One raises the founder's card). Asks are off unless asks: true. Requires an Idempotency-Key.

Parameters

  • filepath · stringrequired
  • Idempotency-Keyheader · stringrequired

Request body application/json

  • labelstringrequired

    Who the link is for, in plain words (for example "Jane at Northwind"). min length 1 · max length 64

  • reader_emailstring (email)

    The reader's email, stored only; nothing is sent to it. max length 254

  • expires_atstring (date-time)

    When the link stops working (ISO time in the future); none means it stays open until revoked.

  • asksboolean

    Whether the reader's agent may ask questions (each answer waits for the founder's yes). default false

  • grounded_sendboolean

    Answers drawn only from the file go out without the founder's yes; needs asks: true. default false

  • notify_on_viewboolean

    Tell the founder when the reader first opens the link. default true

Responses

  • 201The share and its token
    Response fields

    A JSON object.

  • 403An error
  • 409An error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/files/$FILE/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "label": "string"
  }'

Revoke a share; its link stops working at once and held questions are declined

DELETE/v1/company-md/shares/{share}

company-md:writecompanyMd_revokeShare

Parameters

  • sharepath · stringrequired

Responses

  • 200Revoked
    Response fields

    A JSON object.

  • 404An error
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/company-md/shares/$SHARE" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Rename a share, change its expiry, asks or the facts that need approval

PATCH/v1/company-md/shares/{share}

company-md:writecompanyMd_updateShare

Parameters

  • sharepath · stringrequired

Request body application/json

A JSON object; see the description above.

Responses

  • 200The share
    Response fields

    A JSON object.

  • 403An error
  • 404An error
  • 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/company-md/shares/$SHARE" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Versions

A file's published versions, newest first

GET/v1/company-md/files/{file}/versions

company-md:readcompanyMd_listVersions

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"

One published version's text and facts

GET/v1/company-md/files/{file}/versions/{n}

company-md:readcompanyMd_getVersion

Parameters

  • filepath · stringrequired
  • npath · 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"

Format

The company.md format (Markdown) and the JSON Schema of its front matter

GET/v1/company-md/format

company-md:readcompanyMd_getFormat

Responses

curl "https://os.one.ml/api/v1/company-md/format" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Pricing

The price per reader question in force

GET/v1/company-md/pricing

company-md:readcompanyMd_getPricing

Responses

curl "https://os.one.ml/api/v1/company-md/pricing" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Decide

Answer or decline a reader's held question

POST/v1/company-md/questions/{question}/decide

company-md:writecompanyMd_decideQuestion

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 '{}'

S

A share's latest version as Markdown (the reader's link; no OneOS sign-in)

GET/v1/company-md/s/{token}

company-md:readNo key neededcompanyMd_readShare

Parameters

  • tokenpath · stringrequired

    The share token from the reader's link (43 base64url characters).

Responses

  • 200The file
    Response fields

    Type: string

  • 404An error
  • 410An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/s/$TOKEN"

Ask

Ask the founder's One a question about the file (when the founder turned asks on)

POST/v1/company-md/s/{token}/ask

company-md:writeNo key neededcompanyMd_askShare

{question (1..4,000 characters), wait_s 0..60, idempotency_key}. $0.02 per question, charged to the founder.

Parameters

  • tokenpath · stringrequired

    The share token from the reader's link (43 base64url characters).

Request body application/json

A JSON object; see the description above.

Responses

  • 200The question and its answer or status
    Response fields

    A JSON object.

  • 403An error
  • 404An error
  • 429An error
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/company-md/s/$TOKEN/ask" \
  -H "Content-Type: application/json" \
  -d '{}'

A reader question's status and answer (wait_s 0..25 long-polls)

GET/v1/company-md/s/{token}/ask/{question}

company-md:readNo key neededcompanyMd_getShareAsk

Parameters

  • tokenpath · stringrequired

    The share token from the reader's link (43 base64url characters).

  • questionpath · stringrequired
  • wait_squery · integer

Responses

  • 200The question
    Response fields

    A JSON object.

  • 404An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/s/$TOKEN/ask/$QUESTION"

Facts

A share's open facts as JSON

GET/v1/company-md/s/{token}/facts

company-md:readNo key neededcompanyMd_getShareFacts

Parameters

  • tokenpath · stringrequired

    The share token from the reader's link (43 base64url characters).

Responses

  • 200The open facts
    Response fields

    A JSON object.

  • 404An error
  • 410An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/s/$TOKEN/facts"

Guest view

What a share's reader sees (the version and facts they get), for answering their questions

GET/v1/company-md/shares/{share}/guest-view

company-md:readcompanyMd_getShareGuestView

Parameters

  • sharepath · stringrequired
  • versionquery · integer

    The version a reader's open question was asked against (default: the version the share serves now).

Responses

  • 200The reader's view
    Response fields

    A JSON object.

  • 404An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/shares/$SHARE/guest-view" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Log

The meeting log of a share (views and questions), newest first

GET/v1/company-md/shares/{share}/log

company-md:readcompanyMd_getShareLog

Parameters

  • sharepath · stringrequired
  • limitquery · integer
  • cursorquery · string

Responses

  • 200The log
    Response fields

    A JSON object.

  • 404An error
  • 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/company-md/shares/$SHARE/log" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

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