API reference
Boxes
Mail and agent inboxes, calendar and events, documents, spreadsheets, slides, files and folders, and scheduling links.
- Operations
- 218
- Base path
https://os.one.ml/api/v1/boxes- Scopes
boxes:readboxes:write- API keys
- 2 refused to API keys · 170 tested with an API key
- SDK
genesis.call('boxes_calendar_availability_get', …)· helpers undergenesis.boxes- MCP
- 65 tools; the other 153 through
genesis_call
Operations
| Operation | Endpoint | API key |
|---|---|---|
| Get free/busy slots for a user | GET/calendar/availability | Tested with an API key |
| List the caller's calendars | GET/calendar/calendars | Tested with an API key |
| Create a calendar | POST/calendar/calendars | Tested with an API key |
| Get a calendar | GET/calendar/calendars/{id} | Tested with an API key |
| Delete a calendar | DELETE/calendar/calendars/{id} | Tested with an API key |
| Update a calendar | PATCH/calendar/calendars/{id} | Tested with an API key |
| List events | GET/calendar/events | Tested with an API key |
| Create an event | POST/calendar/events | Tested with an API key |
| Get an event | GET/calendar/events/{id} | Tested with an API key |
| Delete an event | DELETE/calendar/events/{id} | Tested with an API key |
| Update an event | PATCH/calendar/events/{id} | Tested with an API key |
| List attendees of an event | GET/calendar/events/{id}/attendees | Tested with an API key |
| Set the caller's RSVP on an event | POST/calendar/events/{id}/rsvp | Tested with an API key |
| Search events | GET/calendar/events/search | Tested with an API key |
| List the caller's scheduling links | GET/calendar/scheduling-links | Tested with an API key |
| Create a scheduling link | POST/calendar/scheduling-links | Tested with an API key |
| Get a scheduling link | GET/calendar/scheduling-links/{id} | Tested with an API key |
| Delete a scheduling link | DELETE/calendar/scheduling-links/{id} | Tested with an API key |
| Update a scheduling link | PATCH/calendar/scheduling-links/{id} | Tested with an API key |
| Book a slot through a scheduling link | POST/calendar/scheduling-links/{id}/book | Tested with an API key |
| Get a scheduling link by slug | GET/calendar/scheduling-links/by-slug/{slug} | Tested with an API key |
| List documents in a folder or at the root | GET/docs | Tested with an API key |
| Create a document | POST/docs | Tested with an API key |
| Get a document | GET/docs/{id} | Tested with an API key |
| Move a document to the trash | DELETE/docs/{id} | Tested with an API key |
| Update a document or folder | PATCH/docs/{id} | Tested with an API key |
| List active collaborators on a document | GET/docs/{id}/collaborators | Tested with an API key |
| Stream live document operations and presence | GET/docs/{id}/events | Tested with an API key |
| Export a document as Word or Markdown | GET/docs/{id}/export | — |
| List collaboration operations of a document | GET/docs/{id}/operations | Tested with an API key |
| Append a collaboration operation to a document | POST/docs/{id}/operations | Tested with an API key |
| Permanently delete a document | DELETE/docs/{id}/permanent | Tested with an API key |
| Update caller presence and selection | POST/docs/{id}/presence | Tested with an API key |
| Restore a document or folder from the trash | POST/docs/{id}/restore | — |
| Share a document with a user or by email | POST/docs/{id}/share | Tested with an API key |
| Remove a share from a document | DELETE/docs/{id}/share/{share_id} | Tested with an API key |
| List shares of a document | GET/docs/{id}/shares | Tested with an API key |
| List version history of a document | GET/docs/{id}/versions | Tested with an API key |
| Create a document folder | POST/docs/folder | Tested with an API key |
| Import a Word document as a new doc | POST/docs/import | — |
| Run a Docs tool action | POST/docs/mcp/{action} | Tested with an API key |
| List recently updated documents | GET/docs/recent | Tested with an API key |
| Search documents by text | GET/docs/search | Tested with an API key |
| List documents shared with the caller | GET/docs/shared-with-me | Tested with an API key |
| List saved document templates | GET/docs/templates | Tested with an API key |
| List trashed documents | GET/docs/trash | Tested with an API key |
| List files and folders in a folder or at the root | GET/files | Tested with an API key |
| Get file or folder metadata | GET/files/{id} | Tested with an API key |
| Move a file or folder to the trash | DELETE/files/{id} | Tested with an API key |
| Rename or move a file or folder | PATCH/files/{id} | Tested with an API key |
| Replace a board file of One's in place | PUT/files/{id}/board | — |
| Replace a file's bytes in place | PUT/files/{id}/content | — |
| Download file contents | GET/files/{id}/download | Tested with an API key |
| Replace a grid file of One's in place | PUT/files/{id}/grid | — |
| Read where a file or folder sits | GET/files/{id}/path | — |
| Permanently delete a file or folder | DELETE/files/{id}/permanent | Tested with an API key |
| Replace One's places card in place | PUT/files/{id}/places-card | — |
| Restore a file or folder from the trash | POST/files/{id}/restore | Tested with an API key |
| Erase one Rig step card picture of the person's own | POST/files/{id}/rig-step-picture/erase | — |
| Share a file with a user or by email | POST/files/{id}/share | Tested with an API key |
| Remove a share from a file | DELETE/files/{id}/share/{share_id} | Tested with an API key |
| List shares of a file | GET/files/{id}/shares | Tested with an API key |
| Set your own tags on a file shared with you | PUT/files/{id}/viewer-tags | — |
| List your recent moves, renames and tag changes by batch | GET/files/activity | — |
| Undo one batch of moves, renames and tag changes | POST/files/activity/{batch_id}/undo | — |
| Create a board file of One's | POST/files/board | — |
| Erase every file of a data class in the person's own space, past the trash | POST/files/erase-class | — |
| Create a folder | POST/files/folder | Tested with an API key |
| Create a grid file of One's | POST/files/grid | — |
| Apply a batch of folder, move, rename and tag changes as one | POST/files/organize | — |
| Create One's places card (the person's Me card) | POST/files/places-card | — |
| List recently updated files | GET/files/recent | Tested with an API key |
| Store the Rig step card's picture in the person's own space | POST/files/rig-step-picture | — |
| Search files by name | GET/files/search | Tested with an API key |
| Search files by name, the words in the body | POST/files/search | — |
| List files shared with the caller | GET/files/shared-with-me | Tested with an API key |
| List trashed files | GET/files/trash | Tested with an API key |
| Read your folders as a tree with counts | GET/files/tree | — |
| Upload a file | POST/files/upload | Tested with an API key |
| Read your own storage use and quota | GET/files/usage | — |
| Get the calling user | GET/identity/me | Tested with an API key |
| Get the caller's tenant | GET/identity/tenants/current | Tested with an API key |
| List users in the caller's tenant | GET/identity/users | Tested with an API key |
| Get a user by id | GET/identity/users/{id} | Tested with an API key |
| List active workspaces in the tenant | GET/identity/workspaces | Tested with an API key |
| Get a workspace | GET/identity/workspaces/{id} | Tested with an API key |
| List workspace members | GET/identity/workspaces/{id}/members | Tested with an API key |
| List mail addresses for the caller | GET/mail/addresses | Tested with an API key |
| Reserve a mail address on a verified custom domain | POST/mail/addresses | API keys refused |
| List recent agent mail activity for the tenant | GET/mail/agent/activities | Tested with an API key |
| Send one email per recipient with variable substitution | POST/mail/agent/batch-send | Tested with an API key |
| List per-message agent processing state | GET/mail/agent/state | Tested with an API key |
| Update agent processing state for a message | PATCH/mail/agent/state/{messageId} | Tested with an API key |
| List mail webhook subscriptions | GET/mail/agent/webhooks | Tested with an API key |
| Create a mail webhook subscription | POST/mail/agent/webhooks | Tested with an API key |
| Delete a mail webhook subscription | DELETE/mail/agent/webhooks/{id} | Tested with an API key |
| List the project's agent mailboxes | GET/mail/agents | Tested with an API key |
| Create an agent's mailbox | POST/mail/agents | Tested with an API key |
| Get an agent's mailbox | GET/mail/agents/{agentId} | Tested with an API key |
| Delete an agent's mailbox | DELETE/mail/agents/{agentId} | Tested with an API key |
| As the agent, list messages in a folder | GET/mail/agents/{agentId}/inbox | Tested with an API key |
| As the agent, get a message with its labels | GET/mail/agents/{agentId}/messages/{id} | Tested with an API key |
| As the agent, send an email or save a draft | POST/mail/agents/{agentId}/send | Tested with an API key |
| As the agent, list conversation threads | GET/mail/agents/{agentId}/threads | Tested with an API key |
| As the agent, get a thread with all its messages | GET/mail/agents/{agentId}/threads/{id} | Tested with an API key |
| Reserve or rename the person's own One address | POST/mail/agents/one/address | — |
| Whether a name can be the person's own One address | POST/mail/agents/one/address/availability | — |
| Upload a pending attachment for later sending | POST/mail/attachments | Tested with an API key |
| Get attachment metadata | GET/mail/attachments/{id} | Tested with an API key |
| Delete an attachment record | DELETE/mail/attachments/{id} | Tested with an API key |
| Download attachment bytes | GET/mail/attachments/{id}/content | Tested with an API key |
| Apply one operation to many messages | POST/mail/batch | Tested with an API key |
| Revoke a mailbox delegation | DELETE/mail/delegations/{delegation_id} | Tested with an API key |
| List custom mail domains | GET/mail/domains | Tested with an API key |
| Register a custom mail domain | POST/mail/domains | Tested with an API key |
| Reserve a mail address on a specific domain | POST/mail/domains/{domain_id}/addresses | API keys refused |
| Check DNS and verify a mail domain | POST/mail/domains/{domain_id}/verify | Tested with an API key |
| List system and custom folders | GET/mail/folders | Tested with an API key |
| Create a custom folder | POST/mail/folders | Tested with an API key |
| Query the mail governance audit log | GET/mail/governance/audit | Tested with an API key |
| List messages in a folder | GET/mail/inbox | Tested with an API key |
| List system and custom labels with counts | GET/mail/labels | Tested with an API key |
| Create a custom label | POST/mail/labels | Tested with an API key |
| Delete a custom label | DELETE/mail/labels/{id} | Tested with an API key |
| List sender mailboxes owned by the caller | GET/mail/mailboxes | Tested with an API key |
| List delegations on a mailbox | GET/mail/mailboxes/{mailbox_id}/delegations | Tested with an API key |
| Submit an event to the mail memory pipeline | POST/mail/memory/events | Tested with an API key |
| Recall memories through the cognitive brain interface | GET/mail/memory/recall | Tested with an API key |
| Search mail memory (hybrid episodic and vector) | GET/mail/memory/search | Tested with an API key |
| Store a custom memory entry | POST/mail/memory/store | Tested with an API key |
| Get a message with its labels | GET/mail/messages/{id} | Tested with an API key |
| Move a message to trash | DELETE/mail/messages/{id} | Tested with an API key |
| Update message flags, folder or snooze | PATCH/mail/messages/{id} | Tested with an API key |
| Get delivery status for a sent message | GET/mail/messages/{id}/delivery | Tested with an API key |
| Get the extraction for a message | GET/mail/messages/{message_id}/extraction | Tested with an API key |
| List attachments of a message | GET/mail/messages/{messageId}/attachments | Tested with an API key |
| List mailboxes the caller can act as through delegation | GET/mail/personas | Tested with an API key |
| Search messages | GET/mail/search | Tested with an API key |
| Send an email or save a draft | POST/mail/send | Tested with an API key |
| Stream new-message events over Server-Sent Events | GET/mail/stream | Tested with an API key |
| List built-in email templates | GET/mail/templates | Tested with an API key |
| List conversation threads | GET/mail/threads | Tested with an API key |
| Get a thread with all its messages | GET/mail/threads/{id} | Tested with an API key |
| List extractions for a thread | GET/mail/threads/{thread_id}/extractions | Tested with an API key |
| Get aggregated intelligence for a thread | GET/mail/threads/{thread_id}/intelligence | Tested with an API key |
| List the caller's active sessions | GET/mcp/sessions | Tested with an API key |
| Create an agent session | POST/mcp/sessions | Tested with an API key |
| Get a session | GET/mcp/sessions/{session_id} | Tested with an API key |
| Destroy a session | DELETE/mcp/sessions/{session_id} | Tested with an API key |
| Merge or replace session context | POST/mcp/sessions/{session_id}/context | Tested with an API key |
| List tools available to the caller | GET/mcp/tools | Tested with an API key |
| Call an MCP tool | POST/mcp/tools/call | Tested with an API key |
| List spreadsheets in the tenant | GET/sheets | Tested with an API key |
| Create a spreadsheet | POST/sheets | Tested with an API key |
| Get a spreadsheet | GET/sheets/{id} | Tested with an API key |
| Move a spreadsheet to the trash | DELETE/sheets/{id} | Tested with an API key |
| Update a spreadsheet | PATCH/sheets/{id} | Tested with an API key |
| Export a spreadsheet as an Excel workbook or CSV | GET/sheets/{id}/export | — |
| Permanently delete a spreadsheet | DELETE/sheets/{id}/permanent | Tested with an API key |
| Share a spreadsheet with a user or email address | POST/sheets/{id}/share | Tested with an API key |
| Remove a share from a spreadsheet | DELETE/sheets/{id}/share/{share_id} | Tested with an API key |
| List shares of a spreadsheet | GET/sheets/{id}/shares | Tested with an API key |
| List tabs of a spreadsheet | GET/sheets/{id}/tabs | Tested with an API key |
| Create a tab in a spreadsheet | POST/sheets/{id}/tabs | Tested with an API key |
| Get a tab | GET/sheets/{id}/tabs/{tab_id} | Tested with an API key |
| Delete a tab | DELETE/sheets/{id}/tabs/{tab_id} | Tested with an API key |
| Update a tab | PATCH/sheets/{id}/tabs/{tab_id} | Tested with an API key |
| List non-empty cells of a tab | GET/sheets/{id}/tabs/{tab_id}/cells | Tested with an API key |
| Write a single cell | POST/sheets/{id}/tabs/{tab_id}/cells | Tested with an API key |
| Get a single cell | GET/sheets/{id}/tabs/{tab_id}/cells/{row}/{col} | Tested with an API key |
| Clear a cell | DELETE/sheets/{id}/tabs/{tab_id}/cells/{row}/{col} | Tested with an API key |
| Write many cells in one request | POST/sheets/{id}/tabs/{tab_id}/cells/batch | Tested with an API key |
| Search cells by value | GET/sheets/{id}/tabs/{tab_id}/cells/query | Tested with an API key |
| Get cells in a rectangular range | GET/sheets/{id}/tabs/{tab_id}/cells/range | Tested with an API key |
| Import an Excel workbook as a new spreadsheet | POST/sheets/import | — |
| Search spreadsheets by title | GET/sheets/search | Tested with an API key |
| List spreadsheets shared with the caller | GET/sheets/shared-with-me | Tested with an API key |
| List presentations in the tenant | GET/slides/presentations | Tested with an API key |
| Create a presentation | POST/slides/presentations | Tested with an API key |
| Get a presentation | GET/slides/presentations/{id} | Tested with an API key |
| Delete a presentation | DELETE/slides/presentations/{id} | Tested with an API key |
| Update a presentation | PATCH/slides/presentations/{id} | Tested with an API key |
| List a presentation's comments, oldest first | GET/slides/presentations/{id}/comments | — |
| Comment on a presentation or one of its slides, or reply to a top-level comment | POST/slides/presentations/{id}/comments | — |
| Resolve or reopen a comment, or change its text | PATCH/slides/presentations/{id}/comments/{comment_id} | — |
| Share a presentation with a user or email address | POST/slides/presentations/{id}/share | Tested with an API key |
| Remove a share from a presentation | DELETE/slides/presentations/{id}/share/{share_id} | Tested with an API key |
| List shares of a presentation | GET/slides/presentations/{id}/shares | Tested with an API key |
| List slides of a presentation | GET/slides/presentations/{presentation_id}/slides | Tested with an API key |
| Add a slide to a presentation | POST/slides/presentations/{presentation_id}/slides | Tested with an API key |
| Get a slide | GET/slides/presentations/{presentation_id}/slides/{slide_id} | Tested with an API key |
| Delete a slide | DELETE/slides/presentations/{presentation_id}/slides/{slide_id} | Tested with an API key |
| Update a slide | PATCH/slides/presentations/{presentation_id}/slides/{slide_id} | Tested with an API key |
| Move a slide to a new position | PUT/slides/presentations/{presentation_id}/slides/{slide_id}/reorder | Tested with an API key |
| List a slide's versions, newest first, without content | GET/slides/presentations/{presentation_id}/slides/{slide_id}/versions | — |
| Snapshot the slide as it is now | POST/slides/presentations/{presentation_id}/slides/{slide_id}/versions | — |
| One version of a slide, with its title and content | GET/slides/presentations/{presentation_id}/slides/{slide_id}/versions/{version_id} | — |
| List presentations shared with the caller | GET/slides/presentations/shared-with-me | Tested with an API key |
| List slide templates (themes) | GET/slides/themes | Tested with an API key |
| Create a slide template (theme) | POST/slides/themes | Tested with an API key |
| Get a slide template (theme) | GET/slides/themes/{id} | Tested with an API key |
| Delete a slide template (theme) | DELETE/slides/themes/{id} | Tested with an API key |
| Update a slide template (theme) | PATCH/slides/themes/{id} | Tested with an API key |
| List the spaces the person is in now | GET/spaces | — |
| Make a space; the person is its owner | POST/spaces | — |
| A space and its present members, to members only | GET/spaces/{id} | — |
| Accept an invitation to a space | POST/spaces/{id}/accept | — |
| Decline an invitation to a space | POST/spaces/{id}/decline | — |
| Leave a space and erase the person's rows in it (membership, grants, audit). Irreversible | POST/spaces/{id}/erase-my-part | — |
| Leave a space with the person's One and agents; their live grants to it end | POST/spaces/{id}/leave | — |
| The owner asks a person to join, or a member adds their own One or agent | POST/spaces/{id}/members | — |
| The owner removes a member, as if they left | POST/spaces/{id}/members/remove | — |
| Whether the person may read, comment on or edit an object now | POST/spaces/can | — |
| Export the person's own part of every space they are in | GET/spaces/export | — |
| List the grants the person gave and the live grants that reach them | GET/spaces/grants | — |
| Share an object the person owns with a space or a person they share a space with (live only) | POST/spaces/grants | — |
| End a grant the person gave; the next read by anyone it reached is refused | POST/spaces/grants/{grant_id}/revoke | — |
| List the spaces the person has been asked to join and has not answered | GET/spaces/invitations | — |
Calendar
Get free/busy slots for a user
GET/v1/boxes/calendar/availability
Requires scope calendar read. Private events are reported with the title "Busy".
Parameters
userIdquery · string (uuid)User to check; defaults to the caller.
startquery · string (date-time)requiredRange start.
endquery · string (date-time)requiredRange end; must be after start.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.userIdstring (uuid)requireddata.startstring (date-time)requireddata.endstring (date-time)requireddata.busyobject[]requireddata.busy[].[].startstring (date-time)requireddata.busy[].[].endstring (date-time)requireddata.busy[].[].eventIdstring (uuid)requireddata.busy[].[].titlestringrequired"Busy" when the event visibility is private.
metaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/availability?start=$START&end=$END" \
-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('boxes_calendar_availability_get', {
start: '<start>',
end: '<end>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_availability_get",
"arguments": {
"start": "<start>",
"end": "<end>"
}
}
}List the caller's calendars
GET/v1/boxes/calendar/calendars
Creates the caller's default calendar first if none exists.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].namestringrequireddata[].[].descriptionstringrequireddata[].[].colorstringrequireddata[].[].timezonestringrequireddata[].[].isDefaultbooleanrequireddata[].[].isVisiblebooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/calendars" \
-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('boxes_calendar_calendars_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_calendars_list",
"arguments": {}
}
}Create a calendar
POST/v1/boxes/calendar/calendars
Requires the calendar schedule scope. Note: returns 200, not 201.
Request body application/json
namestringrequiredmin length 1 · max length 256
descriptionstringdefault
""colorstringdefault
"#4285f4"timezonestringdefault
"UTC"
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.namestringrequireddata.descriptionstringrequireddata.colorstringrequireddata.timezonestringrequireddata.isDefaultbooleanrequireddata.isVisiblebooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/calendar/calendars" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_calendars_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_calendars_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Get a calendar
GET/v1/boxes/calendar/calendars/{id}
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.namestringrequireddata.descriptionstringrequireddata.colorstringrequireddata.timezonestringrequireddata.isDefaultbooleanrequireddata.isVisiblebooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/calendars/$ID" \
-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('boxes_calendar_calendars_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_calendars_get",
"arguments": {
"id": "<id>"
}
}
}
}Delete a calendar
DELETE/v1/boxes/calendar/calendars/{id}
Requires the calendar delete scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/calendar/calendars/$ID" \
-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('boxes_calendar_calendars_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_calendars_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update a calendar
PATCH/v1/boxes/calendar/calendars/{id}
Requires the calendar schedule scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Request body application/json
namestringmin length 1 · max length 256
descriptionstringcolorstringtimezonestringisVisibleboolean
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.namestringrequireddata.descriptionstringrequireddata.colorstringrequireddata.timezonestringrequireddata.isDefaultbooleanrequireddata.isVisiblebooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/calendar/calendars/$ID" \
-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('boxes_calendar_calendars_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_calendars_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}List events
GET/v1/boxes/calendar/events
Parameters
calendarIdquery · string (uuid)Restrict to one calendar.
startquery · string (date-time)Range start.
endquery · string (date-time)Range end.
pagequery · integer (int64)1-based page number; values below 1 become 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].calendarIdstring (uuid)requireddata[].[].organizerIdstring (uuid)requireddata[].[].titlestringrequireddata[].[].descriptionstringrequireddata[].[].locationstringrequireddata[].[].startTimestring (date-time)requireddata[].[].endTimestring (date-time)requireddata[].[].allDaybooleanrequireddata[].[].status"confirmed" | "tentative" | "cancelled"requireddata[].[].visibility"default" | "public" | "private"requireddata[].[].recurrenceRulestring | nulldata[].[].recurrenceEndstring | null (date-time)data[].[].recurringEventIdstring | null (uuid)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/events" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_events_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_list",
"arguments": {}
}
}Create an event
POST/v1/boxes/calendar/events
Requires the calendar schedule scope. The calendar must be owned by the caller (403 otherwise). Returns 200, not 201.
Request body application/json
calendarIdstring (uuid)requiredtitlestringrequiredmin length 1 · max length 1024
descriptionstringdefault
""locationstringdefault
""startTimestring (date-time)requiredendTimestring (date-time)requiredallDaybooleandefault
falsestatus"confirmed" | "tentative" | "cancelled"default
"confirmed"visibility"default" | "public" | "private"default
"default"recurrenceRulestringrecurrenceEndstring (date-time)attendeesobject[]default
[]attendees[].[].emailstringrequiredattendees[].[].displayNamestringdefault
""attendees[].[].isOptionalbooleandefault
false
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.organizerIdstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.locationstringrequireddata.startTimestring (date-time)requireddata.endTimestring (date-time)requireddata.allDaybooleanrequireddata.status"confirmed" | "tentative" | "cancelled"requireddata.visibility"default" | "public" | "private"requireddata.recurrenceRulestring | nulldata.recurrenceEndstring | null (date-time)data.recurringEventIdstring | null (uuid)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/calendar/events" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"calendarId": "00000000-0000-4000-8000-000000000000",
"title": "string",
"startTime": "2026-10-20T00:00:00Z",
"endTime": "2026-10-20T00:00:00Z"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_events_create', {
body: {
calendarId: '00000000-0000-4000-8000-000000000000',
title: 'string',
startTime: '2026-10-20T00:00:00Z',
endTime: '2026-10-20T00:00:00Z',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_create",
"arguments": {
"body": {
"calendarId": "00000000-0000-4000-8000-000000000000",
"title": "string",
"startTime": "2026-10-20T00:00:00Z",
"endTime": "2026-10-20T00:00:00Z"
}
}
}
}Get an event
GET/v1/boxes/calendar/events/{id}
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.organizerIdstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.locationstringrequireddata.startTimestring (date-time)requireddata.endTimestring (date-time)requireddata.allDaybooleanrequireddata.status"confirmed" | "tentative" | "cancelled"requireddata.visibility"default" | "public" | "private"requireddata.recurrenceRulestring | nulldata.recurrenceEndstring | null (date-time)data.recurringEventIdstring | null (uuid)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/events/$ID" \
-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('boxes_calendar_events_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_get",
"arguments": {
"id": "<id>"
}
}
}Delete an event
DELETE/v1/boxes/calendar/events/{id}
Requires the calendar delete scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/calendar/events/$ID" \
-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('boxes_calendar_events_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_events_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update an event
PATCH/v1/boxes/calendar/events/{id}
Requires the calendar schedule scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Request body application/json
titlestringdescriptionstringlocationstringstartTimestring (date-time)endTimestring (date-time)allDaybooleanstatus"confirmed" | "tentative" | "cancelled"visibility"default" | "public" | "private"recurrenceRulestringrecurrenceEndstring (date-time)
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.organizerIdstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.locationstringrequireddata.startTimestring (date-time)requireddata.endTimestring (date-time)requireddata.allDaybooleanrequireddata.status"confirmed" | "tentative" | "cancelled"requireddata.visibility"default" | "public" | "private"requireddata.recurrenceRulestring | nulldata.recurrenceEndstring | null (date-time)data.recurringEventIdstring | null (uuid)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/calendar/events/$ID" \
-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('boxes_calendar_events_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}List attendees of an event
GET/v1/boxes/calendar/events/{id}/attendees
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].eventIdstring (uuid)requireddata[].[].userIdstring | null (uuid)data[].[].emailstringrequireddata[].[].displayNamestringrequireddata[].[].responseStatusstringrequireddata[].[].isOrganizerbooleanrequireddata[].[].isOptionalbooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/events/$ID/attendees" \
-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('boxes_calendar_events_attendees_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_events_attendees_list",
"arguments": {
"id": "<id>"
}
}
}
}Set the caller's RSVP on an event
POST/v1/boxes/calendar/events/{id}/rsvp
Requires the calendar book scope. 404 also when the caller is not an attendee. Returns the updated attendee row.
Parameters
idpath · string (uuid)requiredResource UUID.
Request body application/json
responseStatus"accepted" | "declined" | "tentative"required
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.eventIdstring (uuid)requireddata.userIdstring | null (uuid)data.emailstringrequireddata.displayNamestringrequireddata.responseStatusstringrequireddata.isOrganizerbooleanrequireddata.isOptionalbooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/calendar/events/$ID/rsvp" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"responseStatus": "accepted"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_events_rsvp', {
id: '<id>',
body: {
responseStatus: 'accepted',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_rsvp",
"arguments": {
"id": "<id>",
"body": {
"responseStatus": "accepted"
}
}
}
}Search events
GET/v1/boxes/calendar/events/search
Parameters
qquery · stringrequiredSearch text; required (empty returns 422).
pagequery · integer (int64)1-based page number; values below 1 become 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].calendarIdstring (uuid)requireddata[].[].organizerIdstring (uuid)requireddata[].[].titlestringrequireddata[].[].descriptionstringrequireddata[].[].locationstringrequireddata[].[].startTimestring (date-time)requireddata[].[].endTimestring (date-time)requireddata[].[].allDaybooleanrequireddata[].[].status"confirmed" | "tentative" | "cancelled"requireddata[].[].visibility"default" | "public" | "private"requireddata[].[].recurrenceRulestring | nulldata[].[].recurrenceEndstring | null (date-time)data[].[].recurringEventIdstring | null (uuid)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/events/search?q=$Q" \
-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('boxes_calendar_events_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_calendar_events_search",
"arguments": {
"q": "<q>"
}
}
}List the caller's scheduling links
GET/v1/boxes/calendar/scheduling-links
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].calendarIdstring (uuid)requireddata[].[].slugstringrequireddata[].[].titlestringrequireddata[].[].descriptionstringrequireddata[].[].durationMinutesinteger (int32)requireddata[].[].isActivebooleanrequireddata[].[].availabilityanyrequiredFree-form JSON value stored as supplied; defaults to an empty array.
data[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/scheduling-links" \
-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('boxes_calendar_scheduling_links_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_list",
"arguments": {}
}
}
}Create a scheduling link
POST/v1/boxes/calendar/scheduling-links
Requires the calendar schedule scope. Returns 200, not 201.
Request body application/json
calendarIdstring (uuid)requiredslugstringrequiredmin length 1 · max length 128
titlestringrequiredmin length 1 · max length 256
descriptionstringdefault
""durationMinutesinteger (int32)min 1 · max 480 · default
30availabilityanyFree-form JSON value. default
[]
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.slugstringrequireddata.titlestringrequireddata.descriptionstringrequireddata.durationMinutesinteger (int32)requireddata.isActivebooleanrequireddata.availabilityanyrequiredFree-form JSON value stored as supplied; defaults to an empty array.
data.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/calendar/scheduling-links" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"calendarId": "00000000-0000-4000-8000-000000000000",
"slug": "string",
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_scheduling_links_create', {
body: {
calendarId: '00000000-0000-4000-8000-000000000000',
slug: 'string',
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_create",
"arguments": {
"body": {
"calendarId": "00000000-0000-4000-8000-000000000000",
"slug": "string",
"title": "string"
}
}
}
}
}Get a scheduling link
GET/v1/boxes/calendar/scheduling-links/{id}
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.slugstringrequireddata.titlestringrequireddata.descriptionstringrequireddata.durationMinutesinteger (int32)requireddata.isActivebooleanrequireddata.availabilityanyrequiredFree-form JSON value stored as supplied; defaults to an empty array.
data.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/scheduling-links/$ID" \
-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('boxes_calendar_scheduling_links_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_get",
"arguments": {
"id": "<id>"
}
}
}
}Delete a scheduling link
DELETE/v1/boxes/calendar/scheduling-links/{id}
Requires the calendar delete scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/calendar/scheduling-links/$ID" \
-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('boxes_calendar_scheduling_links_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update a scheduling link
PATCH/v1/boxes/calendar/scheduling-links/{id}
Requires the calendar schedule scope. The slug cannot be changed.
Parameters
idpath · string (uuid)requiredResource UUID.
Request body application/json
titlestringmin length 1 · max length 256
descriptionstringdurationMinutesinteger (int32)min 1 · max 480
isActivebooleanavailabilityanyFree-form JSON value.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.slugstringrequireddata.titlestringrequireddata.descriptionstringrequireddata.durationMinutesinteger (int32)requireddata.isActivebooleanrequireddata.availabilityanyrequiredFree-form JSON value stored as supplied; defaults to an empty array.
data.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/calendar/scheduling-links/$ID" \
-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('boxes_calendar_scheduling_links_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Book a slot through a scheduling link
POST/v1/boxes/calendar/scheduling-links/{id}/book
Requires the calendar book scope. End time is startTime plus the link duration. 422 when the link is inactive; 409 when the owner is busy in that window. Creates a confirmed event on the link calendar with the booker as attendee.
Parameters
idpath · string (uuid)requiredResource UUID.
Request body application/json
startTimestring (date-time)requirednamestringrequiredemailstringrequirednotesstringdefault
""
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.organizerIdstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.locationstringrequireddata.startTimestring (date-time)requireddata.endTimestring (date-time)requireddata.allDaybooleanrequireddata.status"confirmed" | "tentative" | "cancelled"requireddata.visibility"default" | "public" | "private"requireddata.recurrenceRulestring | nulldata.recurrenceEndstring | null (date-time)data.recurringEventIdstring | null (uuid)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 409Conflict.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/calendar/scheduling-links/$ID/book" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startTime": "2026-10-20T00:00:00Z",
"name": "string",
"email": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_calendar_scheduling_links_book', {
id: '<id>',
body: {
startTime: '2026-10-20T00:00:00Z',
name: 'string',
email: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_book",
"arguments": {
"id": "<id>",
"body": {
"startTime": "2026-10-20T00:00:00Z",
"name": "string",
"email": "string"
}
}
}
}
}Get a scheduling link by slug
GET/v1/boxes/calendar/scheduling-links/by-slug/{slug}
Parameters
slugpath · stringrequiredLink slug.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.calendarIdstring (uuid)requireddata.slugstringrequireddata.titlestringrequireddata.descriptionstringrequireddata.durationMinutesinteger (int32)requireddata.isActivebooleanrequireddata.availabilityanyrequiredFree-form JSON value stored as supplied; defaults to an empty array.
data.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/calendar/scheduling-links/by-slug/$SLUG" \
-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('boxes_calendar_scheduling_links_by_slug_get', {
slug: '<slug>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_calendar_scheduling_links_by_slug_get",
"arguments": {
"slug": "<slug>"
}
}
}
}Docs
List documents in a folder or at the root
GET/v1/boxes/docs
Requires scope boxes:docs:read. Returns active documents and folders only.
Parameters
folder_idquery · string (uuid)Parent folder; omit for the root.
organization_idquery · string (uuid)Restrict to an organization.
project_idquery · string (uuid)workspace_idquery · string (uuid)pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].organizationIdstring (uuid) | nullrequireddata[].[].projectIdstring (uuid) | nullrequireddata[].[].workspaceIdstring (uuid) | nullrequireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormat"markdown" | "html" | "plaintext" | "json"requireddata[].[].wordCountinteger (int32)requireddata[].[].statusstringrequiredactive or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].isFolderbooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 422Invalid resource context
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs" \
-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('boxes_docs_documents_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_documents_list",
"arguments": {}
}
}Create a document
POST/v1/boxes/docs
Requires scope boxes:docs:create. Title must be 1 to 1024 characters. A version 1 snapshot is stored. Resource ids default from the caller principal scope when omitted.
Request body application/json
titlestringrequiredmin length 1 · max length 1024
contentstringdefault
""contentFormat"markdown" | "html" | "plaintext" | "json"default
"markdown"folderIdstring (uuid)organizationIdstring (uuid)projectIdstring (uuid)workspaceIdstring (uuid)isTemplatebooleandefault
false
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_documents_create', {
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_documents_create",
"arguments": {
"body": {
"title": "string"
}
}
}
}Get a document
GET/v1/boxes/docs/{id}
Requires scope boxes:docs:read. Visible to the owner and to users the document is shared with.
Parameters
idpath · string (uuid)requiredDocument ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID" \
-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('boxes_docs_documents_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_documents_get",
"arguments": {
"id": "<id>"
}
}
}Move a document to the trash
DELETE/v1/boxes/docs/{id}
Requires scope boxes:docs:delete and admin permission. Trashing a folder also trashes its children. Returns the trashed record.
Parameters
idpath · string (uuid)requiredDocument ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/docs/$ID" \
-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('boxes_docs_documents_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_documents_delete",
"arguments": {
"id": "<id>"
}
}
}Update a document or folder
PATCH/v1/boxes/docs/{id}
Requires scope boxes:docs:edit and write permission. For folders only title, folderId and the resource ids are applied. Omitted or null fields are left unchanged, so the folder or resource ids cannot be cleared.
Parameters
idpath · string (uuid)requiredDocument ID
Request body application/json
titlestringcontentstringcontentFormat"markdown" | "html" | "plaintext" | "json"folderIdstring (uuid)organizationIdstring (uuid)projectIdstring (uuid)workspaceIdstring (uuid)
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/docs/$ID" \
-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('boxes_docs_documents_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_documents_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}Create a document folder
POST/v1/boxes/docs/folder
Requires scope boxes:docs:create. Name must be 1 to 1024 characters. The result is a document record with isFolder true.
Request body application/json
namestringrequiredmin length 1 · max length 1024
folderIdstring (uuid)organizationIdstring (uuid)projectIdstring (uuid)workspaceIdstring (uuid)
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/folder" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_folders_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_folders_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Import a Word document as a new doc
POST/v1/boxes/docs/import
Requires scope boxes:docs:create. Multipart form; the part named file holds a .docx (or Markdown or plain text), at most 20 MB. Headings (by style name), lists, quotes, code, tables, tabs and line breaks become blocks; images, footnotes and comments stay in the original, and the x-boxes-import-skipped response header counts them. Answers the new document as POST /v1/docs does.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
titlequery · stringThe doc's title; defaults to the document's Title or its core properties title.
folder_idquery · string (uuid)organization_idquery · string (uuid)project_idquery · string (uuid)workspace_idquery · string (uuid)
Request body multipart/form-data
filestring (binary)requiredThe .docx (or Markdown or plain text) to import, at most 20 MB.
Responses
- 201Created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not a Word document, Markdown or plain text, or too large
- 401Missing or invalid authentication
- 403Forbidden
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/import" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_documents_import', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_import",
"arguments": {
"body": "<bytes>"
}
}
}
}Run a Docs tool action
POST/v1/boxes/docs/mcp/{action}
Executes the Docs tool surface that the MCP server proxies. The tool field is required but its value is not used for dispatch; the path action selects the behaviour. Argument keys accept camelCase (documentId, baseRevision, blockId) and, where the backend declares them, snake_case equivalents. create, read, update and append_operation style actions return the same records as the REST document and operations endpoints; search returns {data, pagination} inside data; list_operations returns the operations array. The per-action argument shapes beyond the core ones are not modelled here.
Parameters
actionpath · "create" | "read" | "update" | "search" | "list_operations" | "append_operation" | "insert_block" | "insert_blocks" | "insert_template" | "update_block_text" | "update_block_props" | "delete_blocks" | "protect_block" | "clear_block_protection" | "insert_smart_chip" | "insert_embed" | "insert_database" | "set_mode" | "set_page_settings" | "set_page_numbers" | "set_page_chrome" | "set_tabs" | "create_tab" | "rename_tab" | "duplicate_tab" | "delete_tab" | "move_tab" | "add_comment" | "reply_comment" | "resolve_comment" | "add_suggestion" | "update_suggestion_status" | "update_database_cell" | "insert_database_row" | "delete_database_row" | "update_database_row_blocks" | "run_database_automation" | "update_agent_run"requiredTool action name. Any other value returns 404.
Request body application/json
toolstringrequiredRequired by the deserializer; not used for dispatch.
argumentsobjectPer-action arguments. Core shapes: create {title, content, contentFormat|format (structured maps to json), folderId, organizationId, projectId, workspaceId, isTemplate}; read {documentId}; update {documentId, title, content, contentFormat|format, folderId, organizationId, projectId, workspaceId, baseRevision}; search {query, page, limit, offset}; list_operations {documentId, afterRevision, limit}; append_operation {documentId, operationId, baseRevision, operationType, payload (required), blockId, value}. Unspecified: the arguments of the remaining operation shortcut actions (block, tab, comment, suggestion, database and page actions); each carries documentId and baseRevision plus action specific fields.
Responses
- 200OK
Response fields
successbooleanrequireddataobject | any[]requiredUnspecified: the result depends on the action. create, read and update return a DocsDocument; search returns {data: DocsDocument[], pagination}; list_operations returns DocsOperation[] (an array); all append style actions return the appended DocsOperation.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Scope not granted (create needs boxes:docs:create, read/search/list_operations need boxes:docs:read, everything else needs boxes:docs:edit)
- 404Unknown action, or document not visible
- 409Revision conflict (update with a stale baseRevision, or an operation base revision conflict)
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/mcp/$ACTION" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_mcp_action', {
action: '<action>',
body: {
tool: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_mcp_action",
"arguments": {
"action": "<action>",
"body": {
"tool": "string"
}
}
}
}
}List recently updated documents
GET/v1/boxes/docs/recent
Requires scope boxes:docs:read. Scoped to the calling user.
Parameters
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].organizationIdstring (uuid) | nullrequireddata[].[].projectIdstring (uuid) | nullrequireddata[].[].workspaceIdstring (uuid) | nullrequireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormat"markdown" | "html" | "plaintext" | "json"requireddata[].[].wordCountinteger (int32)requireddata[].[].statusstringrequiredactive or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].isFolderbooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/recent" \
-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('boxes_docs_recent_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_recent_list",
"arguments": {}
}
}
}Search documents by text
GET/v1/boxes/docs/search
Requires scope boxes:docs:read. Full-text search across the tenant.
Parameters
qquery · stringrequiredSearch text. Required; blank returns 422.
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].organizationIdstring (uuid) | nullrequireddata[].[].projectIdstring (uuid) | nullrequireddata[].[].workspaceIdstring (uuid) | nullrequireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormat"markdown" | "html" | "plaintext" | "json"requireddata[].[].wordCountinteger (int32)requireddata[].[].statusstringrequiredactive or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].isFolderbooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/search?q=$Q" \
-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('boxes_docs_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_docs_search",
"arguments": {
"q": "<q>"
}
}
}List saved document templates
GET/v1/boxes/docs/templates
Requires scope boxes:docs:read.
Parameters
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].organizationIdstring (uuid) | nullrequireddata[].[].projectIdstring (uuid) | nullrequireddata[].[].workspaceIdstring (uuid) | nullrequireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormat"markdown" | "html" | "plaintext" | "json"requireddata[].[].wordCountinteger (int32)requireddata[].[].statusstringrequiredactive or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].isFolderbooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/templates" \
-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('boxes_docs_templates_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_templates_list",
"arguments": {}
}
}
}List trashed documents
GET/v1/boxes/docs/trash
Requires scope boxes:docs:read. Scoped to the calling user.
Parameters
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].organizationIdstring (uuid) | nullrequireddata[].[].projectIdstring (uuid) | nullrequireddata[].[].workspaceIdstring (uuid) | nullrequireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormat"markdown" | "html" | "plaintext" | "json"requireddata[].[].wordCountinteger (int32)requireddata[].[].statusstringrequiredactive or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].isFolderbooleanrequireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/trash" \
-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('boxes_docs_trash_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_trash_list",
"arguments": {}
}
}
}Collaborators
List active collaborators on a document
GET/v1/boxes/docs/{id}/collaborators
Requires scope boxes:docs:read. The handler performs no per-document access check beyond the scope.
Parameters
idpath · string (uuid)requiredDocument ID
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].documentIdstring (uuid)requireddata[].[].userIdstring (uuid)requireddata[].[].cursorPositioninteger (int32) | nulldata[].[].selectionBlockIdstring | nulldata[].[].selectionStartinteger (int32) | nulldata[].[].selectionEndinteger (int32) | nulldata[].[].selectedBlockIdsstring[]requireddata[].[].lastSeenAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID/collaborators" \
-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('boxes_docs_documents_collaborators_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_collaborators_list",
"arguments": {
"id": "<id>"
}
}
}
}Events
Stream live document operations and presence
GET/v1/boxes/docs/{id}/events
Requires scope boxes:docs:read and owner or read permission on an active document.
Parameters
idpath · string (uuid)requiredDocument ID
after_revisionquery · integer (int32)Start streaming operations after this revision. The alias afterRevision is also accepted.
Responses
- 200Server-sent events. Event name
operationscarries {"type":"operations","operations":[DocsOperation]} and is sent when new operations exist; event namepresencecarries {"type":"presence","collaborators":[DocsCollaborator]} and is sent on every poll. The service polls every 2 seconds.Response fields
Type:
string - 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID/events" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_documents_events_stream', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_events_stream",
"arguments": {
"id": "<id>"
}
}
}
}Export
Export a document as Word or Markdown
GET/v1/boxes/docs/{id}/export
Requires scope boxes:docs:read; the owner or anyone the document is shared with. Sent as a file with Content-Disposition attachment.
Parameters
idpath · string (uuid)requiredDocument ID
formatquery · "docx" | "md"
Responses
- 200The document file
Response fields
Type:
string (binary) - 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID/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('boxes_docs_documents_export', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_export",
"arguments": {
"id": "<id>"
}
}
}
}Export a spreadsheet as an Excel workbook or CSV
GET/v1/boxes/sheets/{id}/export
Requires scope boxes:sheets:read and read permission on the spreadsheet. xlsx (default) is every tab with values and formulas; csv is the first tab. Sent as a file with Content-Disposition attachment.
Parameters
idpath · string (uuid)requiredformatquery · "xlsx" | "csv"
Responses
- 200The spreadsheet file
Response fields
Type:
string (binary) - 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/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('boxes_sheets_spreadsheets_export', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_spreadsheets_export",
"arguments": {
"id": "<id>"
}
}
}
}Operations
List collaboration operations of a document
GET/v1/boxes/docs/{id}/operations
Requires scope boxes:docs:read. The access check requires owner or write permission on an active document, so read-only sharees receive 404.
Parameters
idpath · string (uuid)requiredDocument ID
after_revisionquery · integer (int32)Return operations with a revision greater than this. The alias afterRevision is also accepted.
limitquery · integer (int64)Maximum operations returned; clamped to 1..500.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].documentIdstring (uuid)requireddata[].[].operationIdstringrequireddata[].[].revisioninteger (int32)requireddata[].[].baseRevisioninteger (int32)requireddata[].[].actorIdstring (uuid)requireddata[].[].actorKind"human" | "agent"requireddata[].[].actorAgentDidstring | nulldata[].[].operationType"insert_block" | "insert_blocks" | "replace_block" | "delete_block" | "delete_blocks" | "move_block" | "update_text" | "update_props" | "set_mode" | "set_page_settings" | "set_tabs" | "add_comment" | "reply_comment" | "resolve_comment" | "delete_comment" | "add_suggestion" | "update_suggestion_status" | "delete_suggestion" | "update_table_cell" | "update_database_cell" | "insert_database_row" | "delete_database_row" | "update_database_row_blocks" | "run_database_automation" | "update_agent_run" | "record_command"requireddata[].[].blockIdstring | nulldata[].[].valuestring | nulldata[].[].payloadobjectrequiredOperation payload, including a server-added _actorContext object with the actor roles.
data[].[].createdAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID/operations" \
-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('boxes_docs_documents_operations_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_operations_list",
"arguments": {
"id": "<id>"
}
}
}
}Append a collaboration operation to a document
POST/v1/boxes/docs/{id}/operations
Requires scope boxes:docs:edit and owner or write permission on an active document. The actor kind (human or agent) is taken from the calling principal. The server adds an _actorContext object to the stored payload. Supplying operationId makes the append identifiable; when omitted a UUID is generated.
Parameters
idpath · string (uuid)requiredDocument ID
Request body application/json
operationIdstringClient supplied operation ID; trimmed, blank means generate one.
baseRevisioninteger (int32)requiredRevision the client based this operation on.
operationType"insert_block" | "insert_blocks" | "replace_block" | "delete_block" | "delete_blocks" | "move_block" | "update_text" | "update_props" | "set_mode" | "set_page_settings" | "set_tabs" | "add_comment" | "reply_comment" | "resolve_comment" | "delete_comment" | "add_suggestion" | "update_suggestion_status" | "delete_suggestion" | "update_table_cell" | "update_database_cell" | "insert_database_row" | "delete_database_row" | "update_database_row_blocks" | "run_database_automation" | "update_agent_run" | "record_command"requiredblockIdstringvaluestringpayloadobjectUnspecified: payload shape depends on operationType and is not validated by the schema; it must be a JSON object. Defaults to {}.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.documentIdstring (uuid)requireddata.operationIdstringrequireddata.revisioninteger (int32)requireddata.baseRevisioninteger (int32)requireddata.actorIdstring (uuid)requireddata.actorKind"human" | "agent"requireddata.actorAgentDidstring | nulldata.operationType"insert_block" | "insert_blocks" | "replace_block" | "delete_block" | "delete_blocks" | "move_block" | "update_text" | "update_props" | "set_mode" | "set_page_settings" | "set_tabs" | "add_comment" | "reply_comment" | "resolve_comment" | "delete_comment" | "add_suggestion" | "update_suggestion_status" | "delete_suggestion" | "update_table_cell" | "update_database_cell" | "insert_database_row" | "delete_database_row" | "update_database_row_blocks" | "run_database_automation" | "update_agent_run" | "record_command"requireddata.blockIdstring | nulldata.valuestring | nulldata.payloadobjectrequiredOperation payload, including a server-added _actorContext object with the actor roles.
data.createdAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 409Revision conflict, duplicate operation, or revision limit reached
- 422Payload is not an object, or the operation is otherwise invalid
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/$ID/operations" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"baseRevision": 1,
"operationType": "insert_block"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_docs_documents_operations_apply', {
id: '<id>',
body: {
baseRevision: 1,
operationType: 'insert_block',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_operations_apply",
"arguments": {
"id": "<id>",
"body": {
"baseRevision": 1,
"operationType": "insert_block"
}
}
}
}
}Permanent
Permanently delete a document
DELETE/v1/boxes/docs/{id}/permanent
Requires scope boxes:docs:delete and admin permission. Irreversible.
Parameters
idpath · string (uuid)requiredDocument ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/docs/$ID/permanent" \
-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('boxes_docs_documents_purge', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_purge",
"arguments": {
"id": "<id>"
}
}
}
}Permanently delete a file or folder
DELETE/v1/boxes/files/{id}/permanent
Requires scope boxes:files:delete. Owner only. Irreversible: removes stored objects and reclaims quota.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Scope not granted, or caller is not the file owner
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/files/$ID/permanent" \
-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('boxes_files_purge', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_purge",
"arguments": {
"id": "<id>"
}
}
}
}Permanently delete a spreadsheet
DELETE/v1/boxes/sheets/{id}/permanent
Irreversible. Requires scope boxes:sheets:write and admin permission on the spreadsheet.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/sheets/$ID/permanent" \
-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('boxes_sheets_spreadsheets_purge', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_spreadsheets_purge",
"arguments": {
"id": "<id>"
}
}
}
}Presence
Update caller presence and selection
POST/v1/boxes/docs/{id}/presence
Requires scope boxes:docs:read. Upserts the caller as an active collaborator. HTTP polling alternative to a WebSocket, which is not implemented.
Parameters
idpath · string (uuid)requiredDocument ID
Request body application/json
cursorPositioninteger (int32)selectionBlockIdstringselectionStartinteger (int32)selectionEndinteger (int32)selectedBlockIdsstring[]default
[]
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.documentIdstring (uuid)requireddata.userIdstring (uuid)requireddata.cursorPositioninteger (int32) | nulldata.selectionBlockIdstring | nulldata.selectionStartinteger (int32) | nulldata.selectionEndinteger (int32) | nulldata.selectedBlockIdsstring[]requireddata.lastSeenAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/$ID/presence" \
-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('boxes_docs_documents_presence_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_presence_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Restore
Restore a document or folder from the trash
POST/v1/boxes/docs/{id}/restore
Requires scope boxes:docs:delete and admin permission. Restoring a folder also restores its trashed children of the same owner. A document whose folder is still in the trash is 422 (restore the folder first). Returns the restored record.
Parameters
idpath · string (uuid)requiredDocument ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.organizationIdstring (uuid) | nullrequireddata.projectIdstring (uuid) | nullrequireddata.workspaceIdstring (uuid) | nullrequireddata.titlestringrequireddata.contentstringrequireddata.contentFormat"markdown" | "html" | "plaintext" | "json"requireddata.wordCountinteger (int32)requireddata.statusstringrequiredactive or trashed.
data.isTemplatebooleanrequireddata.folderIdstring (uuid) | nullrequireddata.isFolderbooleanrequireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, not in the trash, or not visible to the caller
- 422The document's folder is in the trash
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/docs/$ID/restore" \
-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('boxes_docs_documents_restore', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_restore",
"arguments": {
"id": "<id>"
}
}
}
}Restore a file or folder from the trash
POST/v1/boxes/files/{id}/restore
Requires scope boxes:files:delete. Only the owner can restore. Restoring a folder also restores its children.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Scope not granted, or caller is not the file owner
- 404Not found, or not in the trash
- 422Parent folder is not active
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/$ID/restore" \
-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('boxes_files_restore', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_restore",
"arguments": {
"id": "<id>"
}
}
}
}Share
Shares
Versions
List version history of a document
GET/v1/boxes/docs/{id}/versions
Requires scope boxes:docs:read. The page and limit values window the list, but the response is not the paginated envelope and carries no pagination block.
Parameters
idpath · string (uuid)requiredDocument ID
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].documentIdstring (uuid)requireddata[].[].versionNumberinteger (int32)requireddata[].[].titlestringrequireddata[].[].contentstringrequireddata[].[].contentFormatstringrequireddata[].[].wordCountinteger (int32)requireddata[].[].createdBystring (uuid)requireddata[].[].createdAtstring (date-time)requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/docs/$ID/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('boxes_docs_documents_versions_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_docs_documents_versions_list",
"arguments": {
"id": "<id>"
}
}
}
}Files
List files and folders in a folder or at the root
GET/v1/boxes/files
Requires scope boxes:files:read. Lists by tenant (not filtered by owner).
Parameters
folder_idquery · string (uuid)Parent folder; omit for the root.
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].namestringrequireddata[].[].mimeTypestringrequiredapplication/x-directory for folders.
data[].[].sizeBytesinteger (int64)requireddata[].[].checksumSha256string | nullrequireddata[].[].isFolderbooleanrequireddata[].[].statusstringrequiredactive or trashed in API responses.
data[].[].ownerIdstring (uuid)requireddata[].[].storageProviderstringrequiredAlways l1fe-oceans.
data[].[].storageRootstringrequiredoceans://tenants/{tenantId}/files
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data[].[].tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data[].[].viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
paginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/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('boxes_files_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_list",
"arguments": {}
}
}Get file or folder metadata
GET/v1/boxes/files/{id}
Requires scope boxes:files:read. Visible to the owner and to users the file is shared with.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/$ID" \
-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('boxes_files_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_get",
"arguments": {
"id": "<id>"
}
}
}Move a file or folder to the trash
DELETE/v1/boxes/files/{id}
Requires scope boxes:files:delete and admin permission (or ownership). Trashing a folder also trashes its children. Soft delete; the response is the trashed record.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/files/$ID" \
-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('boxes_files_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_delete",
"arguments": {
"id": "<id>"
}
}
}
}Rename or move a file or folder
PATCH/v1/boxes/files/{id}
Requires scope boxes:files:upload and write permission on the file. Omitted fields are left unchanged; folderId null moves the caller's own file to the top level. tags changes the owner's own tags.
Parameters
idpath · string (uuid)requiredFile ID
Request body application/json
namestringmin length 1 · max length 512
folderIdstring (uuid) | nullDestination folder, or null for the top level. A folder cannot be moved into itself.
tagsobjectEither set (the whole list) or add and remove. A tag is 1 to 48 characters, stored lowercase; a file holds at most 32.
tags.setstring[]tags.addstring[]tags.removestring[]
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/files/$ID" \
-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('boxes_files_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}List your recent moves, renames and tag changes by batch
GET/v1/boxes/files/activity
The caller's own organizing changes, newest first, grouped by batch, each with who made it. Requires scope boxes:files:read.
Parameters
sincequery · string (date-time)Only changes after this time.
limitquery · integer (int64)At most this many changes.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.batchesobject[]requireddata.batches[].[].batchIdstring (uuid)requireddata.batches[].[].actorstringrequiredWho made the change, as the verified caller (never from the request).
data.batches[].[].atstring (date-time)requireddata.batches[].[].undoOfstring (uuid) | nulldata.batches[].[].taskIdstring | nulldata.batches[].[].opsobject[]requireddata.batches[].[].ops[].[].fileIdstring (uuid)requireddata.batches[].[].ops[].[].fromFolderstring (uuid) | nulldata.batches[].[].ops[].[].toFolderstring (uuid) | nulldata.batches[].[].ops[].[].fromNamestringrequireddata.batches[].[].ops[].[].toNamestringrequireddata.batches[].[].ops[].[].tagsBeforestring[]requireddata.batches[].[].ops[].[].tagsAfterstring[]requireddata.batches[].[].ops[].[].undonebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/activity" \
-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('boxes_files_activity_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_activity_list",
"arguments": {}
}
}Undo one batch of moves, renames and tag changes
POST/v1/boxes/files/activity/{batch_id}/undo
Reverses each change of the batch whose file is unchanged since; a file changed later is left as it is and reported as a conflict. The undo is itself a batch (undoBatchId), so it can be undone. The person may undo any batch in their space; an agent only its own. Requires scope boxes:files:upload.
Parameters
batch_idpath · string (uuid)requiredA batchId from organize or the activity
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.undoBatchIdstring (uuid)requireddata.undoOfstring (uuid)requireddata.opsobject[]requireddata.ops[].[].fileIdstring (uuid)requireddata.ops[].[].result"undone" | "conflict"requireddata.ops[].[].codestringWhy a conflict was left alone.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 404No such batch in the caller's space
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/activity/$BATCH_ID/undo" \
-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('boxes_files_activity_undo', {
batch_id: '<batch_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_activity_undo",
"arguments": {
"batch_id": "<batch_id>"
}
}
}Create a board file of One's
POST/v1/boxes/files/board
Requires scope boxes:files:upload. The only route that marks a file as One's board (files.origin one-board); no other route sets or changes the mark. A part named *.board.json, application/json, at most 4 MiB, a JSON object with id and v; otherwise as an upload.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
folder_idstring (uuid)Parent folder ID. Empty value means root.
filestring (binary)requiredThe board. Its part filename must end .board.json and its content type be application/json; at most 4 MiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not a board file (name, type, size or shape)
- 401Missing or invalid credential
- 403Required scope not granted
- 409Storage quota exceeded (STORAGE_FULL)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/board" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_create_board', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_create_board",
"arguments": {
"body": "<bytes>"
}
}
}
}Erase every file of a data class in the person's own space, past the trash
POST/v1/boxes/files/erase-class
A One person session only; every other caller, an org key included, gets 404 here. Erases every file of the class that the caller owns in their own person scope, active or trashed, each with all its versions and stored objects, through the same purge as a permanent delete, so nothing is left to restore. At most a batch per call, oldest first; while more is true the caller asks again. Folders carry no class and stay. The only class is health (One Health, the person's own Health folder). Needs boxes:files:delete. Irreversible.
Request body application/json
data_class"health"requiredThe data class to erase
Responses
- 200This call's batch is erased
Response fields
successbooleanrequireddataobjectrequireddata.dataClassstringrequiredThe class erased
data.erasedintegerrequiredFiles erased by this call
data.morebooleanrequiredTrue while files of the class are left; call again
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session
- 422Unknown data class
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/erase-class" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data_class": "health"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_erase_class', {
body: {
data_class: 'health',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_erase_class",
"arguments": {
"body": {
"data_class": "health"
}
}
}
}
}Create a folder
POST/v1/boxes/files/folder
Requires scope boxes:files:upload. Folder names must be 1 to 512 characters without path separators.
Request body application/json
namestringrequiredmin length 1 · max length 512
folderIdstring (uuid)
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted
- 404Parent folder not found
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/folder" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_folders_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_folders_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}Create a grid file of One's
POST/v1/boxes/files/grid
Requires scope boxes:files:upload. The only route that marks a file as One's grid (files.origin one-grid); no other route sets or changes the mark. A part named *.grid.json, application/json, at most 10 MiB, a JSON object with id and v; otherwise as an upload.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
folder_idstring (uuid)Parent folder ID. Empty value means root.
filestring (binary)requiredThe grid. Its part filename must end .grid.json and its content type be application/json; at most 10 MiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not a grid file (name, type, size or shape)
- 401Missing or invalid credential
- 403Required scope not granted
- 409Storage quota exceeded (STORAGE_FULL)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/grid" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_create_grid', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_create_grid",
"arguments": {
"body": "<bytes>"
}
}
}
}Apply a batch of folder, move, rename and tag changes as one
POST/v1/boxes/files/organize
One atomic batch of 1 to 200 ops, applied in order in one transaction, or not at all. A refused op answers its own status with details.opIndex and nothing is applied. The answer's batchId names the batch's moves, renames and tag changes in the activity and is what undo takes; a batch of only create_folder ops records nothing (undoable false). Requires scope boxes:files:upload (Genesis signs boxes:write or boxes:files:write). The caller's own space only.
Request body application/json
opsobject[]requiredops[].[].op"create_folder" | "move" | "rename" | "tag"requiredops[].[].refstringmin length 1 · max length 64
ops[].[].namestringmin length 1 · max length 512
ops[].[].fileIdstring (uuid)ops[].[].folderIdstring (uuid) | nullops[].[].folderRefstringmin length 1 · max length 64
ops[].[].tagsobjectEither set (the whole list) or add and remove. A tag is 1 to 48 characters, stored lowercase; a file holds at most 32.
ops[].[].tags.setstring[]ops[].[].tags.addstring[]ops[].[].tags.removestring[]
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.batchIdstring (uuid)requireddata.recordedChangesintegerrequiredThe moves, renames and tag changes the batch recorded (a new folder is not one).
data.undoablebooleanrequireddata.opsobject[]requireddata.ops[].[].indexintegerrequireddata.ops[].[].opstringrequireddata.ops[].[].fileIdstring (uuid)requireddata.ops[].[].resultstringrequiredapplied
data.ops[].[].fileobjectdata.ops[].[].file.idstring (uuid)requireddata.ops[].[].file.tenantIdstring (uuid)requireddata.ops[].[].file.folderIdstring (uuid) | nullrequireddata.ops[].[].file.namestringrequireddata.ops[].[].file.mimeTypestringrequiredapplication/x-directory for folders.
data.ops[].[].file.sizeBytesinteger (int64)requireddata.ops[].[].file.checksumSha256string | nullrequireddata.ops[].[].file.isFolderbooleanrequireddata.ops[].[].file.statusstringrequiredactive or trashed in API responses.
data.ops[].[].file.ownerIdstring (uuid)requireddata.ops[].[].file.storageProviderstringrequiredAlways l1fe-oceans.
data.ops[].[].file.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.ops[].[].file.createdAtstring (date-time)requireddata.ops[].[].file.updatedAtstring (date-time)requireddata.ops[].[].file.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.ops[].[].file.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.ops[].[].file.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Malformed JSON body
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 404A file or destination folder of an op is not found, or not the caller's to change
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/organize" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ops": [
{
"op": "create_folder"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_organize', {
body: {
ops: [
{
op: 'create_folder',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_organize",
"arguments": {
"body": {
"ops": [
{
"op": "create_folder"
}
]
}
}
}
}Create One's places card (the person's Me card)
POST/v1/boxes/files/places-card
Requires scope boxes:files:upload. The only route that marks a file as One's places card (files.origin one-places); no other route sets or changes the mark. Exactly Me.vcf, text/vcard, at most 64 KiB; otherwise as an upload (folder_id, quota, limits).
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
folder_idstring (uuid)Parent folder ID. Empty value means root.
filestring (binary)requiredThe card. Its part filename must be Me.vcf and its content type text/vcard; at most 64 KiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not Me.vcf, not text/vcard, or over 64 KiB
- 401Missing or invalid credential
- 403Required scope not granted
- 409Storage quota exceeded (STORAGE_FULL)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/places-card" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_create_places_card', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_create_places_card",
"arguments": {
"body": "<bytes>"
}
}
}
}List recently updated files
GET/v1/boxes/files/recent
Requires scope boxes:files:read. Scoped to the calling user.
Parameters
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].namestringrequireddata[].[].mimeTypestringrequiredapplication/x-directory for folders.
data[].[].sizeBytesinteger (int64)requireddata[].[].checksumSha256string | nullrequireddata[].[].isFolderbooleanrequireddata[].[].statusstringrequiredactive or trashed in API responses.
data[].[].ownerIdstring (uuid)requireddata[].[].storageProviderstringrequiredAlways l1fe-oceans.
data[].[].storageRootstringrequiredoceans://tenants/{tenantId}/files
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data[].[].tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data[].[].viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
paginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/recent" \
-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('boxes_files_recent_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_recent_list",
"arguments": {}
}
}
}Store the Rig step card's picture in the person's own space
POST/v1/boxes/files/rig-step-picture
A One person session only; every other caller, an org key included, gets 404 here. The only route that makes a file of class rig_step_picture (marked one-rig-step); one PNG of at most 120 KB, named by the server, kept until the person's decision on the card or 120 seconds, whichever is first (the server erases it at expiry). The person can list, download, export and delete it like any file of theirs. Needs boxes:files:upload.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
filestring (binary)requiredThe picture, a PNG of at most 120 KB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Scope not granted, or not a One person session (BOXES_DATA_CLASS_PERSON_ONLY)
- 404Not a One person session
- 409Storage quota exceeded (STORAGE_FULL)
- 422Not a PNG of at most 120 KB
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/rig-step-picture" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_create_rig_step_picture', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_create_rig_step_picture",
"arguments": {
"body": "<bytes>"
}
}
}
}Search files by name
GET/v1/boxes/files/search
Requires scope boxes:files:read.
Parameters
qquery · stringSearch term. Required unless a filter (kind, tag, folder_id, source_type) is given; with neither the answer is 422.
mime_typequery · stringOptional MIME type filter.
kindquery · "folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"Only files of this kind.
tagquery · stringOnly files that carry this tag of the caller's own.
folder_idquery · string (uuid)Only files anywhere under this folder (its whole subtree). A folder the caller cannot read is 404.
source_typequery · "uploaded" | "shared" | "made" | "imported"Only files that came to be here this way.
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].namestringrequireddata[].[].mimeTypestringrequiredapplication/x-directory for folders.
data[].[].sizeBytesinteger (int64)requireddata[].[].checksumSha256string | nullrequireddata[].[].isFolderbooleanrequireddata[].[].statusstringrequiredactive or trashed in API responses.
data[].[].ownerIdstring (uuid)requireddata[].[].storageProviderstringrequiredAlways l1fe-oceans.
data[].[].storageRootstringrequiredoceans://tenants/{tenantId}/files
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data[].[].tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data[].[].viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
paginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/search" \
-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('boxes_files_search'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_search",
"arguments": {}
}
}Search files by name, the words in the body
POST/v1/boxes/files/search
The same search and answer as the GET, with the search words in a JSON body so they stay out of URLs and request logs (rule 11). Requires scope boxes:files:read; Genesis signs it as boxes:read (the one read POST on the Boxes key lane).
Request body application/json
qstringSearch term, 1 to 200 characters. Required unless a filter (kind, tag, folder_id, source_type) is given. min length 1 · max length 200
mime_typestringOptional MIME type filter.
kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
tagstringOnly files that carry this tag of the caller's own. max length 48
folder_idstring (uuid)Only files anywhere under this folder (its whole subtree).
source_type"uploaded" | "shared" | "made" | "imported"How a file came to be in the space.
pageinteger (int64)1-based page number. min 1 · default
1limitinteger (int64)Page size, 1 to 100. min 1 · max 100 · default
20
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].namestringrequireddata[].[].mimeTypestringrequiredapplication/x-directory for folders.
data[].[].sizeBytesinteger (int64)requireddata[].[].checksumSha256string | nullrequireddata[].[].isFolderbooleanrequireddata[].[].statusstringrequiredactive or trashed in API responses.
data[].[].ownerIdstring (uuid)requireddata[].[].storageProviderstringrequiredAlways l1fe-oceans.
data[].[].storageRootstringrequiredoceans://tenants/{tenantId}/files
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data[].[].tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data[].[].viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
paginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/search" \
-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('boxes_files_search_post', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_search_post",
"arguments": {
"body": {}
}
}
}
}List trashed files
GET/v1/boxes/files/trash
Requires scope boxes:files:read. Scoped to the calling user.
Parameters
pagequery · integer (int64)1-based page number; values below 1 are treated as 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200OK
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].folderIdstring (uuid) | nullrequireddata[].[].namestringrequireddata[].[].mimeTypestringrequiredapplication/x-directory for folders.
data[].[].sizeBytesinteger (int64)requireddata[].[].checksumSha256string | nullrequireddata[].[].isFolderbooleanrequireddata[].[].statusstringrequiredactive or trashed in API responses.
data[].[].ownerIdstring (uuid)requireddata[].[].storageProviderstringrequiredAlways l1fe-oceans.
data[].[].storageRootstringrequiredoceans://tenants/{tenantId}/files
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data[].[].tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data[].[].viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
paginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/trash" \
-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('boxes_files_trash_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_trash_list",
"arguments": {}
}
}
}Read your folders as a tree with counts
GET/v1/boxes/files/tree
The caller's own folders under their top level, or under one of their own folders, 1 to 5 levels down, each with its direct sub-folders and files counted. At most 2000 folders; past that the answer says truncated. Requires scope boxes:files:read.
Parameters
folder_idquery · string (uuid)Folder to start under; omit for the top level. A folder that is not the caller's own is 404.
depthquery · integer (int32)Levels of folders to return.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.folderIdstring (uuid) | nullrequireddata.depthintegerrequireddata.foldersobject[]requireddata.folders[].[].idstring (uuid)requireddata.folders[].[].namestringrequireddata.folders[].[].folderCountinteger (int64)requiredFolders directly inside.
data.folders[].[].fileCountinteger (int64)requiredFiles directly inside.
data.folders[].[].childrenobject[]requireddata.truncatedbooleanrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 404Folder not found, or not the caller's own
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/tree" \
-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('boxes_files_tree_get'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_tree_get",
"arguments": {}
}
}Upload a file
POST/v1/boxes/files/upload
Requires scope boxes:files:upload. The effective upload limit today is 2 MiB: storage-service sets no DefaultBodyLimit, so axum's default multipart cap applies before MAX_FILE_SIZE_BYTES (default 100 MB, not reachable). The gateway relay separately caps request bodies at 10 MiB. The tenant must also have storage quota remaining (default 10 GB).
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
filestring (binary)requiredFile data. The part filename becomes the file name (a generated upload-<uuid> name is used when absent) and the part content type becomes the MIME type (default application/octet-stream).
folder_idstring (uuid)Parent folder ID. Empty value means root.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Parent folder not found
- 422Validation failed: missing file part, bad folder_id, invalid file name (empty, over the length limit of 512 by default, or containing / \ or NUL), parent is not a folder, file too large, or storage quota exceeded
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/upload" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_upload', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_upload",
"arguments": {
"body": "<bytes>"
}
}
}
}Read your own storage use and quota
GET/v1/boxes/files/usage
Requires scope boxes:files:read. A One session reads the person's own storage and no one else's; any other caller reads its tenant's. Over quota, an upload answers 409 STORAGE_FULL; reads, export, trash and delete always work.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.ownerstring | nullrequiredThe person (h_...) on a One session; null for any other caller.
data.metersobject[]requireddata.meters[].[].meterstringrequireddata.meters[].[].quantityinteger (int64)requireddata.meters[].[].unitstringrequireddata.meters[].[].windowstringrequireddata.quotaobjectrequireddata.quota.bytesinteger (int64)requireddata.quota.usedinteger (int64)required
- 401Missing or invalid credential
- 403Required scope not granted
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/usage" \
-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('boxes_files_usage_get'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_usage_get",
"arguments": {}
}
}
}Board
Replace a board file of One's in place
PUT/v1/boxes/files/{id}/board
Requires scope boxes:files:upload. Replaces only a file marked as One's board, owned by the caller in their own person scope (checked again under the commit's lock); any other file answers 404, and the general replace refuses a marked file. The file keeps its id, name, folder and mark; the old bytes are deleted.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
expected_versionquery · integerReplace only if the file is still at this version; 409 otherwise.
idpath · string (uuid)requiredFile ID
Request body multipart/form-data
filestring (binary)requiredThe board. Its part filename must end .board.json and its content type be application/json; at most 4 MiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not a board file (name, type, size or shape)
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, not the caller's own board, or not marked as one
- 409Storage quota exceeded (STORAGE_FULL), or the file is no longer at expected_version
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/files/$ID/board" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_replace_board', {
id: '<id>',
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_replace_board",
"arguments": {
"id": "<id>",
"body": "<bytes>"
}
}
}
}Content
Replace a file's bytes in place
PUT/v1/boxes/files/{id}/content
Requires scope boxes:files:upload. Only the file's owner, in their own person scope, on an active file that is not a folder. The file keeps its id, name, folder and shares; it points at the new bytes, keeps one version, and the old bytes are deleted (never kept). Same body limits as an upload; the new size counts against storage quota and the old size is given back.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
idpath · string (uuid)requiredFile ID
Request body multipart/form-data
filestring (binary)requiredThe new bytes. The part content type becomes the file's MIME type (default application/octet-stream).
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, not the caller's own file, or a folder
- 409Storage quota exceeded (STORAGE_FULL)
- 413Request body too large
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/files/$ID/content" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_replace_content', {
id: '<id>',
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_replace_content",
"arguments": {
"id": "<id>",
"body": "<bytes>"
}
}
}
}Download
Download file contents
GET/v1/boxes/files/{id}/download
Requires scope boxes:files:read. The whole object is buffered in memory by the service.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200File bytes. The Content-Type is the stored MIME type of the file and Content-Disposition is an attachment with the file name.
Response fields
Type:
string (binary) - 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, or not visible to the caller
- 422The target is a folder
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/$ID/download" \
-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('boxes_files_download', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_download",
"arguments": {
"id": "<id>"
}
}
}
}Grid
Replace a grid file of One's in place
PUT/v1/boxes/files/{id}/grid
Requires scope boxes:files:upload. Replaces only a file marked as One's grid, owned by the caller in their own person scope (checked again under the commit's lock); any other file answers 404, and the general replace refuses a marked file. The file keeps its id, name, folder and mark; the old bytes are deleted.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
expected_versionquery · integerReplace only if the file is still at this version; 409 otherwise.
idpath · string (uuid)requiredFile ID
Request body multipart/form-data
filestring (binary)requiredThe grid. Its part filename must end .grid.json and its content type be application/json; at most 10 MiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not a grid file (name, type, size or shape)
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, not the caller's own grid, or not marked as one
- 409Storage quota exceeded (STORAGE_FULL), or the file is no longer at expected_version
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/files/$ID/grid" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_replace_grid', {
id: '<id>',
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_replace_grid",
"arguments": {
"id": "<id>",
"body": "<bytes>"
}
}
}
}Path
Read where a file or folder sits
GET/v1/boxes/files/{id}/path
The folders above the file, top first, through the folders the caller may open only. Requires scope boxes:files:read.
Parameters
idpath · string (uuid)requiredFile ID
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequiredThe file's id and name and the folders above it, top first.
data.fileIdstring (uuid)requireddata.namestringrequireddata.isFolderbooleanrequireddata.breadcrumbsobject[]requiredThe folders above it that the caller may open, top first.
data.breadcrumbs[].[].idstring (uuid)requireddata.breadcrumbs[].[].namestringrequiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 404Not found, or not visible to the caller
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/files/$ID/path" \
-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('boxes_files_path_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_path_get",
"arguments": {
"id": "<id>"
}
}
}Places card
Replace One's places card in place
PUT/v1/boxes/files/{id}/places-card
Requires scope boxes:files:upload. Replaces only a file marked as One's places card, owned by the caller in their own person scope (checked again under the commit's lock); any other file answers 404. Exactly Me.vcf, text/vcard, at most 64 KiB. The file keeps its id, name, folder and mark; the old bytes are deleted.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
idpath · string (uuid)requiredFile ID
Request body multipart/form-data
filestring (binary)requiredThe card. Its part filename must be Me.vcf and its content type text/vcard; at most 64 KiB.
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.folderIdstring (uuid) | nullrequireddata.namestringrequireddata.mimeTypestringrequiredapplication/x-directory for folders.
data.sizeBytesinteger (int64)requireddata.checksumSha256string | nullrequireddata.isFolderbooleanrequireddata.statusstringrequiredactive or trashed in API responses.
data.ownerIdstring (uuid)requireddata.storageProviderstringrequiredAlways l1fe-oceans.
data.storageRootstringrequiredoceans://tenants/{tenantId}/files
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requireddata.kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"What a file is, from its type.
data.tagsstring[]The owner's tags; empty for anyone the file is only shared with.
data.viewerTagsstring[]The caller's own tags on a file shared with them; absent on their own files.
metaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 400Not Me.vcf, not text/vcard, or over 64 KiB
- 401Missing or invalid credential
- 403Required scope not granted
- 404Not found, not the caller's own places card, or not marked as one
- 409Storage quota exceeded (STORAGE_FULL)
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/files/$ID/places-card" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_replace_places_card', {
id: '<id>',
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_replace_places_card",
"arguments": {
"id": "<id>",
"body": "<bytes>"
}
}
}
}Rig step picture
Erase one Rig step card picture of the person's own
POST/v1/boxes/files/{id}/rig-step-picture/erase
A One person session only; every other caller, an org key included, gets 404 here. Erases exactly this file, past the trash, only when it is a picture of class rig_step_picture marked one-rig-step, the caller's own in their own person scope; anything else is 404, the same as a missing file. reason is decided (the person approved or chose Not now) or expired. Needs boxes:files:delete.
Parameters
idpath · string (uuid)required
Request body application/json
reason"decided" | "expired"required
Responses
- 200Erased
- 401Missing or invalid credential
- 403Scope not granted
- 404Not such a picture of the caller's, or not a One person session
- 422Unknown reason
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/$ID/rig-step-picture/erase" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"reason": "decided"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_files_erase_rig_step_picture', {
id: '<id>',
body: {
reason: 'decided',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_files_erase_rig_step_picture",
"arguments": {
"id": "<id>",
"body": {
"reason": "decided"
}
}
}
}
}Viewer tags
Set your own tags on a file shared with you
PUT/v1/boxes/files/{id}/viewer-tags
The caller's own tags on a file another user shared with them. The owner never sees them and the caller never sees the owner's. On the caller's own file use PATCH. Requires scope boxes:files:upload.
Parameters
idpath · string (uuid)requiredFile ID
Request body application/json
setstring[]addstring[]removestring[]
Responses
- 200OK
Response fields
successbooleanrequireddataobjectrequireddata.fileIdstring (uuid)requireddata.viewerTagsstring[]requiredmetaobjectmeta.requestIdstringrequiredmeta.timestampstring (date-time)required
- 401Missing or invalid credential
- 403Required scope not granted, or a key limited to folders (those use list, get, upload and move)
- 404Not found, or not shared with the caller
- 422Validation failed (the backend returns 422 for validation errors)
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/files/$ID/viewer-tags" \
-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('boxes_files_viewer_tags_set', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_files_viewer_tags_set",
"arguments": {
"id": "<id>",
"body": {}
}
}
}Identity
Get the calling user
GET/v1/boxes/identity/me
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.kind"human" | "agent"requireddata.emailstringrequireddata.displayNamestringrequireddata.agentType"autonomous" | "assistant" | "department" | "integration" | nulldata.agentDidstring | nulldata.avatarUrlstring | nulldata.status"active" | "suspended" | "deprovisioned"requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/me" \
-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('boxes_identity_me_get'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_identity_me_get",
"arguments": {}
}
}Get the caller's tenant
GET/v1/boxes/identity/tenants/current
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.namestringrequireddata.slugstringrequireddata.domainstring | nulldata.plan"free" | "starter" | "business" | "enterprise"requireddata.status"active" | "suspended" | "cancelled"requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/tenants/current" \
-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('boxes_identity_tenants_current_get'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_identity_tenants_current_get",
"arguments": {}
}
}
}List users in the caller's tenant
GET/v1/boxes/identity/users
Parameters
pagequery · integer (int64)1-based page number; values below 1 become 1.
limitquery · integer (int64)Page size; clamped to 1..100.
kindquery · "human" | "agent"Filter by kind. "human" selects humans; any other non-empty value selects agents.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].kind"human" | "agent"requireddata[].[].emailstringrequireddata[].[].displayNamestringrequireddata[].[].agentType"autonomous" | "assistant" | "department" | "integration" | nulldata[].[].agentDidstring | nulldata[].[].avatarUrlstring | nulldata[].[].status"active" | "suspended" | "deprovisioned"requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/users" \
-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('boxes_identity_users_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_identity_users_list",
"arguments": {}
}
}
}Get a user by id
GET/v1/boxes/identity/users/{id}
The handler does not filter by tenant.
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.kind"human" | "agent"requireddata.emailstringrequireddata.displayNamestringrequireddata.agentType"autonomous" | "assistant" | "department" | "integration" | nulldata.agentDidstring | nulldata.avatarUrlstring | nulldata.status"active" | "suspended" | "deprovisioned"requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/users/$ID" \
-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('boxes_identity_users_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_identity_users_get",
"arguments": {
"id": "<id>"
}
}
}
}List active workspaces in the tenant
GET/v1/boxes/identity/workspaces
Parameters
pagequery · integer (int64)1-based page number; values below 1 become 1.
limitquery · integer (int64)Page size; clamped to 1..100.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].namestringrequireddata[].[].slugstringrequireddata[].[].statusstringrequireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/workspaces" \
-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('boxes_identity_workspaces_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_identity_workspaces_list",
"arguments": {}
}
}Get a workspace
GET/v1/boxes/identity/workspaces/{id}
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.namestringrequireddata.slugstringrequireddata.statusstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/workspaces/$ID" \
-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('boxes_identity_workspaces_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_identity_workspaces_get",
"arguments": {
"id": "<id>"
}
}
}
}List workspace members
GET/v1/boxes/identity/workspaces/{id}/members
Requires workspace membership, or the identity read or manage scope.
Parameters
idpath · string (uuid)requiredResource UUID.
Responses
- 200Success.
Response fields
successbooleanrequireddataobject[]requireddata[].[].workspaceIdstring (uuid)requireddata[].[].userIdstring (uuid)requireddata[].[].rolestringrequireddata[].[].joinedAtstring (date-time)requiredmetaobjectResponse metadata. The identity service passes an empty request id.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/identity/workspaces/$ID/members" \
-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('boxes_identity_workspaces_members_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_identity_workspaces_members_list",
"arguments": {
"id": "<id>"
}
}
}
}List mail addresses for the caller
GET/v1/boxes/mail/addresses
Requires scope boxes:mail:read. Lists the primary mailbox address plus reserved custom addresses owned by the caller. Creates the primary mailbox if none exists.
Responses
- 200Addresses
Response fields
successbooleanrequireddataobject[]requireddata[].[].mailboxIdstring (uuid)requireddata[].[].addressstringrequireddata[].[].addressKindstringrequiredprimary, or the stored address kind
data[].[].isPrimarybooleanrequireddata[].[].domainIdstring | null (uuid)data[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 403Forbidden
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/addresses" \
-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('boxes_mail_addresses_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_addresses_list",
"arguments": {}
}
}Reserve a mail address on a verified custom domain
POST/v1/boxes/mail/addresses
Requires the boxes:admin key scope. domainId is required in the body (422 otherwise). The domain must be verified (or, with the resend provider, ready for sending and receiving) and the local part must not already be reserved.
Request body application/json
domainIdstring | null (uuid)Required on POST /v1/mail/addresses (422 when missing); ignored on the domain-scoped route, where the path domain_id is used
localPartstringrequiredLower-cased; letters, digits and . _ % + -; must start and end with a letter or digit max length 64
displayNamestring | nullisPrimarybooleanAlso accepted as makePrimary default
false
Responses
- 201Address reserved
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.localPartstringrequireddata.domainstringrequireddata.domainIdstring | null (uuid)data.domainKind"custom" | "personal"requireddata.addressstringrequireddata.emailAddressstringrequireddata.displayNamestring | nulldata.isPrimarybooleanrequireddata.statusstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 409Conflict
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/addresses" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"localPart": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_addresses_create', {
body: {
localPart: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_addresses_create",
"arguments": {
"body": {
"localPart": "string"
}
}
}
}List recent agent mail activity for the tenant
GET/v1/boxes/mail/agent/activities
Parameters
limitquery · integer (int64)Values outside 1-50 are clamped
Responses
- 200Activities
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].agentIdstring (uuid)requireddata[].[].agentNamestringrequireddata[].[].actionType"reply_drafted" | "message_read"requireddata[].[].descriptionstringrequireddata[].[].mailboxEmailstringrequireddata[].[].relatedMessageIdstring | null (uuid)data[].[].relatedSubjectstring | nulldata[].[].timestampstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agent/activities" \
-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('boxes_mail_agent_activities_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_activities_list",
"arguments": {}
}
}
}Send one email per recipient with variable substitution
POST/v1/boxes/mail/agent/batch-send
Agent principals only (403 for human principals). Up to 500 recipients; {{key}} placeholders are replaced from each recipient variables map. Returns 201 with per-recipient results from the built-in transport, or 202 with status queued when the resend transport is active (then mail:send scope and a UUID Idempotency-Key are honored). A failure for one recipient does not fail the batch; check results. Idempotency-Key must be a UUID (generated when absent, 422 when malformed); reusing a key with different batch content returns 409. The key is returned as idempotencyKey in the response body under the Resend transport.
Parameters
Idempotency-Keyheader · string (uuid)Must be a UUID. Optional: the service generates one when absent and rejects a malformed value with 422. Only mail send, agent batch send and agent mailbox send read it.
Request body application/json
mailboxIdstring | null (uuid)recipientsobject[]requiredrecipients[].[].tostring (email)requiredrecipients[].[].subjectstring | nullmax length 998
recipients[].[].bodyPlainstring | nullrecipients[].[].bodyHtmlstring | nullrecipients[].[].variablesobject | nullValues for {{key}} placeholders in subject and bodies
defaultsobject | null
Responses
- 201Batch processed
Response fields
successbooleanrequireddataobjectrequireddata.totalintegerrequireddata.sentintegerrequireddata.storedintegerrequireddata.failedintegerrequireddata.queuedintegerPresent only when the resend transport is active
data.idempotencyKeystring (uuid)Present only when the resend transport is active
data.resultsobject[]requireddata.results[].[].tostringrequireddata.results[].[].statusstringrequiredsent, stored, queued or failed
data.results[].[].errorstring | null
- 202Batch queued (resend transport)
Response fields
successbooleanrequireddataobjectrequireddata.totalintegerrequireddata.sentintegerrequireddata.storedintegerrequireddata.failedintegerrequireddata.queuedintegerPresent only when the resend transport is active
data.idempotencyKeystring (uuid)Present only when the resend transport is active
data.resultsobject[]requireddata.results[].[].tostringrequireddata.results[].[].statusstringrequiredsent, stored, queued or failed
data.results[].[].errorstring | null
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 409Conflict
- 422Validation error
- 429Rate limited
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agent/batch-send" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipients": [
{
"to": "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('boxes_mail_agent_batch_send', {
body: {
recipients: [
{
to: 'string',
},
],
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_batch_send",
"arguments": {
"body": {
"recipients": [
{
"to": "string"
}
]
},
"idempotency_key": "<a stable key per change>"
}
}
}
}List per-message agent processing state
GET/v1/boxes/mail/agent/state
Agent principals only.
Parameters
lifecycleStatequery · stringrequiresResponsequery · booleanpagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
Responses
- 200Agent states page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].messageIdstring (uuid)requireddata[].[].agentIdstring (uuid)requireddata[].[].lifecycleStatestringrequireddata[].[].requiresResponseboolean | nulldata[].[].responseUrgencystring | nulldata[].[].responseDraftedboolean | nulldata[].[].confidencenumber | null (float)data[].[].tagsstring[]requireddata[].[].metadataanyrequiredFree-form JSON object
data[].[].processedAtstring | null (date-time)data[].[].respondedAtstring | null (date-time)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agent/state" \
-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('boxes_mail_agent_state_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_state_list",
"arguments": {}
}
}
}Update agent processing state for a message
PATCH/v1/boxes/mail/agent/state/{messageId}
Agent principals only. The message must be in the agent own mailbox. The state record is created on first update.
Parameters
messageIdpath · string (uuid)required
Request body application/json
lifecycleStatestringFree-form string; the handler does not restrict values
requiresResponsebooleanresponseUrgencystringresponseDraftedbooleanconfidencenumber (float)tagsstring[]metadataanyFree-form JSON
Responses
- 200Updated state
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.messageIdstring (uuid)requireddata.agentIdstring (uuid)requireddata.lifecycleStatestringrequireddata.requiresResponseboolean | nulldata.responseUrgencystring | nulldata.responseDraftedboolean | nulldata.confidencenumber | null (float)data.tagsstring[]requireddata.metadataanyrequiredFree-form JSON object
data.processedAtstring | null (date-time)data.respondedAtstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/mail/agent/state/$MESSAGE_ID" \
-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('boxes_mail_agent_state_update', {
messageId: '<messageId>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_state_update",
"arguments": {
"messageId": "<messageId>",
"body": {}
}
}
}
}List mail webhook subscriptions
GET/v1/boxes/mail/agent/webhooks
Agent principals only. Secrets are masked to a preview.
Responses
- 200Webhooks
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].mailboxIdstring (uuid)requireddata[].[].urlstringrequireddata[].[].filtersobjectrequireddata[].[].filters.eventTypes"message:new" | "message:updated" | "message:deleted" | "thread:updated" | "label:applied" | "label:removed"[]data[].[].filters.mailboxIdsstring (uuid)[]May only contain the caller own mailbox id
data[].[].filters.fromDomainsstring[]data[].[].filters.labelsstring[]data[].[].filters.minPrioritynumbermin 0 · max 100
data[].[].filters.excludeAutomatedbooleandata[].[].batchSizeinteger (int32)requireddata[].[].batchIntervalMsinteger (int32)requireddata[].[].isActivebooleanrequireddata[].[].lastDeliveryAtstring | null (date-time)data[].[].failureCountinteger (int32)requireddata[].[].signingobjectrequireddata[].[].signing.algorithmstringrequireddata[].[].signing.signatureHeaderstringrequireddata[].[].signing.timestampHeaderstringrequireddata[].[].signing.webhookIdHeaderstringrequireddata[].[].signing.signedPayloadstringrequireddata[].[].signing.signingSecretstringReturned only in the create response
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requireddata[].[].signingSecretPreviewstringrequiredFirst 8 characters of the secret followed by ...
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agent/webhooks" \
-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('boxes_mail_agent_webhooks_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_webhooks_list",
"arguments": {}
}
}
}Create a mail webhook subscription
POST/v1/boxes/mail/agent/webhooks
Agent principals only. The signing secret is returned once, in signing.signingSecret. Deliveries are signed with HMAC-SHA256 over {timestamp}.{raw_body}.
Request body application/json
urlstring (uri)requiredMust be https
filtersobjectfilters.eventTypes"message:new" | "message:updated" | "message:deleted" | "thread:updated" | "label:applied" | "label:removed"[]filters.mailboxIdsstring (uuid)[]May only contain the caller own mailbox id
filters.fromDomainsstring[]filters.labelsstring[]filters.minPrioritynumbermin 0 · max 100
filters.excludeAutomatedbooleanbatchSizeintegermin 1 · max 1000 · default
1batchIntervalMsintegermin 0 · max 300000 · default
0
Responses
- 201Webhook created
Response fields
successbooleanrequireddataobjectrequiredCreate response. signing.signingSecret is present only here.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.urlstringrequireddata.filtersobjectrequireddata.filters.eventTypes"message:new" | "message:updated" | "message:deleted" | "thread:updated" | "label:applied" | "label:removed"[]data.filters.mailboxIdsstring (uuid)[]May only contain the caller own mailbox id
data.filters.fromDomainsstring[]data.filters.labelsstring[]data.filters.minPrioritynumbermin 0 · max 100
data.filters.excludeAutomatedbooleandata.batchSizeinteger (int32)requireddata.batchIntervalMsinteger (int32)requireddata.isActivebooleanrequireddata.lastDeliveryAtstring | null (date-time)data.failureCountinteger (int32)requireddata.signingobjectrequireddata.signing.algorithmstringrequireddata.signing.signatureHeaderstringrequireddata.signing.timestampHeaderstringrequireddata.signing.webhookIdHeaderstringrequireddata.signing.signedPayloadstringrequireddata.signing.signingSecretstringReturned only in the create response
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agent/webhooks" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_agent_webhooks_create', {
body: {
url: 'https://example.com',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_webhooks_create",
"arguments": {
"body": {
"url": "https://example.com"
}
}
}
}
}Delete a mail webhook subscription
DELETE/v1/boxes/mail/agent/webhooks/{id}
Agent principals only.
Parameters
idpath · string (uuid)required
Responses
- 204Deleted
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/agent/webhooks/$ID" \
-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('boxes_mail_agent_webhooks_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agent_webhooks_delete",
"arguments": {
"id": "<id>"
}
}
}
}List the project's agent mailboxes
GET/v1/boxes/mail/agents
Every active agent mailbox in the key's project tenant, One first. One's mailbox is provided by default and is created here if it does not exist yet, even under boxes:read. Org API keys only; a signed-in session gets 404 on every agent mailbox route. Needs boxes:read.
Responses
- 200Agent mailboxes
Response fields
successbooleanrequireddataobject[]requireddata[].[].agentIdstringrequireddata[].[].agentDidstringrequireddid:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID
data[].[].defaultbooleanrequiredTrue for One's default mailbox
data[].[].displayNamestringrequireddata[].[].mailboxIdstring (uuid)requireddata[].[].addressstringrequiredThe mailbox's primary address
data[].[].status"active" | "deleted"requireddata[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 403Missing boxes:read
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents" \
-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('boxes_mail_agents_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_list",
"arguments": {}
}
}Create an agent's mailbox
POST/v1/boxes/mail/agents
Gives an agent identity a mailbox in the key's project tenant. agentId is "one" or an OpenAgentID a_<ULID>. It is idempotent; an existing mailbox answers 200, a new or restored one 201. A deleted mailbox comes back with its mail and address. The address is assigned by Boxes on the first-party domain. A project holds at most 500 active agent mailboxes (One not counted), checked on create and on restore. Agent mailboxes are metered per agent-month (boxes.agent_mailbox_months). Needs boxes:write.
Request body application/json
agentIdstringrequired"one" or an OpenAgentID a_<ULID> pattern
^(one|a_[0-7][0-9A-HJKMNP-TV-Z]{25})$displayNamestringShown as the sender name; defaults to "One" or "Agent" max length 80
Responses
- 200The agent already has a mailbox
Response fields
successbooleanrequireddataobjectrequireddata.agentIdstringrequireddata.agentDidstringrequireddid:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID
data.defaultbooleanrequiredTrue for One's default mailbox
data.displayNamestringrequireddata.mailboxIdstring (uuid)requireddata.addressstringrequiredThe mailbox's primary address
data.status"active" | "deleted"requireddata.createdAtstring (date-time)required
- 201Mailbox created or restored
Response fields
successbooleanrequireddataobjectrequireddata.agentIdstringrequireddata.agentDidstringrequireddid:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID
data.defaultbooleanrequiredTrue for One's default mailbox
data.displayNamestringrequireddata.mailboxIdstring (uuid)requireddata.addressstringrequiredThe mailbox's primary address
data.status"active" | "deleted"requireddata.createdAtstring (date-time)required
- 400Malformed body or agentId
- 401Missing or invalid authentication
- 403Missing boxes:write
- 409ADDRESS_CONFLICT (the address is already reserved) or AGENT_MAILBOX_LIMIT (the project already has 500 active agent mailboxes; One is not counted)
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agents" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agentId": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_agents_create', {
body: {
agentId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_create",
"arguments": {
"body": {
"agentId": "string"
}
}
}
}Get an agent's mailbox
GET/v1/boxes/mail/agents/{agentId}
Needs boxes:read. For "one" the default mailbox is created if missing, so it never answers 404.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
Responses
- 200Agent mailbox
Response fields
successbooleanrequireddataobjectrequireddata.agentIdstringrequireddata.agentDidstringrequireddid:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID
data.defaultbooleanrequiredTrue for One's default mailbox
data.displayNamestringrequireddata.mailboxIdstring (uuid)requireddata.addressstringrequiredThe mailbox's primary address
data.status"active" | "deleted"requireddata.createdAtstring (date-time)required
- 401Missing or invalid authentication
- 404The agent has no active mailbox in this project
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID" \
-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('boxes_mail_agents_get', {
agentId: '<agentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_get",
"arguments": {
"agentId": "<agentId>"
}
}
}Delete an agent's mailbox
DELETE/v1/boxes/mail/agents/{agentId}
Stops the agent's mailbox. Its mail and address are kept, and creating it again restores it. One's default mailbox cannot be deleted (409 DEFAULT_AGENT_MAILBOX). Needs boxes:write.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
Responses
- 200Mailbox deleted (status deleted)
Response fields
successbooleanrequireddataobjectrequireddata.agentIdstringrequireddata.agentDidstringrequireddid:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID
data.defaultbooleanrequiredTrue for One's default mailbox
data.displayNamestringrequireddata.mailboxIdstring (uuid)requireddata.addressstringrequiredThe mailbox's primary address
data.status"active" | "deleted"requireddata.createdAtstring (date-time)required
- 401Missing or invalid authentication
- 404The agent has no active mailbox in this project
- 409One's default mailbox cannot be deleted
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID" \
-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('boxes_mail_agents_delete', {
agentId: '<agentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_delete",
"arguments": {
"agentId": "<agentId>"
}
}
}As the agent, list messages in a folder
GET/v1/boxes/mail/agents/{agentId}/inbox
Messages in a folder of the agent's own mailbox, newest first. Needs boxes:read.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
folderquery · stringFolder name; defaults to inbox
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
unreadOnlyquery · booleanOnly unread messages
starredquery · booleanOnly starred messages
Responses
- 200Messages page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].mailboxIdstring (uuid)requireddata[].[].threadIdstring | null (uuid)data[].[].messageIdstringrequiredRFC 5322 Message-ID
data[].[].inReplyTostring | nulldata[].[].referencesstring[]requireddata[].[].fromAddressstringrequireddata[].[].fromNamestring | nulldata[].[].toAddressesobject[]requireddata[].[].toAddresses[].[].addressstringrequireddata[].[].toAddresses[].[].namestring | nulldata[].[].ccAddressesobject[]requireddata[].[].ccAddresses[].[].addressstringrequireddata[].[].ccAddresses[].[].namestring | nulldata[].[].bccAddressesobject[]requireddata[].[].bccAddresses[].[].addressstringrequireddata[].[].bccAddresses[].[].namestring | nulldata[].[].subjectstringrequireddata[].[].bodyPlainstring | nulldata[].[].bodyHtmlstring | nulldata[].[].snippetstring | nulldata[].[].folderstringrequireddata[].[].isReadbooleanrequireddata[].[].isStarredbooleanrequireddata[].[].isDraftbooleanrequireddata[].[].spamScorenumber | null (float)data[].[].priorityScorenumber | null (float)data[].[].hasAttachmentsbooleanrequireddata[].[].rawSizeinteger | null (int32)data[].[].receivedAtstring (date-time)requireddata[].[].sentAtstring | null (date-time)data[].[].snoozedUntilstring | null (date-time)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Missing scope
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID/inbox" \
-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('boxes_mail_agents_inbox_list', {
agentId: '<agentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_inbox_list",
"arguments": {
"agentId": "<agentId>"
}
}
}As the agent, get a message with its labels
GET/v1/boxes/mail/agents/{agentId}/messages/{id}
A message of the agent's own mailbox. Needs boxes:read.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
idpath · string (uuid)required
Responses
- 200Message and labels
Response fields
successbooleanrequireddataobjectrequireddata.messageobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.message.idstring (uuid)requireddata.message.mailboxIdstring (uuid)requireddata.message.threadIdstring | null (uuid)data.message.messageIdstringrequiredRFC 5322 Message-ID
data.message.inReplyTostring | nulldata.message.referencesstring[]requireddata.message.fromAddressstringrequireddata.message.fromNamestring | nulldata.message.toAddressesobject[]requireddata.message.toAddresses[].[].addressstringrequireddata.message.toAddresses[].[].namestring | nulldata.message.ccAddressesobject[]requireddata.message.ccAddresses[].[].addressstringrequireddata.message.ccAddresses[].[].namestring | nulldata.message.bccAddressesobject[]requireddata.message.bccAddresses[].[].addressstringrequireddata.message.bccAddresses[].[].namestring | nulldata.message.subjectstringrequireddata.message.bodyPlainstring | nulldata.message.bodyHtmlstring | nulldata.message.snippetstring | nulldata.message.folderstringrequireddata.message.isReadbooleanrequireddata.message.isStarredbooleanrequireddata.message.isDraftbooleanrequireddata.message.spamScorenumber | null (float)data.message.priorityScorenumber | null (float)data.message.hasAttachmentsbooleanrequireddata.message.rawSizeinteger | null (int32)data.message.receivedAtstring (date-time)requireddata.message.sentAtstring | null (date-time)data.message.snoozedUntilstring | null (date-time)data.message.createdAtstring (date-time)requireddata.message.updatedAtstring (date-time)requireddata.labelsobject[]requireddata.labels[].[].idstring (uuid)requireddata.labels[].[].mailboxIdstring (uuid)requireddata.labels[].[].namestringrequireddata.labels[].[].colorstring | nulldata.labels[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 403Missing scope
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID/messages/$ID" \
-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('boxes_mail_agents_messages_get', {
agentId: '<agentId>',
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_messages_get",
"arguments": {
"agentId": "<agentId>",
"id": "<id>"
}
}
}As the agent, send an email or save a draft
POST/v1/boxes/mail/agents/{agentId}/send
Sends from the agent's own mailbox (or saves a draft with isDraft). Needs boxes:write. At least one of bodyPlain or bodyHtml is required. Mail leaving the organization is checked with Auto as the org API key, not as the agent. Idempotency-Key, if given, must be a UUID (422 otherwise); a replay of the same key returns 200 with the original message.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
Idempotency-Keyheader · string (uuid)Must be a UUID. Optional: the service generates one when absent and rejects a malformed value with 422. Only mail send, agent batch send and agent mailbox send read it.
Request body application/json
toobject[]requiredto[].[].addressstringrequiredto[].[].namestring | nullfromMailboxIdstring | null (uuid)ccobject[]cc[].[].addressstringrequiredcc[].[].namestring | nullbccobject[]bcc[].[].addressstringrequiredbcc[].[].namestring | nullsubjectstringrequiredmax length 998
bodyPlainstring | nullbodyHtmlstring | nullinReplyTostring | nullisDraftbooleandefault
falsescheduledAtstring | nullAccepted by the request struct but not read by the send handler
attachmentIdsstring (uuid)[]
Responses
- 200Idempotent replay of an earlier send
Response fields
successbooleanrequireddataobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.threadIdstring | null (uuid)data.messageIdstringrequiredRFC 5322 Message-ID
data.inReplyTostring | nulldata.referencesstring[]requireddata.fromAddressstringrequireddata.fromNamestring | nulldata.toAddressesobject[]requireddata.toAddresses[].[].addressstringrequireddata.toAddresses[].[].namestring | nulldata.ccAddressesobject[]requireddata.ccAddresses[].[].addressstringrequireddata.ccAddresses[].[].namestring | nulldata.bccAddressesobject[]requireddata.bccAddresses[].[].addressstringrequireddata.bccAddresses[].[].namestring | nulldata.subjectstringrequireddata.bodyPlainstring | nulldata.bodyHtmlstring | nulldata.snippetstring | nulldata.folderstringrequireddata.isReadbooleanrequireddata.isStarredbooleanrequireddata.isDraftbooleanrequireddata.spamScorenumber | null (float)data.priorityScorenumber | null (float)data.hasAttachmentsbooleanrequireddata.rawSizeinteger | null (int32)data.receivedAtstring (date-time)requireddata.sentAtstring | null (date-time)data.snoozedUntilstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 201Message created
Response fields
successbooleanrequireddataobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.threadIdstring | null (uuid)data.messageIdstringrequiredRFC 5322 Message-ID
data.inReplyTostring | nulldata.referencesstring[]requireddata.fromAddressstringrequireddata.fromNamestring | nulldata.toAddressesobject[]requireddata.toAddresses[].[].addressstringrequireddata.toAddresses[].[].namestring | nulldata.ccAddressesobject[]requireddata.ccAddresses[].[].addressstringrequireddata.ccAddresses[].[].namestring | nulldata.bccAddressesobject[]requireddata.bccAddresses[].[].addressstringrequireddata.bccAddresses[].[].namestring | nulldata.subjectstringrequireddata.bodyPlainstring | nulldata.bodyHtmlstring | nulldata.snippetstring | nulldata.folderstringrequireddata.isReadbooleanrequireddata.isStarredbooleanrequireddata.isDraftbooleanrequireddata.spamScorenumber | null (float)data.priorityScorenumber | null (float)data.hasAttachmentsbooleanrequireddata.rawSizeinteger | null (int32)data.receivedAtstring (date-time)requireddata.sentAtstring | null (date-time)data.snoozedUntilstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 422Validation error
- 429Rate limited
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID/send" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": [],
"subject": "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('boxes_mail_agents_send', {
agentId: '<agentId>',
body: {
to: [],
subject: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_send",
"arguments": {
"agentId": "<agentId>",
"body": {
"to": [],
"subject": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}As the agent, list conversation threads
GET/v1/boxes/mail/agents/{agentId}/threads
Threads of the agent's own mailbox, newest activity first. Needs boxes:read.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
Responses
- 200Threads page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].subjectstringrequireddata[].[].participantsobject[]requireddata[].[].participants[].[].namestringrequireddata[].[].participants[].[].emailstringrequireddata[].[].participants[].[].isAgentbooleanrequireddata[].[].participants[].[].agentDidstring | nulldata[].[].participants[].[].agentTypestring | nulldata[].[].lastMessageobjectrequireddata[].[].lastMessage.idstring (uuid)requireddata[].[].lastMessage.threadIdstring (uuid)requireddata[].[].lastMessage.messageIdstringrequireddata[].[].lastMessage.fromobjectrequireddata[].[].lastMessage.from.namestringrequireddata[].[].lastMessage.from.emailstringrequireddata[].[].lastMessage.from.isAgentbooleanrequireddata[].[].lastMessage.from.agentDidstring | nulldata[].[].lastMessage.from.agentTypestring | nulldata[].[].lastMessage.toobject[]requireddata[].[].lastMessage.to[].[].namestringrequireddata[].[].lastMessage.to[].[].emailstringrequireddata[].[].lastMessage.to[].[].isAgentbooleanrequireddata[].[].lastMessage.to[].[].agentDidstring | nulldata[].[].lastMessage.to[].[].agentTypestring | nulldata[].[].lastMessage.ccobject[]requireddata[].[].lastMessage.cc[].[].namestringrequireddata[].[].lastMessage.cc[].[].emailstringrequireddata[].[].lastMessage.cc[].[].isAgentbooleanrequireddata[].[].lastMessage.cc[].[].agentDidstring | nulldata[].[].lastMessage.cc[].[].agentTypestring | nulldata[].[].lastMessage.bccobject[]requireddata[].[].lastMessage.bcc[].[].namestringrequireddata[].[].lastMessage.bcc[].[].emailstringrequireddata[].[].lastMessage.bcc[].[].isAgentbooleanrequireddata[].[].lastMessage.bcc[].[].agentDidstring | nulldata[].[].lastMessage.bcc[].[].agentTypestring | nulldata[].[].lastMessage.subjectstringrequireddata[].[].lastMessage.snippetstringrequireddata[].[].lastMessage.bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data[].[].lastMessage.bodyPlainstring | nulldata[].[].lastMessage.sentAtstring (date-time)requireddata[].[].lastMessage.receivedAtstring (date-time)requireddata[].[].lastMessage.isReadbooleanrequireddata[].[].lastMessage.isStarredbooleanrequireddata[].[].lastMessage.isDraftbooleanrequireddata[].[].lastMessage.folderstringrequireddata[].[].lastMessage.labelsstring[]requireddata[].[].lastMessage.hasAttachmentsbooleanrequireddata[].[].lastMessage.spamScorenumber | null (float)data[].[].lastMessage.priorityScorenumber | null (float)data[].[].lastMessage.snoozedUntilstring | null (date-time)data[].[].messageCountinteger (int32)requireddata[].[].isReadbooleanrequireddata[].[].isStarredbooleanrequireddata[].[].labelsstring[]requireddata[].[].hasAgentActivitybooleanrequireddata[].[].lastMessageAtstring (date-time)requireddata[].[].snippetstring | nullmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Missing scope
- 404The agent has no active mailbox in this project
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID/threads" \
-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('boxes_mail_agents_threads_list', {
agentId: '<agentId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_threads_list",
"arguments": {
"agentId": "<agentId>"
}
}
}As the agent, get a thread with all its messages
GET/v1/boxes/mail/agents/{agentId}/threads/{id}
A thread of the agent's own mailbox. Needs boxes:read.
Parameters
agentIdpath · stringrequiredThe agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.
idpath · string (uuid)required
Responses
- 200Thread detail
Response fields
successbooleanrequireddataobjectrequireddata.threadobjectrequireddata.thread.idstring (uuid)requireddata.thread.subjectstringrequireddata.thread.participantsobject[]requireddata.thread.participants[].[].namestringrequireddata.thread.participants[].[].emailstringrequireddata.thread.participants[].[].isAgentbooleanrequireddata.thread.participants[].[].agentDidstring | nulldata.thread.participants[].[].agentTypestring | nulldata.thread.lastMessageobjectrequireddata.thread.lastMessage.idstring (uuid)requireddata.thread.lastMessage.threadIdstring (uuid)requireddata.thread.lastMessage.messageIdstringrequireddata.thread.lastMessage.fromobjectrequireddata.thread.lastMessage.from.namestringrequireddata.thread.lastMessage.from.emailstringrequireddata.thread.lastMessage.from.isAgentbooleanrequireddata.thread.lastMessage.from.agentDidstring | nulldata.thread.lastMessage.from.agentTypestring | nulldata.thread.lastMessage.toobject[]requireddata.thread.lastMessage.to[].[].namestringrequireddata.thread.lastMessage.to[].[].emailstringrequireddata.thread.lastMessage.to[].[].isAgentbooleanrequireddata.thread.lastMessage.to[].[].agentDidstring | nulldata.thread.lastMessage.to[].[].agentTypestring | nulldata.thread.lastMessage.ccobject[]requireddata.thread.lastMessage.cc[].[].namestringrequireddata.thread.lastMessage.cc[].[].emailstringrequireddata.thread.lastMessage.cc[].[].isAgentbooleanrequireddata.thread.lastMessage.cc[].[].agentDidstring | nulldata.thread.lastMessage.cc[].[].agentTypestring | nulldata.thread.lastMessage.bccobject[]requireddata.thread.lastMessage.bcc[].[].namestringrequireddata.thread.lastMessage.bcc[].[].emailstringrequireddata.thread.lastMessage.bcc[].[].isAgentbooleanrequireddata.thread.lastMessage.bcc[].[].agentDidstring | nulldata.thread.lastMessage.bcc[].[].agentTypestring | nulldata.thread.lastMessage.subjectstringrequireddata.thread.lastMessage.snippetstringrequireddata.thread.lastMessage.bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data.thread.lastMessage.bodyPlainstring | nulldata.thread.lastMessage.sentAtstring (date-time)requireddata.thread.lastMessage.receivedAtstring (date-time)requireddata.thread.lastMessage.isReadbooleanrequireddata.thread.lastMessage.isStarredbooleanrequireddata.thread.lastMessage.isDraftbooleanrequireddata.thread.lastMessage.folderstringrequireddata.thread.lastMessage.labelsstring[]requireddata.thread.lastMessage.hasAttachmentsbooleanrequireddata.thread.lastMessage.spamScorenumber | null (float)data.thread.lastMessage.priorityScorenumber | null (float)data.thread.lastMessage.snoozedUntilstring | null (date-time)data.thread.messageCountinteger (int32)requireddata.thread.isReadbooleanrequireddata.thread.isStarredbooleanrequireddata.thread.labelsstring[]requireddata.thread.hasAgentActivitybooleanrequireddata.thread.lastMessageAtstring (date-time)requireddata.thread.snippetstring | nulldata.messagesobject[]requireddata.messages[].[].idstring (uuid)requireddata.messages[].[].threadIdstring (uuid)requireddata.messages[].[].messageIdstringrequireddata.messages[].[].fromobjectrequireddata.messages[].[].from.namestringrequireddata.messages[].[].from.emailstringrequireddata.messages[].[].from.isAgentbooleanrequireddata.messages[].[].from.agentDidstring | nulldata.messages[].[].from.agentTypestring | nulldata.messages[].[].toobject[]requireddata.messages[].[].to[].[].namestringrequireddata.messages[].[].to[].[].emailstringrequireddata.messages[].[].to[].[].isAgentbooleanrequireddata.messages[].[].to[].[].agentDidstring | nulldata.messages[].[].to[].[].agentTypestring | nulldata.messages[].[].ccobject[]requireddata.messages[].[].cc[].[].namestringrequireddata.messages[].[].cc[].[].emailstringrequireddata.messages[].[].cc[].[].isAgentbooleanrequireddata.messages[].[].cc[].[].agentDidstring | nulldata.messages[].[].cc[].[].agentTypestring | nulldata.messages[].[].bccobject[]requireddata.messages[].[].bcc[].[].namestringrequireddata.messages[].[].bcc[].[].emailstringrequireddata.messages[].[].bcc[].[].isAgentbooleanrequireddata.messages[].[].bcc[].[].agentDidstring | nulldata.messages[].[].bcc[].[].agentTypestring | nulldata.messages[].[].subjectstringrequireddata.messages[].[].snippetstringrequireddata.messages[].[].bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data.messages[].[].bodyPlainstring | nulldata.messages[].[].sentAtstring (date-time)requireddata.messages[].[].receivedAtstring (date-time)requireddata.messages[].[].isReadbooleanrequireddata.messages[].[].isStarredbooleanrequireddata.messages[].[].isDraftbooleanrequireddata.messages[].[].folderstringrequireddata.messages[].[].labelsstring[]requireddata.messages[].[].hasAttachmentsbooleanrequireddata.messages[].[].spamScorenumber | null (float)data.messages[].[].priorityScorenumber | null (float)data.messages[].[].snoozedUntilstring | null (date-time)
- 401Missing or invalid authentication
- 403Missing scope
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/agents/$AGENT_ID/threads/$ID" \
-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('boxes_mail_agents_threads_get', {
agentId: '<agentId>',
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_agents_threads_get",
"arguments": {
"agentId": "<agentId>",
"id": "<id>"
}
}
}Reserve or rename the person's own One address
POST/v1/boxes/mail/agents/one/address
A One person session only (Boxes BOXES_ONE_PERSON_ADDRESS); every other caller, an org key included, gets 404 (here and at Boxes). Issues localPart on the One mail domain (one.ml) as the signed person's own One address, in a tenant of its own, one per person per environment. 201 for a first name, 200 for the same name again (unchanged) or a rename. A rename is allowed once per 24 hours; the old name keeps delivering for 30 days and can be taken back. A name is refused when it breaks the format (3 to 20 lowercase letters and digits, at most one dot or hyphen), is reserved, is held by anyone else, folds to the same form as a held or retired name, or was ever retired. Needs boxes:write.
Request body application/json
localPartstringrequiredThe name before @, for example waffle.wizard
Responses
- 200Unchanged, or renamed
Response fields
successbooleanrequireddataobjectrequireddata.addressstringrequiredThe person's own One address, for example waffle.wizard@one.ml
data.status"active" | "paused"requireddata.displayNamestringrequiredAlways One
data.scope"person"requiredThe person's own One (never a project's shared One)
data.renameAfterstring (date-time)requiredWhen the next change is allowed
data.previousobject[]requiredRenamed addresses still delivering, and when each stops
data.previous[].[].addressstringrequireddata.previous[].[].expiresAtstring (date-time)required
- 201The person's One address was reserved
Response fields
successbooleanrequireddataobjectrequireddata.addressstringrequiredThe person's own One address, for example waffle.wizard@one.ml
data.status"active" | "paused"requireddata.displayNamestringrequiredAlways One
data.scope"person"requiredThe person's own One (never a project's shared One)
data.renameAfterstring (date-time)requiredWhen the next change is allowed
data.previousobject[]requiredRenamed addresses still delivering, and when each stops
data.previous[].[].addressstringrequireddata.previous[].[].expiresAtstring (date-time)required
- 400The body is not {localPart}
- 401Missing or invalid authentication
- 403Missing boxes:write, or the person's One address is paused (ONE_ADDRESS_PAUSED)
- 404Not a One person session, or person addresses are off
- 409The name is not available (NAME_TAKEN)
- 422The name breaks the format (NAME_FORMAT) or is reserved (NAME_RESERVED)
- 429The address changed in the last 24 hours (RENAME_TOO_SOON), or too many requests
- 503Not available right now; no change was made
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agents/one/address" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"localPart": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_agents_one_address_reserve', {
body: {
localPart: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agents_one_address_reserve",
"arguments": {
"body": {
"localPart": "string"
}
}
}
}
}Whether a name can be the person's own One address
POST/v1/boxes/mail/agents/one/address/availability
A One person session only; every other caller gets 404 (here and at Boxes). Answers yes or no, and why for a format or reserved name; never who holds a name. POST, so the name stays out of URLs and logs; needs boxes:write (Boxes reads every POST as a write). At most 200 probes a day per person (429).
Request body application/json
localPartstringrequiredThe name before @, for example waffle.wizard
Responses
- 200The answer
Response fields
successbooleanrequireddataobjectrequireddata.localPartstringrequireddata.availablebooleanrequireddata.reason"format" | "reserved" | "taken"
- 400The body is not {localPart}
- 401Missing or invalid authentication
- 404Not a One person session, or person addresses are off
- 429Too many requests
- 503Not available right now
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/agents/one/address/availability" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"localPart": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_agents_one_address_availability', {
body: {
localPart: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_agents_one_address_availability",
"arguments": {
"body": {
"localPart": "string"
}
}
}
}
}Upload a pending attachment for later sending
POST/v1/boxes/mail/attachments
Gateway scope boxes:mail:send. Multipart form; only the part named file is read and the first such part is stored. The returned id goes into attachmentIds on send.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Request body multipart/form-data
filestring (binary)requiredAttachment bytes. The part filename is required and the part must not be empty. Part content type defaults to application/octet-stream.
Responses
- 201Pending attachment stored
Response fields
successbooleanrequireddataobjectrequiredPending upload, not yet attached to a message. Pass id in attachmentIds when sending.
data.idstring (uuid)requireddata.messageIdnullrequireddata.filenamestringrequireddata.contentTypestringrequireddata.sizeBytesinteger (int32)requireddata.createdAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/attachments" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_attachments_upload', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_attachments_upload",
"arguments": {
"body": "<bytes>"
}
}
}
}Get attachment metadata
GET/v1/boxes/mail/attachments/{id}
Parameters
idpath · string (uuid)required
Responses
- 200Attachment metadata
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.messageIdstring (uuid)requireddata.filenamestringrequireddata.contentTypestringrequireddata.sizeBytesinteger (int32)requireddata.downloadUrlstringrequiredBackend path /v1/mail/attachments/{id}/content for stored attachment bodies, otherwise an internal storage path
data.createdAtstring (date-time)required
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/attachments/$ID" \
-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('boxes_mail_attachments_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_attachments_get",
"arguments": {
"id": "<id>"
}
}
}
}Delete an attachment record
DELETE/v1/boxes/mail/attachments/{id}
Removes the database record only; the object-storage copy is not deleted (code carries a TODO).
Parameters
idpath · string (uuid)required
Responses
- 204Deleted
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/attachments/$ID" \
-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('boxes_mail_attachments_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_attachments_delete",
"arguments": {
"id": "<id>"
}
}
}
}Download attachment bytes
GET/v1/boxes/mail/attachments/{id}/content
Requires scope boxes:mail:read. Serves stored attachment bodies (resend-ingested) for owned or actively delegated mailboxes. Always sent as application/octet-stream with Content-Disposition attachment.
Parameters
idpath · string (uuid)required
Responses
- 200Attachment bytes
Response fields
Type:
string (binary) - 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/attachments/$ID/content" \
-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('boxes_mail_attachments_content_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_attachments_content_get",
"arguments": {
"id": "<id>"
}
}
}
}Apply one operation to many messages
POST/v1/boxes/mail/batch
1 to 100 message ids. Only messages in the caller mailbox are affected; ids that do not match are skipped and not counted.
Request body application/json
messageIdsstring (uuid)[]requiredoperation"markRead" | "markUnread" | "star" | "unstar" | "moveToFolder" | "moveToTrash" | "delete"requireddelete only removes messages already in the trash folder
folderstring | nullRequired when operation is moveToFolder
Responses
- 200Operation applied
Response fields
successbooleanrequireddataobjectrequireddata.affectedinteger (int64)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/batch" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"messageIds": [
"00000000-0000-4000-8000-000000000000"
],
"operation": "markRead"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_batch', {
body: {
messageIds: [
'00000000-0000-4000-8000-000000000000',
],
operation: 'markRead',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_batch",
"arguments": {
"body": {
"messageIds": [
"00000000-0000-4000-8000-000000000000"
],
"operation": "markRead"
}
}
}
}
}Revoke a mailbox delegation
DELETE/v1/boxes/mail/delegations/{delegation_id}
Only the owner of the delegated mailbox may revoke.
Parameters
delegation_idpath · string (uuid)required
Responses
- 200Revoked
Response fields
successbooleanrequired
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/delegations/$DELEGATION_ID" \
-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('boxes_mail_delegations_revoke', {
delegation_id: '<delegation_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_delegations_revoke",
"arguments": {
"delegation_id": "<delegation_id>"
}
}
}
}List custom mail domains
GET/v1/boxes/mail/domains
Requires the boxes:admin key scope.
Responses
- 200Domains
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].namestringrequireddata[].[].domainstringrequireddata[].[].statusstringrequiredverified, pending or error
data[].[].verificationStatusstringrequireddata[].[].isPrimarybooleanrequireddata[].[].primarybooleanrequireddata[].[].recordsobject[]requireddata[].[].records[].[].kindstringPresent in the built-in verifier shape
data[].[].records[].[].hoststringPresent in the built-in verifier shape
data[].[].records[].[].recordTypestringPresent in the resend provider shape
data[].[].records[].[].namestringPresent in the resend provider shape
data[].[].records[].[].valuestring | nullrequireddata[].[].records[].[].priorityinteger | nulldata[].[].records[].[].statusstringrequiredpass, fail or pending
data[].[].records[].[].notestring | nulldata[].[].records[].[].observedstring[]data[].[].expectedRecordsobject[]Built-in verifier only: DNS records to publish
data[].[].expectedRecords[].[].recordTypestringrequireddata[].[].expectedRecords[].[].namestringrequireddata[].[].expectedRecords[].[].valuestringrequireddata[].[].expectedRecords[].[].priorityinteger (int32)data[].[].aliasesany[]data[].[].mailboxCountintegerdata[].[].createdAtstring (date-time)data[].[].updatedAtstring (date-time)data[].[].verifiedAtstring | null (date-time)data[].[].lastCheckedAtstring | null (date-time)data[].[].sendingReadybooleanResend provider only
data[].[].receivingReadybooleanResend provider only
data[].[].providerRecordsanyResend provider only: raw provider records
data[].[].checkedAtstring | null (date-time)Resend provider only
data[].[].providerstringResend provider only
data[].[].existingMxWarningstringResend provider only
- 401Missing or invalid authentication
- 403Forbidden
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/domains" \
-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('boxes_mail_domains_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_domains_list",
"arguments": {}
}
}Register a custom mail domain
POST/v1/boxes/mail/domains
Requires the boxes:admin key scope. Returns the DNS records to publish before calling verify.
Request body application/json
domainstringrequiredLower-cased hostname without protocol or address; at least two labels max length 253
isPrimarybooleanAlso accepted as makePrimary default
false
Responses
- 201Domain registered
Response fields
successbooleanrequireddataobjectrequiredDomain with DNS verification state. The built-in verifier and the resend provider return overlapping but different field sets; provider-only fields are marked.
data.idstring (uuid)requireddata.namestringrequireddata.domainstringrequireddata.statusstringrequiredverified, pending or error
data.verificationStatusstringrequireddata.isPrimarybooleanrequireddata.primarybooleanrequireddata.recordsobject[]requireddata.records[].[].kindstringPresent in the built-in verifier shape
data.records[].[].hoststringPresent in the built-in verifier shape
data.records[].[].recordTypestringPresent in the resend provider shape
data.records[].[].namestringPresent in the resend provider shape
data.records[].[].valuestring | nullrequireddata.records[].[].priorityinteger | nulldata.records[].[].statusstringrequiredpass, fail or pending
data.records[].[].notestring | nulldata.records[].[].observedstring[]data.expectedRecordsobject[]Built-in verifier only: DNS records to publish
data.expectedRecords[].[].recordTypestringrequireddata.expectedRecords[].[].namestringrequireddata.expectedRecords[].[].valuestringrequireddata.expectedRecords[].[].priorityinteger (int32)data.aliasesany[]data.mailboxCountintegerdata.createdAtstring (date-time)data.updatedAtstring (date-time)data.verifiedAtstring | null (date-time)data.lastCheckedAtstring | null (date-time)data.sendingReadybooleanResend provider only
data.receivingReadybooleanResend provider only
data.providerRecordsanyResend provider only: raw provider records
data.checkedAtstring | null (date-time)Resend provider only
data.providerstringResend provider only
data.existingMxWarningstringResend provider only
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 409Conflict
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/domains" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_domains_create', {
body: {
domain: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_domains_create",
"arguments": {
"body": {
"domain": "string"
}
}
}
}
}Reserve a mail address on a specific domain
POST/v1/boxes/mail/domains/{domain_id}/addresses
Requires the boxes:admin key scope. Same behavior as POST /v1/mail/addresses but the domain comes from the path; any domainId in the body is ignored.
Parameters
domain_idpath · string (uuid)required
Request body application/json
domainIdstring | null (uuid)Required on POST /v1/mail/addresses (422 when missing); ignored on the domain-scoped route, where the path domain_id is used
localPartstringrequiredLower-cased; letters, digits and . _ % + -; must start and end with a letter or digit max length 64
displayNamestring | nullisPrimarybooleanAlso accepted as makePrimary default
false
Responses
- 201Address reserved
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.localPartstringrequireddata.domainstringrequireddata.domainIdstring | null (uuid)data.domainKind"custom" | "personal"requireddata.addressstringrequireddata.emailAddressstringrequireddata.displayNamestring | nulldata.isPrimarybooleanrequireddata.statusstringrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 409Conflict
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/domains/$DOMAIN_ID/addresses" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"localPart": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_domains_addresses_create', {
domain_id: '<domain_id>',
body: {
localPart: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_domains_addresses_create",
"arguments": {
"domain_id": "<domain_id>",
"body": {
"localPart": "string"
}
}
}
}
}Check DNS and verify a mail domain
POST/v1/boxes/mail/domains/{domain_id}/verify
Requires the boxes:admin key scope. A domain becomes verified only when every expected record passes. The meta block is present only with the built-in verifier, not with the resend provider.
Parameters
domain_idpath · string (uuid)required
Responses
- 200Domain with fresh check results
Response fields
successbooleanrequireddataobjectrequiredDomain with DNS verification state. The built-in verifier and the resend provider return overlapping but different field sets; provider-only fields are marked.
data.idstring (uuid)requireddata.namestringrequireddata.domainstringrequireddata.statusstringrequiredverified, pending or error
data.verificationStatusstringrequireddata.isPrimarybooleanrequireddata.primarybooleanrequireddata.recordsobject[]requireddata.records[].[].kindstringPresent in the built-in verifier shape
data.records[].[].hoststringPresent in the built-in verifier shape
data.records[].[].recordTypestringPresent in the resend provider shape
data.records[].[].namestringPresent in the resend provider shape
data.records[].[].valuestring | nullrequireddata.records[].[].priorityinteger | nulldata.records[].[].statusstringrequiredpass, fail or pending
data.records[].[].notestring | nulldata.records[].[].observedstring[]data.expectedRecordsobject[]Built-in verifier only: DNS records to publish
data.expectedRecords[].[].recordTypestringrequireddata.expectedRecords[].[].namestringrequireddata.expectedRecords[].[].valuestringrequireddata.expectedRecords[].[].priorityinteger (int32)data.aliasesany[]data.mailboxCountintegerdata.createdAtstring (date-time)data.updatedAtstring (date-time)data.verifiedAtstring | null (date-time)data.lastCheckedAtstring | null (date-time)data.sendingReadybooleanResend provider only
data.receivingReadybooleanResend provider only
data.providerRecordsanyResend provider only: raw provider records
data.checkedAtstring | null (date-time)Resend provider only
data.providerstringResend provider only
data.existingMxWarningstringResend provider only
metaobjectmeta.dnsCheckMode"live_dns" | "server_stub"meta.verifiedOnlyWhenAllRecordsPassboolean
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/domains/$DOMAIN_ID/verify" \
-H "Authorization: Bearer $GENESIS_API_KEY"import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_domains_verify', {
domain_id: '<domain_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_domains_verify",
"arguments": {
"domain_id": "<domain_id>"
}
}
}
}List system and custom folders
GET/v1/boxes/mail/folders
Responses
- 200Folders
Response fields
successbooleanrequireddataobjectrequiredsystem lists the built-in folder names: inbox, sent, drafts, spam, trash, starred, snoozed, scheduled.
data.systemstring[]requireddata.customobject[]requireddata.custom[].[].idstring (uuid)requireddata.custom[].[].mailboxIdstring (uuid)requireddata.custom[].[].namestringrequireddata.custom[].[].parentIdstring | null (uuid)data.custom[].[].sortOrderinteger (int32)requireddata.custom[].[].createdAtstring (date-time)requireddata.custom[].[].updatedAtstring (date-time)required
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/folders" \
-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('boxes_mail_folders_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_folders_list",
"arguments": {}
}
}
}Create a custom folder
POST/v1/boxes/mail/folders
Request body application/json
namestringrequiredmin length 1 · max length 255
parentIdstring | null (uuid)
Responses
- 201Folder created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.namestringrequireddata.parentIdstring | null (uuid)data.sortOrderinteger (int32)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 409Conflict
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/folders" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_folders_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_folders_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Query the mail governance audit log
GET/v1/boxes/mail/governance/audit
Tenant-wide. The pagination block is returned under the key pagination, not meta.
Parameters
actionquery · "rate_limit" | "budget_check" | "policy_check" | "approval_required"Unrecognized values are ignored (no filter); memory_write entries cannot be filtered
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
Responses
- 200Audit entries page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].userIdstring (uuid)requireddata[].[].action"rate_limit" | "budget_check" | "policy_check" | "approval_required" | "memory_write"requireddata[].[].resourceTypestringrequireddata[].[].resourceIdstring | null (uuid)data[].[].decision"allowed" | "denied" | "alert"requireddata[].[].reasonstringrequireddata[].[].metadataanyFree-form JSON object or null
data[].[].createdAtstring (date-time)requiredpaginationobjectpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/governance/audit" \
-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('boxes_mail_governance_audit_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_governance_audit_list",
"arguments": {}
}
}
}List messages in a folder
GET/v1/boxes/mail/inbox
Operates on the caller primary mailbox, newest first.
Parameters
folderquery · stringFolder name; defaults to inbox
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
unreadOnlyquery · booleanOnly unread messages
starredquery · booleanOnly starred messages
Responses
- 200Messages page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].mailboxIdstring (uuid)requireddata[].[].threadIdstring | null (uuid)data[].[].messageIdstringrequiredRFC 5322 Message-ID
data[].[].inReplyTostring | nulldata[].[].referencesstring[]requireddata[].[].fromAddressstringrequireddata[].[].fromNamestring | nulldata[].[].toAddressesobject[]requireddata[].[].toAddresses[].[].addressstringrequireddata[].[].toAddresses[].[].namestring | nulldata[].[].ccAddressesobject[]requireddata[].[].ccAddresses[].[].addressstringrequireddata[].[].ccAddresses[].[].namestring | nulldata[].[].bccAddressesobject[]requireddata[].[].bccAddresses[].[].addressstringrequireddata[].[].bccAddresses[].[].namestring | nulldata[].[].subjectstringrequireddata[].[].bodyPlainstring | nulldata[].[].bodyHtmlstring | nulldata[].[].snippetstring | nulldata[].[].folderstringrequireddata[].[].isReadbooleanrequireddata[].[].isStarredbooleanrequireddata[].[].isDraftbooleanrequireddata[].[].spamScorenumber | null (float)data[].[].priorityScorenumber | null (float)data[].[].hasAttachmentsbooleanrequireddata[].[].rawSizeinteger | null (int32)data[].[].receivedAtstring (date-time)requireddata[].[].sentAtstring | null (date-time)data[].[].snoozedUntilstring | null (date-time)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/inbox" \
-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('boxes_mail_inbox_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_inbox_list",
"arguments": {}
}
}List system and custom labels with counts
GET/v1/boxes/mail/labels
System labels come first (inbox, sent, drafts, archive, trash, starred), then custom labels.
Responses
- 200Labels
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstringrequiredSystem label key (inbox, sent, drafts, archive, trash, starred) or a custom label UUID
data[].[].namestringrequireddata[].[].colorstringrequireddata[].[].countinteger (int64)requireddata[].[].iconstringrequired
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/labels" \
-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('boxes_mail_labels_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_labels_list",
"arguments": {}
}
}Create a custom label
POST/v1/boxes/mail/labels
Request body application/json
namestringrequiredmin length 1 · max length 100
colorstring | null
Responses
- 201Label created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.namestringrequireddata.colorstring | nulldata.createdAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 409Conflict
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/labels" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_labels_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_labels_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Delete a custom label
DELETE/v1/boxes/mail/labels/{id}
Parameters
idpath · string (uuid)required
Responses
- 204Deleted
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/labels/$ID" \
-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('boxes_mail_labels_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_labels_delete",
"arguments": {
"id": "<id>"
}
}
}
}List sender mailboxes owned by the caller
GET/v1/boxes/mail/mailboxes
Creates the primary mailbox if none exists.
Responses
- 200Mailboxes
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].ownerIdstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].emailAddressstringrequireddata[].[].displayNamestring | nulldata[].[].signaturestring | nulldata[].[].isPrimarybooleanrequireddata[].[].domainNamestringrequireddata[].[].domainKind"personal" | "custom"requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)required
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/mailboxes" \
-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('boxes_mail_mailboxes_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_mailboxes_list",
"arguments": {}
}
}List delegations on a mailbox
GET/v1/boxes/mail/mailboxes/{mailbox_id}/delegations
Owner of the mailbox only. Returns a bare array (not wrapped in success/data).
Parameters
mailbox_idpath · string (uuid)required
Responses
- 200Delegations
Response fields
idstring (uuid)requiredmailboxIdstring (uuid)requiredgranteeIdstring (uuid)requiredgranteeKind"agent" | "user"requiredrole"owner" | "delegate" | "send_as" | "read_only"requiredgrantedBystring (uuid)requiredisActivebooleanrequiredexpiresAtstring | null (date-time)createdAtstring (date-time)requiredupdatedAtstring (date-time)required
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/mailboxes/$MAILBOX_ID/delegations" \
-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('boxes_mail_mailboxes_delegations_list', {
mailbox_id: '<mailbox_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_mailboxes_delegations_list",
"arguments": {
"mailbox_id": "<mailbox_id>"
}
}
}
}Submit an event to the mail memory pipeline
POST/v1/boxes/mail/memory/events
Requires scope boxes:memory:write. The event mailbox must belong to the caller tenant. Writes a governance audit entry.
Request body application/json
Type: object | object | object | object | object
Responses
- 200Accepted
Response fields
okbooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/memory/events" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"EmailIngested": {
"tenant_id": "00000000-0000-4000-8000-000000000000",
"message_id": "00000000-0000-4000-8000-000000000000",
"mailbox_id": "00000000-0000-4000-8000-000000000000",
"from_address": "string",
"subject": "string",
"body_preview": "string"
}
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_memory_events_submit', {
body: {
EmailIngested: {
tenant_id: '00000000-0000-4000-8000-000000000000',
message_id: '00000000-0000-4000-8000-000000000000',
mailbox_id: '00000000-0000-4000-8000-000000000000',
from_address: 'string',
subject: 'string',
body_preview: 'string',
},
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_memory_events_submit",
"arguments": {
"body": {
"EmailIngested": {
"tenant_id": "00000000-0000-4000-8000-000000000000",
"message_id": "00000000-0000-4000-8000-000000000000",
"mailbox_id": "00000000-0000-4000-8000-000000000000",
"from_address": "string",
"subject": "string",
"body_preview": "string"
}
}
}
}
}
}Recall memories through the cognitive brain interface
GET/v1/boxes/mail/memory/recall
Requires scope boxes:memory:read. Returns 422 when the Akasha memory backend is not configured.
Parameters
qquery · stringrequiredQuery text
limitquery · integerMaximum results
Responses
- 200Recall result
Response fields
A JSON object.
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/memory/recall?q=$Q" \
-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('boxes_mail_memory_recall', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_memory_recall",
"arguments": {
"q": "<q>"
}
}
}Search mail memory (hybrid episodic and vector)
GET/v1/boxes/mail/memory/search
Requires scope boxes:memory:read. Returns 422 when the Akasha memory backend is not configured.
Parameters
qquery · stringrequiredQuery text
limitquery · integerMaximum results
Responses
- 200Search result
Response fields
A JSON object.
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/memory/search?q=$Q" \
-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('boxes_mail_memory_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_memory_search",
"arguments": {
"q": "<q>"
}
}
}Store a custom memory entry
POST/v1/boxes/mail/memory/store
Requires scope boxes:memory:write. Returns 422 when the Akasha memory backend is not configured. Writes a governance audit entry.
Request body application/json
contentstringrequiredtagsarray | nullmemory_typestring | null
Responses
- 200Stored
Response fields
A JSON object.
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/memory/store" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mail_memory_store', {
body: {
content: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_memory_store",
"arguments": {
"body": {
"content": "string"
}
}
}
}Get a message with its labels
GET/v1/boxes/mail/messages/{id}
Parameters
idpath · string (uuid)required
Responses
- 200Message and labels
Response fields
successbooleanrequireddataobjectrequireddata.messageobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.message.idstring (uuid)requireddata.message.mailboxIdstring (uuid)requireddata.message.threadIdstring | null (uuid)data.message.messageIdstringrequiredRFC 5322 Message-ID
data.message.inReplyTostring | nulldata.message.referencesstring[]requireddata.message.fromAddressstringrequireddata.message.fromNamestring | nulldata.message.toAddressesobject[]requireddata.message.toAddresses[].[].addressstringrequireddata.message.toAddresses[].[].namestring | nulldata.message.ccAddressesobject[]requireddata.message.ccAddresses[].[].addressstringrequireddata.message.ccAddresses[].[].namestring | nulldata.message.bccAddressesobject[]requireddata.message.bccAddresses[].[].addressstringrequireddata.message.bccAddresses[].[].namestring | nulldata.message.subjectstringrequireddata.message.bodyPlainstring | nulldata.message.bodyHtmlstring | nulldata.message.snippetstring | nulldata.message.folderstringrequireddata.message.isReadbooleanrequireddata.message.isStarredbooleanrequireddata.message.isDraftbooleanrequireddata.message.spamScorenumber | null (float)data.message.priorityScorenumber | null (float)data.message.hasAttachmentsbooleanrequireddata.message.rawSizeinteger | null (int32)data.message.receivedAtstring (date-time)requireddata.message.sentAtstring | null (date-time)data.message.snoozedUntilstring | null (date-time)data.message.createdAtstring (date-time)requireddata.message.updatedAtstring (date-time)requireddata.labelsobject[]requireddata.labels[].[].idstring (uuid)requireddata.labels[].[].mailboxIdstring (uuid)requireddata.labels[].[].namestringrequireddata.labels[].[].colorstring | nulldata.labels[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/messages/$ID" \
-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('boxes_mail_messages_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_messages_get",
"arguments": {
"id": "<id>"
}
}
}Move a message to trash
DELETE/v1/boxes/mail/messages/{id}
Soft delete: sets the folder to trash. Returns 204 even when the id does not match a message in the caller mailbox. Use the batch endpoint with operation delete to remove trashed messages permanently.
Parameters
idpath · string (uuid)required
Responses
- 204Moved to trash
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mail/messages/$ID" \
-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('boxes_mail_messages_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_messages_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update message flags, folder or snooze
PATCH/v1/boxes/mail/messages/{id}
Partial update. snoozedUntil must be an RFC 3339 timestamp; the handler cannot clear a snooze because JSON null is read the same as an omitted field.
Parameters
idpath · string (uuid)required
Request body application/json
isReadbooleanisStarredbooleanfolderstringsnoozedUntilstring | null (date-time)
Responses
- 200Updated message
Response fields
successbooleanrequireddataobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.threadIdstring | null (uuid)data.messageIdstringrequiredRFC 5322 Message-ID
data.inReplyTostring | nulldata.referencesstring[]requireddata.fromAddressstringrequireddata.fromNamestring | nulldata.toAddressesobject[]requireddata.toAddresses[].[].addressstringrequireddata.toAddresses[].[].namestring | nulldata.ccAddressesobject[]requireddata.ccAddresses[].[].addressstringrequireddata.ccAddresses[].[].namestring | nulldata.bccAddressesobject[]requireddata.bccAddresses[].[].addressstringrequireddata.bccAddresses[].[].namestring | nulldata.subjectstringrequireddata.bodyPlainstring | nulldata.bodyHtmlstring | nulldata.snippetstring | nulldata.folderstringrequireddata.isReadbooleanrequireddata.isStarredbooleanrequireddata.isDraftbooleanrequireddata.spamScorenumber | null (float)data.priorityScorenumber | null (float)data.hasAttachmentsbooleanrequireddata.rawSizeinteger | null (int32)data.receivedAtstring (date-time)requireddata.sentAtstring | null (date-time)data.snoozedUntilstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/mail/messages/$ID" \
-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('boxes_mail_messages_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_messages_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Get delivery status for a sent message
GET/v1/boxes/mail/messages/{id}/delivery
Parameters
idpath · string (uuid)required
Responses
- 200Delivery status and events
Response fields
successbooleanrequireddataobjectrequireddata.messageIdstring (uuid)requireddata.statusstringrequiredAggregate delivery status across recipients
data.timestampstring (date-time)requireddata.errorMessagestring | nulldata.eventsobject[]requireddata.events[].[].idstring (uuid)requireddata.events[].[].messageIdstring (uuid)requireddata.events[].[].mailboxIdstring (uuid)requireddata.events[].[].recipientAddressstringrequireddata.events[].[].statusstringrequireddata.events[].[].providerstringrequireddata.events[].[].mtaQueueIdstring | nulldata.events[].[].smtpResponsestring | nulldata.events[].[].attemptsinteger (int32)requireddata.events[].[].lastErrorstring | nulldata.events[].[].occurredAtstring (date-time)requireddata.events[].[].createdAtstring (date-time)requireddata.events[].[].updatedAtstring (date-time)required
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/messages/$ID/delivery" \
-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('boxes_mail_messages_delivery_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_messages_delivery_get",
"arguments": {
"id": "<id>"
}
}
}
}Get the extraction for a message
GET/v1/boxes/mail/messages/{message_id}/extraction
Returns the bare extraction object (not wrapped in success/data), or JSON null when no extraction exists yet.
Parameters
message_idpath · string (uuid)required
Responses
- 200Extraction or null
Response fields
Type:
object | null - 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/messages/$MESSAGE_ID/extraction" \
-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('boxes_mail_extraction_message_get', {
message_id: '<message_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_extraction_message_get",
"arguments": {
"message_id": "<message_id>"
}
}
}
}List attachments of a message
GET/v1/boxes/mail/messages/{messageId}/attachments
Parameters
messageIdpath · string (uuid)required
Responses
- 200Attachments
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].messageIdstring (uuid)requireddata[].[].filenamestringrequireddata[].[].contentTypestringrequireddata[].[].sizeBytesinteger (int32)requireddata[].[].storageKeystringrequireddata[].[].contentIdstring | nulldata[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/messages/$MESSAGE_ID/attachments" \
-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('boxes_mail_messages_attachments_list', {
messageId: '<messageId>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_messages_attachments_list",
"arguments": {
"messageId": "<messageId>"
}
}
}
}List mailboxes the caller can act as through delegation
GET/v1/boxes/mail/personas
Returns a bare array (not wrapped in success/data) of delegations where the caller is the grantee.
Responses
- 200Delegations
Response fields
idstring (uuid)requiredmailboxIdstring (uuid)requiredgranteeIdstring (uuid)requiredgranteeKind"agent" | "user"requiredrole"owner" | "delegate" | "send_as" | "read_only"requiredgrantedBystring (uuid)requiredisActivebooleanrequiredexpiresAtstring | null (date-time)createdAtstring (date-time)requiredupdatedAtstring (date-time)required
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/personas" \
-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('boxes_mail_personas_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_personas_list",
"arguments": {}
}
}
}Search messages
GET/v1/boxes/mail/search
Parameters
qquery · stringrequiredSearch text, 1 to 500 characters
folderquery · stringRestrict to one folder
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
Responses
- 200Matching messages page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].mailboxIdstring (uuid)requireddata[].[].threadIdstring | null (uuid)data[].[].messageIdstringrequiredRFC 5322 Message-ID
data[].[].inReplyTostring | nulldata[].[].referencesstring[]requireddata[].[].fromAddressstringrequireddata[].[].fromNamestring | nulldata[].[].toAddressesobject[]requireddata[].[].toAddresses[].[].addressstringrequireddata[].[].toAddresses[].[].namestring | nulldata[].[].ccAddressesobject[]requireddata[].[].ccAddresses[].[].addressstringrequireddata[].[].ccAddresses[].[].namestring | nulldata[].[].bccAddressesobject[]requireddata[].[].bccAddresses[].[].addressstringrequireddata[].[].bccAddresses[].[].namestring | nulldata[].[].subjectstringrequireddata[].[].bodyPlainstring | nulldata[].[].bodyHtmlstring | nulldata[].[].snippetstring | nulldata[].[].folderstringrequireddata[].[].isReadbooleanrequireddata[].[].isStarredbooleanrequireddata[].[].isDraftbooleanrequireddata[].[].spamScorenumber | null (float)data[].[].priorityScorenumber | null (float)data[].[].hasAttachmentsbooleanrequireddata[].[].rawSizeinteger | null (int32)data[].[].receivedAtstring (date-time)requireddata[].[].sentAtstring | null (date-time)data[].[].snoozedUntilstring | null (date-time)data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 404Not found
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/search?q=$Q" \
-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('boxes_mail_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_search",
"arguments": {
"q": "<q>"
}
}
}Send an email or save a draft
POST/v1/boxes/mail/send
Requires scope boxes:mail:send. At least one of bodyPlain or bodyHtml is required. isDraft true stores the message in drafts without sending or governance checks. Governance rate limit, budget and policy checks apply to non-draft sends. When the resend transport is active, Idempotency-Key must be a UUID if given; a replay of the same key returns 200 with the original message instead of 201. Sending from fromMailboxId requires ownership or an active delegation with role owner, delegate or send_as. Rate limit headers X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset are returned on a fresh non-draft send. Idempotency-Key must be a UUID; a missing key is generated by the service and a malformed one is rejected with 422. Under the Resend transport a replay of the same key returns 200 with the original message, and every response carries the key in the Idempotency-Key response header.
Parameters
Idempotency-Keyheader · string (uuid)Must be a UUID. Optional: the service generates one when absent and rejects a malformed value with 422. Only mail send, agent batch send and agent mailbox send read it.
Request body application/json
toobject[]requiredto[].[].addressstringrequiredto[].[].namestring | nullfromMailboxIdstring | null (uuid)ccobject[]cc[].[].addressstringrequiredcc[].[].namestring | nullbccobject[]bcc[].[].addressstringrequiredbcc[].[].namestring | nullsubjectstringrequiredmax length 998
bodyPlainstring | nullbodyHtmlstring | nullinReplyTostring | nullisDraftbooleandefault
falsescheduledAtstring | nullAccepted by the request struct but not read by the send handler
attachmentIdsstring (uuid)[]
Responses
- 200Idempotent replay of an earlier send
Response fields
successbooleanrequireddataobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.threadIdstring | null (uuid)data.messageIdstringrequiredRFC 5322 Message-ID
data.inReplyTostring | nulldata.referencesstring[]requireddata.fromAddressstringrequireddata.fromNamestring | nulldata.toAddressesobject[]requireddata.toAddresses[].[].addressstringrequireddata.toAddresses[].[].namestring | nulldata.ccAddressesobject[]requireddata.ccAddresses[].[].addressstringrequireddata.ccAddresses[].[].namestring | nulldata.bccAddressesobject[]requireddata.bccAddresses[].[].addressstringrequireddata.bccAddresses[].[].namestring | nulldata.subjectstringrequireddata.bodyPlainstring | nulldata.bodyHtmlstring | nulldata.snippetstring | nulldata.folderstringrequireddata.isReadbooleanrequireddata.isStarredbooleanrequireddata.isDraftbooleanrequireddata.spamScorenumber | null (float)data.priorityScorenumber | null (float)data.hasAttachmentsbooleanrequireddata.rawSizeinteger | null (int32)data.receivedAtstring (date-time)requireddata.sentAtstring | null (date-time)data.snoozedUntilstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 201Message created
Response fields
successbooleanrequireddataobjectrequiredStored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.
data.idstring (uuid)requireddata.mailboxIdstring (uuid)requireddata.threadIdstring | null (uuid)data.messageIdstringrequiredRFC 5322 Message-ID
data.inReplyTostring | nulldata.referencesstring[]requireddata.fromAddressstringrequireddata.fromNamestring | nulldata.toAddressesobject[]requireddata.toAddresses[].[].addressstringrequireddata.toAddresses[].[].namestring | nulldata.ccAddressesobject[]requireddata.ccAddresses[].[].addressstringrequireddata.ccAddresses[].[].namestring | nulldata.bccAddressesobject[]requireddata.bccAddresses[].[].addressstringrequireddata.bccAddresses[].[].namestring | nulldata.subjectstringrequireddata.bodyPlainstring | nulldata.bodyHtmlstring | nulldata.snippetstring | nulldata.folderstringrequireddata.isReadbooleanrequireddata.isStarredbooleanrequireddata.isDraftbooleanrequireddata.spamScorenumber | null (float)data.priorityScorenumber | null (float)data.hasAttachmentsbooleanrequireddata.rawSizeinteger | null (int32)data.receivedAtstring (date-time)requireddata.sentAtstring | null (date-time)data.snoozedUntilstring | null (date-time)data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)required
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 422Validation error
- 429Rate limited
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mail/send" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": [],
"subject": "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('boxes_mail_send', {
body: {
to: [],
subject: 'string',
},
}, {
headers: { 'Idempotency-Key': idempotencyKey }, // one key per change, reused on every retry
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_send",
"arguments": {
"body": {
"to": [],
"subject": "string"
},
"idempotency_key": "<a stable key per change>"
}
}
}Stream new-message events over Server-Sent Events
GET/v1/boxes/mail/stream
Long-lived text/event-stream. Sends a connected event first, then polls the mailbox every 5 seconds from cursor 0 and emits one message:new event per message (up to 50 per poll) plus keep-alives. Each event data field is JSON with eventId, cursor, type and snake_case event fields (message_id, mailbox_id, thread_id, from_address, subject, snippet, received_at). The connected event data holds mailboxId and connectedAt. The SSE event names are connected, message:new, message:updated, message:deleted, thread:updated, label:applied, label:removed and ping, but the type field inside each event data JSON uses snake_case values: connected, message_new, message_updated, message_deleted, thread_updated, label_applied, label_removed and ping.
Responses
- 200Event stream
Response fields
Type:
string - 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/stream" \
-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('boxes_mail_stream_sse'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_stream_sse",
"arguments": {}
}
}
}List built-in email templates
GET/v1/boxes/mail/templates
Responses
- 200Templates
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].namestringrequireddata[].[].descriptionstringrequireddata[].[].subjectstringrequireddata[].[].bodyHtmlstringrequireddata[].[].bodyPlainstringrequireddata[].[].categorystringrequireddata[].[].variablesstring[]requireddata[].[].createdAtstring (date-time)required
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/templates" \
-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('boxes_mail_templates_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_templates_list",
"arguments": {}
}
}
}List conversation threads
GET/v1/boxes/mail/threads
Newest activity first. Returns an empty page when the caller has no mailbox.
Parameters
pagequery · integer (int64)limitquery · integer (int64)Values outside 1-100 are clamped
Responses
- 200Threads page
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].subjectstringrequireddata[].[].participantsobject[]requireddata[].[].participants[].[].namestringrequireddata[].[].participants[].[].emailstringrequireddata[].[].participants[].[].isAgentbooleanrequireddata[].[].participants[].[].agentDidstring | nulldata[].[].participants[].[].agentTypestring | nulldata[].[].lastMessageobjectrequireddata[].[].lastMessage.idstring (uuid)requireddata[].[].lastMessage.threadIdstring (uuid)requireddata[].[].lastMessage.messageIdstringrequireddata[].[].lastMessage.fromobjectrequireddata[].[].lastMessage.from.namestringrequireddata[].[].lastMessage.from.emailstringrequireddata[].[].lastMessage.from.isAgentbooleanrequireddata[].[].lastMessage.from.agentDidstring | nulldata[].[].lastMessage.from.agentTypestring | nulldata[].[].lastMessage.toobject[]requireddata[].[].lastMessage.to[].[].namestringrequireddata[].[].lastMessage.to[].[].emailstringrequireddata[].[].lastMessage.to[].[].isAgentbooleanrequireddata[].[].lastMessage.to[].[].agentDidstring | nulldata[].[].lastMessage.to[].[].agentTypestring | nulldata[].[].lastMessage.ccobject[]requireddata[].[].lastMessage.cc[].[].namestringrequireddata[].[].lastMessage.cc[].[].emailstringrequireddata[].[].lastMessage.cc[].[].isAgentbooleanrequireddata[].[].lastMessage.cc[].[].agentDidstring | nulldata[].[].lastMessage.cc[].[].agentTypestring | nulldata[].[].lastMessage.bccobject[]requireddata[].[].lastMessage.bcc[].[].namestringrequireddata[].[].lastMessage.bcc[].[].emailstringrequireddata[].[].lastMessage.bcc[].[].isAgentbooleanrequireddata[].[].lastMessage.bcc[].[].agentDidstring | nulldata[].[].lastMessage.bcc[].[].agentTypestring | nulldata[].[].lastMessage.subjectstringrequireddata[].[].lastMessage.snippetstringrequireddata[].[].lastMessage.bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data[].[].lastMessage.bodyPlainstring | nulldata[].[].lastMessage.sentAtstring (date-time)requireddata[].[].lastMessage.receivedAtstring (date-time)requireddata[].[].lastMessage.isReadbooleanrequireddata[].[].lastMessage.isStarredbooleanrequireddata[].[].lastMessage.isDraftbooleanrequireddata[].[].lastMessage.folderstringrequireddata[].[].lastMessage.labelsstring[]requireddata[].[].lastMessage.hasAttachmentsbooleanrequireddata[].[].lastMessage.spamScorenumber | null (float)data[].[].lastMessage.priorityScorenumber | null (float)data[].[].lastMessage.snoozedUntilstring | null (date-time)data[].[].messageCountinteger (int32)requireddata[].[].isReadbooleanrequireddata[].[].isStarredbooleanrequireddata[].[].labelsstring[]requireddata[].[].hasAgentActivitybooleanrequireddata[].[].lastMessageAtstring (date-time)requireddata[].[].snippetstring | nullmetaobjectmeta.totalinteger (int64)requiredmeta.pageinteger (int64)requiredmeta.limitinteger (int64)requiredmeta.hasMorebooleanrequired
- 400Malformed JSON body or query parameters
- 401Missing or invalid authentication
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/threads" \
-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('boxes_mail_threads_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_threads_list",
"arguments": {}
}
}Get a thread with all its messages
GET/v1/boxes/mail/threads/{id}
Parameters
idpath · string (uuid)required
Responses
- 200Thread detail
Response fields
successbooleanrequireddataobjectrequireddata.threadobjectrequireddata.thread.idstring (uuid)requireddata.thread.subjectstringrequireddata.thread.participantsobject[]requireddata.thread.participants[].[].namestringrequireddata.thread.participants[].[].emailstringrequireddata.thread.participants[].[].isAgentbooleanrequireddata.thread.participants[].[].agentDidstring | nulldata.thread.participants[].[].agentTypestring | nulldata.thread.lastMessageobjectrequireddata.thread.lastMessage.idstring (uuid)requireddata.thread.lastMessage.threadIdstring (uuid)requireddata.thread.lastMessage.messageIdstringrequireddata.thread.lastMessage.fromobjectrequireddata.thread.lastMessage.from.namestringrequireddata.thread.lastMessage.from.emailstringrequireddata.thread.lastMessage.from.isAgentbooleanrequireddata.thread.lastMessage.from.agentDidstring | nulldata.thread.lastMessage.from.agentTypestring | nulldata.thread.lastMessage.toobject[]requireddata.thread.lastMessage.to[].[].namestringrequireddata.thread.lastMessage.to[].[].emailstringrequireddata.thread.lastMessage.to[].[].isAgentbooleanrequireddata.thread.lastMessage.to[].[].agentDidstring | nulldata.thread.lastMessage.to[].[].agentTypestring | nulldata.thread.lastMessage.ccobject[]requireddata.thread.lastMessage.cc[].[].namestringrequireddata.thread.lastMessage.cc[].[].emailstringrequireddata.thread.lastMessage.cc[].[].isAgentbooleanrequireddata.thread.lastMessage.cc[].[].agentDidstring | nulldata.thread.lastMessage.cc[].[].agentTypestring | nulldata.thread.lastMessage.bccobject[]requireddata.thread.lastMessage.bcc[].[].namestringrequireddata.thread.lastMessage.bcc[].[].emailstringrequireddata.thread.lastMessage.bcc[].[].isAgentbooleanrequireddata.thread.lastMessage.bcc[].[].agentDidstring | nulldata.thread.lastMessage.bcc[].[].agentTypestring | nulldata.thread.lastMessage.subjectstringrequireddata.thread.lastMessage.snippetstringrequireddata.thread.lastMessage.bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data.thread.lastMessage.bodyPlainstring | nulldata.thread.lastMessage.sentAtstring (date-time)requireddata.thread.lastMessage.receivedAtstring (date-time)requireddata.thread.lastMessage.isReadbooleanrequireddata.thread.lastMessage.isStarredbooleanrequireddata.thread.lastMessage.isDraftbooleanrequireddata.thread.lastMessage.folderstringrequireddata.thread.lastMessage.labelsstring[]requireddata.thread.lastMessage.hasAttachmentsbooleanrequireddata.thread.lastMessage.spamScorenumber | null (float)data.thread.lastMessage.priorityScorenumber | null (float)data.thread.lastMessage.snoozedUntilstring | null (date-time)data.thread.messageCountinteger (int32)requireddata.thread.isReadbooleanrequireddata.thread.isStarredbooleanrequireddata.thread.labelsstring[]requireddata.thread.hasAgentActivitybooleanrequireddata.thread.lastMessageAtstring (date-time)requireddata.thread.snippetstring | nulldata.messagesobject[]requireddata.messages[].[].idstring (uuid)requireddata.messages[].[].threadIdstring (uuid)requireddata.messages[].[].messageIdstringrequireddata.messages[].[].fromobjectrequireddata.messages[].[].from.namestringrequireddata.messages[].[].from.emailstringrequireddata.messages[].[].from.isAgentbooleanrequireddata.messages[].[].from.agentDidstring | nulldata.messages[].[].from.agentTypestring | nulldata.messages[].[].toobject[]requireddata.messages[].[].to[].[].namestringrequireddata.messages[].[].to[].[].emailstringrequireddata.messages[].[].to[].[].isAgentbooleanrequireddata.messages[].[].to[].[].agentDidstring | nulldata.messages[].[].to[].[].agentTypestring | nulldata.messages[].[].ccobject[]requireddata.messages[].[].cc[].[].namestringrequireddata.messages[].[].cc[].[].emailstringrequireddata.messages[].[].cc[].[].isAgentbooleanrequireddata.messages[].[].cc[].[].agentDidstring | nulldata.messages[].[].cc[].[].agentTypestring | nulldata.messages[].[].bccobject[]requireddata.messages[].[].bcc[].[].namestringrequireddata.messages[].[].bcc[].[].emailstringrequireddata.messages[].[].bcc[].[].isAgentbooleanrequireddata.messages[].[].bcc[].[].agentDidstring | nulldata.messages[].[].bcc[].[].agentTypestring | nulldata.messages[].[].subjectstringrequireddata.messages[].[].snippetstringrequireddata.messages[].[].bodystringrequiredHTML body, or the HTML-escaped plain body when no HTML body exists
data.messages[].[].bodyPlainstring | nulldata.messages[].[].sentAtstring (date-time)requireddata.messages[].[].receivedAtstring (date-time)requireddata.messages[].[].isReadbooleanrequireddata.messages[].[].isStarredbooleanrequireddata.messages[].[].isDraftbooleanrequireddata.messages[].[].folderstringrequireddata.messages[].[].labelsstring[]requireddata.messages[].[].hasAttachmentsbooleanrequireddata.messages[].[].spamScorenumber | null (float)data.messages[].[].priorityScorenumber | null (float)data.messages[].[].snoozedUntilstring | null (date-time)
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/threads/$ID" \
-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('boxes_mail_threads_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_mail_threads_get",
"arguments": {
"id": "<id>"
}
}
}List extractions for a thread
GET/v1/boxes/mail/threads/{thread_id}/extractions
Returns a bare array (not wrapped in success/data) holding only extractions in the caller mailbox.
Parameters
thread_idpath · string (uuid)required
Responses
- 200Extractions
Response fields
idstring (uuid)requiredmessageIdstring (uuid)requiredmailboxIdstring (uuid)requiredsummarystringrequiredintent"inquiry" | "request" | "response" | "notification" | "introduction" | "follow_up" | "complaint" | "appreciation" | "negotiation" | "scheduling" | "forwarded" | "automated"requiredsentiment"positive" | "neutral" | "negative" | "urgent"requiredcategory"transactional" | "conversational" | "marketing" | "notification" | "newsletter" | "internal" | "support" | "sales" | "legal" | "financial"requiredlanguagestringrequiredactionItemsobject[]requiredactionItems[].[].descriptionstringrequiredactionItems[].[].assigneestring | nullactionItems[].[].deadlinestring | nullactionItems[].[].prioritystring | nullquestionsstring[]requireddeadlinesobject[]requireddeadlines[].[].descriptionstringrequireddeadlines[].[].datestring | nulldeadlines[].[].sourceTextstringrequiredentitiesobject[]requiredentities[].[].namestringrequiredentities[].[].entityTypestringrequiredperson, company, product, date or amount
entities[].[].valuestring | nulltopicsstring[]requiredpriorityScorenumber (float)requiredspamScorenumber (float)requiredphishingScorenumber (float)requiredrequiresResponsebooleanrequiredsuggestedResponseBystring | null (date-time)extractionModelstringrequiredextractionLatencyMsinteger (int32)requiredcreatedAtstring (date-time)required
- 401Missing or invalid authentication
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/threads/$THREAD_ID/extractions" \
-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('boxes_mail_extraction_thread_get', {
thread_id: '<thread_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_extraction_thread_get",
"arguments": {
"thread_id": "<thread_id>"
}
}
}
}Get aggregated intelligence for a thread
GET/v1/boxes/mail/threads/{thread_id}/intelligence
Returns the bare object (not wrapped in success/data), or JSON null when none exists yet.
Parameters
thread_idpath · string (uuid)required
Responses
- 200Thread intelligence or null
Response fields
Type:
object | null - 401Missing or invalid authentication
- 403Forbidden
- 404Not found
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mail/threads/$THREAD_ID/intelligence" \
-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('boxes_mail_intelligence_thread_get', {
thread_id: '<thread_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mail_intelligence_thread_get",
"arguments": {
"thread_id": "<thread_id>"
}
}
}
}Mcp
List the caller's active sessions
GET/v1/boxes/mcp/sessions
Responses
- 200Success.
Response fields
idstringrequiredagentIdstringrequiredtenantIdstringrequiredagentDidstring | nullrequiredcontextanyrequiredFree-form JSON; usually an object.
createdAtstring (date-time)requiredlastActiveAtstring (date-time)requiredttlSecondsinteger (int64)requiredSession lifetime in seconds; requests above 86400 are capped to 86400. min 1
- 401Missing or invalid authentication context.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mcp/sessions" \
-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('boxes_mcp_sessions_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_sessions_list",
"arguments": {}
}
}
}Create an agent session
POST/v1/boxes/mcp/sessions
Returns the session directly (no envelope) with HTTP 200. Stored in Redis with the TTL.
Request body application/json
contextanyInitial context; defaults to an empty object.
ttlSecondsinteger (int64)Values above 86400 are capped to 86400. min 1 · default
3600
Responses
- 200Success.
Response fields
idstringrequiredagentIdstringrequiredtenantIdstringrequiredagentDidstring | nullrequiredcontextanyrequiredFree-form JSON; usually an object.
createdAtstring (date-time)requiredlastActiveAtstring (date-time)requiredttlSecondsinteger (int64)requiredSession lifetime in seconds; requests above 86400 are capped to 86400. min 1
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mcp/sessions" \
-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('boxes_mcp_sessions_create', {
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_sessions_create",
"arguments": {
"body": {}
}
}
}
}Get a session
GET/v1/boxes/mcp/sessions/{session_id}
Parameters
session_idpath · stringrequiredSession id (a UUID string).
Responses
- 200Success.
Response fields
idstringrequiredagentIdstringrequiredtenantIdstringrequiredagentDidstring | nullrequiredcontextanyrequiredFree-form JSON; usually an object.
createdAtstring (date-time)requiredlastActiveAtstring (date-time)requiredttlSecondsinteger (int64)requiredSession lifetime in seconds; requests above 86400 are capped to 86400. min 1
- 401Missing or invalid authentication context.
- 404Resource not found.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mcp/sessions/$SESSION_ID" \
-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('boxes_mcp_sessions_get', {
session_id: '<session_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_sessions_get",
"arguments": {
"session_id": "<session_id>"
}
}
}
}Destroy a session
DELETE/v1/boxes/mcp/sessions/{session_id}
Idempotent: returns deleted true even when the session does not exist.
Parameters
session_idpath · stringrequiredSession id (a UUID string).
Responses
- 200Success.
Response fields
deletedbooleanrequiredsessionIdstringrequired
- 401Missing or invalid authentication context.
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/mcp/sessions/$SESSION_ID" \
-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('boxes_mcp_sessions_delete', {
session_id: '<session_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_sessions_delete",
"arguments": {
"session_id": "<session_id>"
}
}
}
}Merge or replace session context
POST/v1/boxes/mcp/sessions/{session_id}/context
Responses are not wrapped in the standard success envelope. Sessions are scoped to the calling principal. Keeps the remaining TTL.
Parameters
session_idpath · stringrequiredSession id (a UUID string).
Request body application/json
contextanyrequiredContext to merge or replace.
replacebooleanWhen true, replace the context entirely; otherwise object keys are merged. default
false
Responses
- 200Success.
Response fields
idstringrequiredagentIdstringrequiredtenantIdstringrequiredagentDidstring | nullrequiredcontextanyrequiredFree-form JSON; usually an object.
createdAtstring (date-time)requiredlastActiveAtstring (date-time)requiredttlSecondsinteger (int64)requiredSession lifetime in seconds; requests above 86400 are capped to 86400. min 1
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mcp/sessions/$SESSION_ID/context" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"context": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mcp_sessions_context_set', {
session_id: '<session_id>',
body: {
context: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_sessions_context_set",
"arguments": {
"session_id": "<session_id>",
"body": {
"context": "string"
}
}
}
}
}List tools available to the caller
GET/v1/boxes/mcp/tools
Only tools whose required scope the caller holds are returned.
Responses
- 200Success.
Response fields
toolsobject[]requiredtools[].[].namestringrequiredtools[].[].descriptionstringrequiredtools[].[].product"mail" | "docs" | "calendar" | "sheets" | "slides" | "files" | "identity"requiredtools[].[].requiredScopestringrequiredtools[].[].inputSchemaobjectrequiredJSON Schema for the tool arguments.
totalintegerrequiredprotocolVersionstringrequiredserverInfoobjectrequiredserverInfo.namestringrequiredserverInfo.versionstringrequired
- 401Missing or invalid authentication context.
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/mcp/tools" \
-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('boxes_mcp_tools_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_tools_list",
"arguments": {}
}
}
}Call an MCP tool
POST/v1/boxes/mcp/tools/call
Requires the scope named by the tool requiredScope (403 otherwise); 404 for an unknown tool. Forwards to POST /v1/{product}/mcp/{action} on the product service. Argument validation errors and per-minute rate limits are reported inside a 200 body with success false.
Request body application/json
toolstringrequiredTool name such as docs.create.
argumentsanyrequiredArguments validated against the tool input schema.
Responses
- 200Success.
Response fields
toolstringrequiredsuccessbooleanrequiredresultanyBackend response body when success is true.
errorobjecterror.codestringrequiredVALIDATION_ERROR, RATE_LIMITED, BACKEND_<status> or SERVICE_UNAVAILABLE.
error.messagestringrequiredusageobjectrequiredusage.durationMsinteger (int64)requiredusage.tokensUsedinteger | null (int64)
- 400Malformed path, query or JSON body.
- 401Missing or invalid authentication context.
- 403Caller lacks the required scope.
- 404Resource not found.
- 422Validation failed.
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/mcp/tools/call" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "string",
"arguments": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_mcp_tools_call', {
body: {
tool: 'string',
arguments: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_mcp_tools_call",
"arguments": {
"body": {
"tool": "string",
"arguments": "string"
}
}
}
}
}Sheets
List spreadsheets in the tenant
GET/v1/boxes/sheets
Requires scope boxes:sheets:read. Lists all tenant spreadsheets; per-spreadsheet share permission is not applied.
Parameters
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].titlestringrequireddata[].[].descriptionstringrequireddata[].[].statusstringrequiredFor example active or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring | null (uuid)requireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets" \
-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('boxes_sheets_spreadsheets_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_spreadsheets_list",
"arguments": {}
}
}Create a spreadsheet
POST/v1/boxes/sheets
Requires scope boxes:sheets:write. Also creates a default tab named Sheet1 (1000 rows, 26 columns). Title must be 1 to 1024 characters.
Request body application/json
titlestringrequiredmin length 1 · max length 1024
descriptionstringdefault
""folderIdstring | null (uuid)isTemplatebooleandefault
false
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.statusstringrequiredFor example active or trashed.
data.isTemplatebooleanrequireddata.folderIdstring | null (uuid)requireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/sheets" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_sheets_spreadsheets_create', {
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_spreadsheets_create",
"arguments": {
"body": {
"title": "string"
}
}
}
}Get a spreadsheet
GET/v1/boxes/sheets/{id}
Requires scope boxes:sheets:read and read permission on the spreadsheet.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.statusstringrequiredFor example active or trashed.
data.isTemplatebooleanrequireddata.folderIdstring | null (uuid)requireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID" \
-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('boxes_sheets_spreadsheets_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_spreadsheets_get",
"arguments": {
"id": "<id>"
}
}
}Move a spreadsheet to the trash
DELETE/v1/boxes/sheets/{id}
Soft delete: sets the spreadsheet status to trashed and returns it. Requires scope boxes:sheets:write and admin permission on the spreadsheet.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.statusstringrequiredFor example active or trashed.
data.isTemplatebooleanrequireddata.folderIdstring | null (uuid)requireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/sheets/$ID" \
-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('boxes_sheets_spreadsheets_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_spreadsheets_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update a spreadsheet
PATCH/v1/boxes/sheets/{id}
Requires scope boxes:sheets:write and write permission on the spreadsheet. A folder cannot be cleared by omitting folderId; null is treated as absent.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Request body application/json
titlestringdescriptionstringfolderIdstring (uuid)
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.statusstringrequiredFor example active or trashed.
data.isTemplatebooleanrequireddata.folderIdstring | null (uuid)requireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/sheets/$ID" \
-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('boxes_sheets_spreadsheets_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_spreadsheets_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Import an Excel workbook as a new spreadsheet
POST/v1/boxes/sheets/import
Requires scope boxes:sheets:write. Multipart form; the part named file holds an .xlsx, at most 20 MB, at most 64 worksheets and 50,000 cells. Every worksheet becomes a tab; every cell keeps its value and its formula (as =...). Number formats, styles, charts, pivots and macros stay in the original. Answers the new spreadsheet.
Request bodies sent through https://os.one.ml/api are limited to 2 MiB.
Parameters
titlequery · stringfolder_idquery · string (uuid)
Request body multipart/form-data
filestring (binary)requiredThe .xlsx to import, at most 20 MB.
Responses
- 201Created
Response fields
successbooleandataobjectdata.idstring (uuid)requireddata.titlestringrequireddata.descriptionstringrequireddata.statusstringrequiredFor example active or trashed.
data.isTemplatebooleanrequireddata.folderIdstring | null (uuid)requireddata.ownerIdstring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Not an Excel workbook, or too large
- 401Missing or invalid authentication
- 403Forbidden
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/sheets/import" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: multipart/form-data" \
--data-binary @body.binimport { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_sheets_spreadsheets_import', {
body: '<bytes>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_spreadsheets_import",
"arguments": {
"body": "<bytes>"
}
}
}
}Search spreadsheets by title
GET/v1/boxes/sheets/search
Requires scope boxes:sheets:read. Matches on title only.
Parameters
qquery · stringrequiredSearch text; must not be blank.
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].titlestringrequireddata[].[].descriptionstringrequireddata[].[].statusstringrequiredFor example active or trashed.
data[].[].isTemplatebooleanrequireddata[].[].folderIdstring | null (uuid)requireddata[].[].ownerIdstring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/search?q=$Q" \
-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('boxes_sheets_search', {
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_search",
"arguments": {
"q": "<q>"
}
}
}Tabs
List tabs of a spreadsheet
GET/v1/boxes/sheets/{id}/tabs
Requires scope boxes:sheets:read and read permission on the spreadsheet.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].spreadsheetIdstring (uuid)requireddata[].[].namestringrequireddata[].[].positioninteger (int32)requireddata[].[].rowCountinteger (int32)requireddata[].[].colCountinteger (int32)requireddata[].[].frozenRowsinteger (int32)requireddata[].[].frozenColsinteger (int32)requireddata[].[].hiddenbooleanrequireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs" \
-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('boxes_sheets_tabs_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_tabs_list",
"arguments": {
"id": "<id>"
}
}
}Create a tab in a spreadsheet
POST/v1/boxes/sheets/{id}/tabs
Requires scope boxes:sheets:write and write permission on the spreadsheet. Name must be 1 to 255 characters; the tab is appended at the next position.
Parameters
idpath · string (uuid)requiredSpreadsheet id
Request body application/json
namestringrequiredmin length 1 · max length 255
rowCountinteger (int32)default
1000colCountinteger (int32)default
26
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.spreadsheetIdstring (uuid)requireddata.namestringrequireddata.positioninteger (int32)requireddata.rowCountinteger (int32)requireddata.colCountinteger (int32)requireddata.frozenRowsinteger (int32)requireddata.frozenColsinteger (int32)requireddata.hiddenbooleanrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_sheets_tabs_create', {
id: '<id>',
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_tabs_create",
"arguments": {
"id": "<id>",
"body": {
"name": "string"
}
}
}
}
}Get a tab
GET/v1/boxes/sheets/{id}/tabs/{tab_id}
Requires scope boxes:sheets:read and read permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.spreadsheetIdstring (uuid)requireddata.namestringrequireddata.positioninteger (int32)requireddata.rowCountinteger (int32)requireddata.colCountinteger (int32)requireddata.frozenRowsinteger (int32)requireddata.frozenColsinteger (int32)requireddata.hiddenbooleanrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID" \
-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('boxes_sheets_tabs_get', {
id: '<id>',
tab_id: '<tab_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_tabs_get",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>"
}
}
}
}Delete a tab
DELETE/v1/boxes/sheets/{id}/tabs/{tab_id}
Requires scope boxes:sheets:write and write permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID" \
-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('boxes_sheets_tabs_delete', {
id: '<id>',
tab_id: '<tab_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_tabs_delete",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>"
}
}
}
}Update a tab
PATCH/v1/boxes/sheets/{id}/tabs/{tab_id}
Requires scope boxes:sheets:write and write permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
Request body application/json
namestringpositioninteger (int32)frozenRowsinteger (int32)frozenColsinteger (int32)hiddenboolean
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.spreadsheetIdstring (uuid)requireddata.namestringrequireddata.positioninteger (int32)requireddata.rowCountinteger (int32)requireddata.colCountinteger (int32)requireddata.frozenRowsinteger (int32)requireddata.frozenColsinteger (int32)requireddata.hiddenbooleanrequireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID" \
-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('boxes_sheets_tabs_update', {
id: '<id>',
tab_id: '<tab_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_tabs_update",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"body": {}
}
}
}
}List non-empty cells of a tab
GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells
Requires scope boxes:sheets:read and read permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].sheetIdstring (uuid)requireddata[].[].rowIndexinteger (int32)requireddata[].[].colIndexinteger (int32)requireddata[].[].rawValuestringrequireddata[].[].computedValuestring | nullrequireddata[].[].formulastring | nullrequireddata[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata[].[].formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data[].[].updatedBystring | null (uuid)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells" \
-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('boxes_sheets_cells_list', {
id: '<id>',
tab_id: '<tab_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_cells_list",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>"
}
}
}
}Write a single cell
POST/v1/boxes/sheets/{id}/tabs/{tab_id}/cells
Requires scope boxes:sheets:write and write permission on the spreadsheet. Upserts the cell. The cell type is inferred (formula, empty, boolean, number, text). When formula is present the server evaluates it and stores computedValue. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
Request body application/json
rowinteger (int32)requiredZero-based row index
colinteger (int32)requiredZero-based column index
valuestringrequiredRaw cell value; always a string.
formulastringFormula text. When present the cell type is formula.
formatobjectUnspecified: free-form JSON cell formatting object; no schema in the backend.
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.sheetIdstring (uuid)requireddata.rowIndexinteger (int32)requireddata.colIndexinteger (int32)requireddata.rawValuestringrequireddata.computedValuestring | nullrequireddata.formulastring | nullrequireddata.cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata.formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data.updatedBystring | null (uuid)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"row": 1,
"col": 1,
"value": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_sheets_cells_set', {
id: '<id>',
tab_id: '<tab_id>',
body: {
row: 1,
col: 1,
value: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_cells_set",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"body": {
"row": 1,
"col": 1,
"value": "string"
}
}
}
}Get a single cell
GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}
Requires scope boxes:sheets:read and read permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
rowpath · integer (int32)requiredZero-based row index
colpath · integer (int32)requiredZero-based column index
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.sheetIdstring (uuid)requireddata.rowIndexinteger (int32)requireddata.colIndexinteger (int32)requireddata.rawValuestringrequireddata.computedValuestring | nullrequireddata.formulastring | nullrequireddata.cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata.formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data.updatedBystring | null (uuid)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells/$ROW/$COL" \
-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('boxes_sheets_cells_get', {
id: '<id>',
tab_id: '<tab_id>',
row: '<row>',
col: '<col>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_cells_get",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"row": "<row>",
"col": "<col>"
}
}
}
}Clear a cell
DELETE/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}
Requires scope boxes:sheets:write and write permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
rowpath · integer (int32)requiredZero-based row index
colpath · integer (int32)requiredZero-based column index
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.deletedbooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells/$ROW/$COL" \
-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('boxes_sheets_cells_delete', {
id: '<id>',
tab_id: '<tab_id>',
row: '<row>',
col: '<col>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_cells_delete",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"row": "<row>",
"col": "<col>"
}
}
}
}Write many cells in one request
POST/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/batch
Requires scope boxes:sheets:write and write permission on the spreadsheet. Between 1 and 1000 cells per call. Cells are written sequentially, not in a single transaction. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
Request body application/json
cellsobject[]requiredcells[].[].rowinteger (int32)requiredZero-based row index
cells[].[].colinteger (int32)requiredZero-based column index
cells[].[].valuestringrequiredRaw cell value; always a string.
cells[].[].formulastringFormula text. When present the cell type is formula.
cells[].[].formatobjectUnspecified: free-form JSON cell formatting object; no schema in the backend.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].sheetIdstring (uuid)requireddata[].[].rowIndexinteger (int32)requireddata[].[].colIndexinteger (int32)requireddata[].[].rawValuestringrequireddata[].[].computedValuestring | nullrequireddata[].[].formulastring | nullrequireddata[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata[].[].formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data[].[].updatedBystring | null (uuid)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells/batch" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"cells": [
{
"row": 1,
"col": 1,
"value": "string"
}
]
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_sheets_cells_batch', {
id: '<id>',
tab_id: '<tab_id>',
body: {
cells: [
{
row: 1,
col: 1,
value: 'string',
},
],
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_cells_batch",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"body": {
"cells": [
{
"row": 1,
"col": 1,
"value": "string"
}
]
}
}
}
}Search cells by value
GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/query
Requires scope boxes:sheets:read and read permission on the spreadsheet. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
qquery · stringrequiredCase-insensitive substring matched against rawValue.
cell_typequery · "formula" | "empty" | "boolean" | "number" | "text"Restrict to one cell type. The query parameter name is snake_case.
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].sheetIdstring (uuid)requireddata[].[].rowIndexinteger (int32)requireddata[].[].colIndexinteger (int32)requireddata[].[].rawValuestringrequireddata[].[].computedValuestring | nullrequireddata[].[].formulastring | nullrequireddata[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata[].[].formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data[].[].updatedBystring | null (uuid)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells/query?q=$Q" \
-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('boxes_sheets_cells_query', {
id: '<id>',
tab_id: '<tab_id>',
q: '<q>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_sheets_cells_query",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"q": "<q>"
}
}
}
}Get cells in a rectangular range
GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/range
Requires scope boxes:sheets:read and read permission on the spreadsheet. Start must be less than or equal to end on both axes. The tab id is not verified to belong to the spreadsheet in the path.
Parameters
idpath · string (uuid)requiredSpreadsheet id
tab_idpath · string (uuid)requiredSheet tab id
startRowquery · integer (int32)requiredZero-based first row
startColquery · integer (int32)requiredZero-based first column
endRowquery · integer (int32)requiredZero-based last row, inclusive
endColquery · integer (int32)requiredZero-based last column, inclusive
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].sheetIdstring (uuid)requireddata[].[].rowIndexinteger (int32)requireddata[].[].colIndexinteger (int32)requireddata[].[].rawValuestringrequireddata[].[].computedValuestring | nullrequireddata[].[].formulastring | nullrequireddata[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"requireddata[].[].formatobject | nullrequiredUnspecified: free-form JSON cell formatting object; no schema in the backend.
data[].[].updatedBystring | null (uuid)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata. requestId echoes the request-id header of the call.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/sheets/$ID/tabs/$TAB_ID/cells/range?startRow=$START_ROW&startCol=$START_COL&endRow=$END_ROW&endCol=$END_COL" \
-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('boxes_sheets_cells_range_get', {
id: '<id>',
tab_id: '<tab_id>',
startRow: '<startRow>',
startCol: '<startCol>',
endRow: '<endRow>',
endCol: '<endCol>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_sheets_cells_range_get",
"arguments": {
"id": "<id>",
"tab_id": "<tab_id>",
"startRow": "<startRow>",
"startCol": "<startCol>",
"endRow": "<endRow>",
"endCol": "<endCol>"
}
}
}Slides
List presentations in the tenant
GET/v1/boxes/slides/presentations
Requires scope boxes:slides:read. Invalid owner UUID returns a validation error.
Parameters
statusquery · "draft" | "published" | "archived"Filter by status (not validated by the handler)
ownerquery · stringThe literal me, or an owner user UUID
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].ownerIdstring (uuid)requireddata[].[].themeIdstring | null (uuid)requireddata[].[].titlestringrequireddata[].[].descriptionstring | nullrequireddata[].[].status"draft" | "published" | "archived"requireddata[].[].aspectRatio"16:9" | "4:3" | "16:10"requireddata[].[].slideCountinteger (int32)requireddata[].[].tagsstring[]requireddata[].[].metadataobjectrequiredUnspecified: free-form JSON object; no schema in the backend.
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 422Validation error
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations" \
-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('boxes_slides_presentations_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_presentations_list",
"arguments": {}
}
}Create a presentation
POST/v1/boxes/slides/presentations
Requires scope boxes:slides:write.
Request body application/json
titlestringrequiredmin length 1 · max length 500
descriptionstringthemeIdstring (uuid)aspectRatio"16:9" | "4:3" | "16:10"default
"16:9"tagsstring[]
Responses
- 201Created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.ownerIdstring (uuid)requireddata.themeIdstring | null (uuid)requireddata.titlestringrequireddata.descriptionstring | nullrequireddata.status"draft" | "published" | "archived"requireddata.aspectRatio"16:9" | "4:3" | "16:10"requireddata.slideCountinteger (int32)requireddata.tagsstring[]requireddata.metadataobjectrequiredUnspecified: free-form JSON object; no schema in the backend.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/slides/presentations" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_slides_presentations_create', {
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_presentations_create",
"arguments": {
"body": {
"title": "string"
}
}
}
}Get a presentation
GET/v1/boxes/slides/presentations/{id}
Requires scope boxes:slides:read and read permission on the presentation.
Parameters
idpath · string (uuid)requiredPresentation id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.ownerIdstring (uuid)requireddata.themeIdstring | null (uuid)requireddata.titlestringrequireddata.descriptionstring | nullrequireddata.status"draft" | "published" | "archived"requireddata.aspectRatio"16:9" | "4:3" | "16:10"requireddata.slideCountinteger (int32)requireddata.tagsstring[]requireddata.metadataobjectrequiredUnspecified: free-form JSON object; no schema in the backend.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$ID" \
-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('boxes_slides_presentations_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_presentations_get",
"arguments": {
"id": "<id>"
}
}
}Delete a presentation
DELETE/v1/boxes/slides/presentations/{id}
Hard delete. Requires scope boxes:slides:write and admin permission on the presentation.
Parameters
idpath · string (uuid)requiredPresentation id
Responses
- 204Deleted, no body
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/slides/presentations/$ID" \
-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('boxes_slides_presentations_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_presentations_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update a presentation
PATCH/v1/boxes/slides/presentations/{id}
Requires scope boxes:slides:write and write permission on the presentation.
Parameters
idpath · string (uuid)requiredPresentation id
Request body application/json
titlestringmin length 1 · max length 500
descriptionstringthemeIdstring (uuid)status"draft" | "published" | "archived"tagsstring[]
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.ownerIdstring (uuid)requireddata.themeIdstring | null (uuid)requireddata.titlestringrequireddata.descriptionstring | nullrequireddata.status"draft" | "published" | "archived"requireddata.aspectRatio"16:9" | "4:3" | "16:10"requireddata.slideCountinteger (int32)requireddata.tagsstring[]requireddata.metadataobjectrequiredUnspecified: free-form JSON object; no schema in the backend.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/slides/presentations/$ID" \
-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('boxes_slides_presentations_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_presentations_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}List a presentation's comments, oldest first
GET/v1/boxes/slides/presentations/{id}/comments
Requires scope boxes:slides:read and view permission on the presentation. slide keeps one slide's comments; open=true keeps only threads whose top comment is unresolved.
Parameters
idpath · string (uuid)requiredPresentation id
slidequery · string (uuid)Only this slide's comments
openquery · booleanOnly unresolved threads
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].presentationIdstring (uuid)requireddata[].[].slideIdstring | null (uuid)data[].[].parentIdstring | null (uuid)data[].[].anchorobjectrequiredWhere a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.
data[].[].anchor.kind"artboard" | "point" | "element"requireddata[].[].anchor.xnumberdata[].[].anchor.ynumberdata[].[].anchor.pathstringmax length 500
data[].[].anchor.textstringmax length 500
data[].[].bodystringrequireddata[].[].byobjectrequiredThe name the caller declares; grants nothing.
data[].[].by.kind"person" | "agent"requireddata[].[].by.namestringmax length 120
data[].[].toobject[]requireddata[].[].to[].[].kind"one" | "agent" | "team"requireddata[].[].to[].[].idstringmax length 200
data[].[].to[].[].namestringrequiredmax length 120
data[].[].authorIdstringrequiredThe signed caller (the One person h_..., else the Boxes user id)
data[].[].resolvedAtstring | null (date-time)data[].[].resolvedBystring | nulldata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$ID/comments" \
-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('boxes_slides_comments_list', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_comments_list",
"arguments": {
"id": "<id>"
}
}
}
}Comment on a presentation or one of its slides, or reply to a top-level comment
POST/v1/boxes/slides/presentations/{id}/comments
Requires scope boxes:slides:write and comment or edit permission on the presentation (or ownership). slideId must be a slide of this presentation; parentId a top-level comment of it, and a reply that leaves out slideId or anchor takes its parent's. authorId is the signed caller; by is only the name the caller declares.
Parameters
idpath · string (uuid)requiredPresentation id
Request body application/json
slideIdstring (uuid)parentIdstring (uuid)anchorobjectWhere a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.
anchor.kind"artboard" | "point" | "element"requiredanchor.xnumberanchor.ynumberanchor.pathstringmax length 500
anchor.textstringmax length 500
bodystringrequiredmin length 1 · max length 8000
byobjectThe name the caller declares; grants nothing.
by.kind"person" | "agent"requiredby.namestringmax length 120
toobject[]to[].[].kind"one" | "agent" | "team"requiredto[].[].idstringmax length 200
to[].[].namestringrequiredmax length 120
Responses
- 201Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.slideIdstring | null (uuid)data.parentIdstring | null (uuid)data.anchorobjectrequiredWhere a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.
data.anchor.kind"artboard" | "point" | "element"requireddata.anchor.xnumberdata.anchor.ynumberdata.anchor.pathstringmax length 500
data.anchor.textstringmax length 500
data.bodystringrequireddata.byobjectrequiredThe name the caller declares; grants nothing.
data.by.kind"person" | "agent"requireddata.by.namestringmax length 120
data.toobject[]requireddata.to[].[].kind"one" | "agent" | "team"requireddata.to[].[].idstringmax length 200
data.to[].[].namestringrequiredmax length 120
data.authorIdstringrequiredThe signed caller (the One person h_..., else the Boxes user id)
data.resolvedAtstring | null (date-time)data.resolvedBystring | nulldata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/slides/presentations/$ID/comments" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_slides_comments_create', {
id: '<id>',
body: {
body: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_comments_create",
"arguments": {
"id": "<id>",
"body": {
"body": "string"
}
}
}
}
}Resolve or reopen a comment, or change its text
PATCH/v1/boxes/slides/presentations/{id}/comments/{comment_id}
Requires scope boxes:slides:write and comment or edit permission on the presentation. Anyone who can comment may resolve or reopen; only the comment's author may change its body (403 BOXES_COMMENT_NOT_AUTHOR otherwise).
Parameters
idpath · string (uuid)requiredPresentation id
comment_idpath · string (uuid)requiredComment id
Request body application/json
resolvedbooleanbodystringmin length 1 · max length 8000
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.slideIdstring | null (uuid)data.parentIdstring | null (uuid)data.anchorobjectrequiredWhere a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.
data.anchor.kind"artboard" | "point" | "element"requireddata.anchor.xnumberdata.anchor.ynumberdata.anchor.pathstringmax length 500
data.anchor.textstringmax length 500
data.bodystringrequireddata.byobjectrequiredThe name the caller declares; grants nothing.
data.by.kind"person" | "agent"requireddata.by.namestringmax length 120
data.toobject[]requireddata.to[].[].kind"one" | "agent" | "team"requireddata.to[].[].idstringmax length 200
data.to[].[].namestringrequiredmax length 120
data.authorIdstringrequiredThe signed caller (the One person h_..., else the Boxes user id)
data.resolvedAtstring | null (date-time)data.resolvedBystring | nulldata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/slides/presentations/$ID/comments/$COMMENT_ID" \
-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('boxes_slides_comments_update', {
id: '<id>',
comment_id: '<comment_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_comments_update",
"arguments": {
"id": "<id>",
"comment_id": "<comment_id>",
"body": {}
}
}
}
}List slides of a presentation
GET/v1/boxes/slides/presentations/{presentation_id}/slides
Requires scope boxes:slides:read and read permission on the presentation. Ordered by position.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].presentationIdstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].positioninteger (int32)requireddata[].[].layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"requireddata[].[].titlestring | nullrequireddata[].[].contentobjectrequiredUnspecified: free-form JSON slide content; defaults to an empty object.
data[].[].speakerNotesstring | nullrequireddata[].[].transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequireddata[].[].backgroundobject | nullrequiredUnspecified: free-form JSON background object, or null.
data[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides" \
-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('boxes_slides_slides_list', {
presentation_id: '<presentation_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_slides_list",
"arguments": {
"presentation_id": "<presentation_id>"
}
}
}Add a slide to a presentation
POST/v1/boxes/slides/presentations/{presentation_id}/slides
Requires scope boxes:slides:write and write permission on the presentation. When position is omitted the slide is appended. Updates the presentation slideCount.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
Request body application/json
positioninteger (int32)Defaults to last position plus one.
layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"default
"blank"titlestringcontentobjectUnspecified: free-form JSON slide content.
speakerNotesstringtransition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom"backgroundobjectUnspecified: free-form JSON background object.
Responses
- 201Created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.tenantIdstring (uuid)requireddata.positioninteger (int32)requireddata.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"requireddata.titlestring | nullrequireddata.contentobjectrequiredUnspecified: free-form JSON slide content; defaults to an empty object.
data.speakerNotesstring | nullrequireddata.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequireddata.backgroundobject | nullrequiredUnspecified: free-form JSON background object, or null.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides" \
-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('boxes_slides_slides_create', {
presentation_id: '<presentation_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_slides_create",
"arguments": {
"presentation_id": "<presentation_id>",
"body": {}
}
}
}Get a slide
GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}
Requires scope boxes:slides:read and read permission on the presentation.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.tenantIdstring (uuid)requireddata.positioninteger (int32)requireddata.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"requireddata.titlestring | nullrequireddata.contentobjectrequiredUnspecified: free-form JSON slide content; defaults to an empty object.
data.speakerNotesstring | nullrequireddata.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequireddata.backgroundobject | nullrequiredUnspecified: free-form JSON background object, or null.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID" \
-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('boxes_slides_slides_get', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_slides_get",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>"
}
}
}Delete a slide
DELETE/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}
Requires scope boxes:slides:write and write permission on the presentation. Updates the presentation slideCount.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Responses
- 204Deleted, no body
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID" \
-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('boxes_slides_slides_delete', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_slides_delete",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>"
}
}
}
}Update a slide
PATCH/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}
Requires scope boxes:slides:write and write permission on the presentation.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Request body application/json
layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"titlestringcontentobjectUnspecified: free-form JSON slide content.
speakerNotesstringtransition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom"backgroundobjectUnspecified: free-form JSON background object.
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.tenantIdstring (uuid)requireddata.positioninteger (int32)requireddata.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"requireddata.titlestring | nullrequireddata.contentobjectrequiredUnspecified: free-form JSON slide content; defaults to an empty object.
data.speakerNotesstring | nullrequireddata.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequireddata.backgroundobject | nullrequiredUnspecified: free-form JSON background object, or null.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID" \
-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('boxes_slides_slides_update', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "boxes_slides_slides_update",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>",
"body": {}
}
}
}Move a slide to a new position
PUT/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/reorder
Requires scope boxes:slides:write and write permission on the presentation. Other slides between the old and new position are shifted by one. newPosition is not range-checked.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Request body application/json
newPositioninteger (int32)required
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.presentationIdstring (uuid)requireddata.tenantIdstring (uuid)requireddata.positioninteger (int32)requireddata.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"requireddata.titlestring | nullrequireddata.contentobjectrequiredUnspecified: free-form JSON slide content; defaults to an empty object.
data.speakerNotesstring | nullrequireddata.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequireddata.backgroundobject | nullrequiredUnspecified: free-form JSON background object, or null.
data.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X PUT "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID/reorder" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"newPosition": 1
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_slides_slides_reorder', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
body: {
newPosition: 1,
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_slides_reorder",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>",
"body": {
"newPosition": 1
}
}
}
}
}List a slide's versions, newest first, without content
GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions
Requires scope boxes:slides:read and view permission on the presentation. The newest 200 versions of each slide are kept.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].slideIdstring (uuid)requireddata[].[].titlestring | nulldata[].[].labelstring | nulldata[].[].reasonstring | nulldata[].[].byobjectrequiredThe name the caller declares; grants nothing.
data[].[].by.kind"person" | "agent"requireddata[].[].by.namestringmax length 120
data[].[].authorIdstringrequireddata[].[].createdAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID/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('boxes_slides_versions_list', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_versions_list",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>"
}
}
}
}Snapshot the slide as it is now
POST/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions
Requires scope boxes:slides:write and edit permission on the presentation. Stores the slide's current title and content, then keeps only the newest 200 versions of the slide.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
Request body application/json
labelstringmax length 120
reasonstringmax length 500
byobjectThe name the caller declares; grants nothing.
by.kind"person" | "agent"requiredby.namestringmax length 120
Responses
- 201Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.slideIdstring (uuid)requireddata.titlestring | nulldata.labelstring | nulldata.reasonstring | nulldata.byobjectrequiredThe name the caller declares; grants nothing.
data.by.kind"person" | "agent"requireddata.by.namestringmax length 120
data.authorIdstringrequireddata.createdAtstring (date-time)requireddata.contentobjectrequiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID/versions" \
-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('boxes_slides_versions_create', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_versions_create",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>",
"body": {}
}
}
}
}One version of a slide, with its title and content
GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions/{version_id}
Requires scope boxes:slides:read and view permission on the presentation.
Parameters
presentation_idpath · string (uuid)requiredPresentation id
slide_idpath · string (uuid)requiredSlide id
version_idpath · string (uuid)requiredVersion id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.slideIdstring (uuid)requireddata.titlestring | nulldata.labelstring | nulldata.reasonstring | nulldata.byobjectrequiredThe name the caller declares; grants nothing.
data.by.kind"person" | "agent"requireddata.by.namestringmax length 120
data.authorIdstringrequireddata.createdAtstring (date-time)requireddata.contentobjectrequiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request (VALIDATION_ERROR)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/presentations/$PRESENTATION_ID/slides/$SLIDE_ID/versions/$VERSION_ID" \
-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('boxes_slides_versions_get', {
presentation_id: '<presentation_id>',
slide_id: '<slide_id>',
version_id: '<version_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_versions_get",
"arguments": {
"presentation_id": "<presentation_id>",
"slide_id": "<slide_id>",
"version_id": "<version_id>"
}
}
}
}List slide templates (themes)
GET/v1/boxes/slides/themes
Backed by slide themes. Requires scope boxes:slides:read.
Parameters
pagequery · integer (int64)limitquery · integer (int64)Values outside 1..100 are clamped.
Responses
- 200Success
Response fields
successbooleanrequireddataobject[]requireddata[].[].idstring (uuid)requireddata[].[].tenantIdstring (uuid)requireddata[].[].namestringrequireddata[].[].descriptionstring | nullrequireddata[].[].colorsobjectrequiredUnspecified: free-form JSON object of theme colors.
data[].[].fontsobjectrequiredUnspecified: free-form JSON object of theme fonts.
data[].[].layoutsany[]requiredUnspecified: free-form JSON array of layout definitions; defaults to an empty array.
data[].[].isDefaultbooleanrequireddata[].[].createdBystring (uuid)requireddata[].[].createdAtstring (date-time)requireddata[].[].updatedAtstring (date-time)requiredpaginationobjectrequiredpagination.totalinteger (int64)requiredpagination.pageinteger (int64)requiredpagination.limitinteger (int64)requiredpagination.hasMorebooleanrequiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/themes" \
-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('boxes_slides_templates_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_templates_list",
"arguments": {}
}
}
}Create a slide template (theme)
POST/v1/boxes/slides/themes
Backed by slide themes. Requires scope boxes:slides:write.
Request body application/json
namestringrequiredmin length 1 · max length 255
descriptionstringcolorsobjectUnspecified: free-form JSON object of theme colors.
fontsobjectUnspecified: free-form JSON object of theme fonts.
layoutsany[]Unspecified: free-form JSON array of layout definitions.
isDefaultbooleandefault
false
Responses
- 201Created
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.namestringrequireddata.descriptionstring | nullrequireddata.colorsobjectrequiredUnspecified: free-form JSON object of theme colors.
data.fontsobjectrequiredUnspecified: free-form JSON object of theme fonts.
data.layoutsany[]requiredUnspecified: free-form JSON array of layout definitions; defaults to an empty array.
data.isDefaultbooleanrequireddata.createdBystring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/slides/themes" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_slides_templates_create', {
body: {
name: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_templates_create",
"arguments": {
"body": {
"name": "string"
}
}
}
}
}Get a slide template (theme)
GET/v1/boxes/slides/themes/{id}
Backed by slide themes. Requires scope boxes:slides:read. Tenant-scoped.
Parameters
idpath · string (uuid)requiredTemplate (theme) id
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.namestringrequireddata.descriptionstring | nullrequireddata.colorsobjectrequiredUnspecified: free-form JSON object of theme colors.
data.fontsobjectrequiredUnspecified: free-form JSON object of theme fonts.
data.layoutsany[]requiredUnspecified: free-form JSON array of layout definitions; defaults to an empty array.
data.isDefaultbooleanrequireddata.createdBystring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/slides/themes/$ID" \
-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('boxes_slides_templates_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_templates_get",
"arguments": {
"id": "<id>"
}
}
}
}Delete a slide template (theme)
DELETE/v1/boxes/slides/themes/{id}
Backed by slide themes. Requires scope boxes:slides:write.
Parameters
idpath · string (uuid)requiredTemplate (theme) id
Responses
- 204Deleted, no body
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/slides/themes/$ID" \
-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('boxes_slides_templates_delete', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_templates_delete",
"arguments": {
"id": "<id>"
}
}
}
}Update a slide template (theme)
PATCH/v1/boxes/slides/themes/{id}
Backed by slide themes. Requires scope boxes:slides:write.
Parameters
idpath · string (uuid)requiredTemplate (theme) id
Request body application/json
namestringmin length 1 · max length 255
descriptionstringcolorsobjectUnspecified: free-form JSON object of theme colors.
fontsobjectUnspecified: free-form JSON object of theme fonts.
layoutsany[]Unspecified: free-form JSON array of layout definitions.
isDefaultboolean
Responses
- 200Success
Response fields
successbooleanrequireddataobjectrequireddata.idstring (uuid)requireddata.tenantIdstring (uuid)requireddata.namestringrequireddata.descriptionstring | nullrequireddata.colorsobjectrequiredUnspecified: free-form JSON object of theme colors.
data.fontsobjectrequiredUnspecified: free-form JSON object of theme fonts.
data.layoutsany[]requiredUnspecified: free-form JSON array of layout definitions; defaults to an empty array.
data.isDefaultbooleanrequireddata.createdBystring (uuid)requireddata.createdAtstring (date-time)requireddata.updatedAtstring (date-time)requiredmetaobjectResponse metadata. The slides service generates a random requestId per response.
meta.requestIdstringmeta.timestampstring (date-time)
- 400Malformed request
- 401Missing or invalid authentication context
- 403Token lacks the required scope
- 404Resource not found, or the caller lacks permission on it
- 422Validation error
- 4xx 5xxThe error envelope.
curl -X PATCH "https://os.one.ml/api/v1/boxes/slides/themes/$ID" \
-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('boxes_slides_templates_update', {
id: '<id>',
body: {},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_slides_templates_update",
"arguments": {
"id": "<id>",
"body": {}
}
}
}
}Spaces
List the spaces the person is in now
GET/v1/boxes/spaces
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Responses
- 200Answered
Response fields
successbooleanrequireddataobject[]required
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/spaces" \
-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('boxes_spaces_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_list",
"arguments": {}
}
}
}Make a space; the person is its owner
POST/v1/boxes/spaces
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Request body application/json
titlestringrequiredThe space's name
glyphstringThe person's chosen glyph
kindHintstringThe person's own hint of what the space is for, stored and shown
parentSpacestring (uuid)A space the person owns, to nest this one in
Responses
- 201Answered
Response fields
successbooleanrequireddataobjectrequired
- 400Malformed body
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_spaces_create', {
body: {
title: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_create",
"arguments": {
"body": {
"title": "string"
}
}
}
}
}A space and its present members, to members only
GET/v1/boxes/spaces/{id}
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/spaces/$ID" \
-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('boxes_spaces_get', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_get",
"arguments": {
"id": "<id>"
}
}
}
}Whether the person may read, comment on or edit an object now
POST/v1/boxes/spaces/can
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Request body application/json
resourceType"file"requiredresourceIdstringrequiredneed"view" | "comment" | "edit"required
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequireddata.allowedbooleanrequired
- 400Malformed body
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/can" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resourceType": "file",
"resourceId": "string",
"need": "view"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_spaces_can', {
body: {
resourceType: 'file',
resourceId: 'string',
need: 'view',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_can",
"arguments": {
"body": {
"resourceType": "file",
"resourceId": "string",
"need": "view"
}
}
}
}
}Export the person's own part of every space they are in
GET/v1/boxes/spaces/export
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/spaces/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('boxes_spaces_export'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_export",
"arguments": {}
}
}
}List the grants the person gave and the live grants that reach them
GET/v1/boxes/spaces/grants
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Responses
- 200Answered
Response fields
successbooleanrequireddataobject[]required
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/spaces/grants" \
-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('boxes_spaces_grants_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_grants_list",
"arguments": {}
}
}
}Share an object the person owns with a space or a person they share a space with (live only)
POST/v1/boxes/spaces/grants
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Request body application/json
resourceType"file"requiredresourceIdstringrequiredgranteeKind"space" | "person"requiredgranteeIdstringrequiredpermission"view" | "comment" | "edit"requiredapprovalIdstringrequiredThe person's yes for this share, minted by their own app for the press
form"live"
Responses
- 201Answered
Response fields
successbooleanrequireddataobjectrequired
- 400Malformed body
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/grants" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resourceType": "file",
"resourceId": "string",
"granteeKind": "space",
"granteeId": "string",
"permission": "view",
"approvalId": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_spaces_grants_create', {
body: {
resourceType: 'file',
resourceId: 'string',
granteeKind: 'space',
granteeId: 'string',
permission: 'view',
approvalId: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_grants_create",
"arguments": {
"body": {
"resourceType": "file",
"resourceId": "string",
"granteeKind": "space",
"granteeId": "string",
"permission": "view",
"approvalId": "string"
}
}
}
}
}End a grant the person gave; the next read by anyone it reached is refused
POST/v1/boxes/spaces/grants/{grant_id}/revoke
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
grant_idpath · string (uuid)requiredGrant ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/grants/$GRANT_ID/revoke" \
-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('boxes_spaces_grants_revoke', {
grant_id: '<grant_id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_grants_revoke",
"arguments": {
"grant_id": "<grant_id>"
}
}
}
}List the spaces the person has been asked to join and has not answered
GET/v1/boxes/spaces/invitations
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Responses
- 200Answered
Response fields
successbooleanrequireddataobject[]required
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 4xx 5xxThe error envelope.
curl "https://os.one.ml/api/v1/boxes/spaces/invitations" \
-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('boxes_spaces_invitations_list'){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_invitations_list",
"arguments": {}
}
}
}Accept
Accept an invitation to a space
POST/v1/boxes/spaces/{id}/accept
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/accept" \
-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('boxes_spaces_accept', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_accept",
"arguments": {
"id": "<id>"
}
}
}
}Decline
Decline an invitation to a space
POST/v1/boxes/spaces/{id}/decline
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/decline" \
-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('boxes_spaces_decline', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_decline",
"arguments": {
"id": "<id>"
}
}
}
}Erase my part
Leave a space and erase the person's rows in it (membership, grants, audit). Irreversible
POST/v1/boxes/spaces/{id}/erase-my-part
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/erase-my-part" \
-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('boxes_spaces_erase_my_part', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_erase_my_part",
"arguments": {
"id": "<id>"
}
}
}
}Leave
Leave a space with the person's One and agents; their live grants to it end
POST/v1/boxes/spaces/{id}/leave
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/leave" \
-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('boxes_spaces_leave', {
id: '<id>',
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_leave",
"arguments": {
"id": "<id>"
}
}
}
}Members
The owner asks a person to join, or a member adds their own One or agent
POST/v1/boxes/spaces/{id}/members
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Request body application/json
principalstringrequiredThe person's signed id (h_...), or their One (one_<h>) or agent
principalKind"person" | "one" | "agent"requiredonBehalfOfstringFor a One or an agent, the member it acts for (always the caller)
role"member" | "guest"
Responses
- 201Answered
Response fields
successbooleanrequireddataobjectrequired
- 400Malformed body
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/members" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"principal": "string",
"principalKind": "person"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_spaces_members_add', {
id: '<id>',
body: {
principal: 'string',
principalKind: 'person',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_members_add",
"arguments": {
"id": "<id>",
"body": {
"principal": "string",
"principalKind": "person"
}
}
}
}
}The owner removes a member, as if they left
POST/v1/boxes/spaces/{id}/members/remove
A One person session only (x-person-only): an org key, an agent, a delegation or any other session gets 404 from the gateway and never reaches Boxes, and it is never an MCP tool. Dark: GENESIS_SPACES_ENABLED on the gateway and BOXES_SPACES_ENABLED (test org first) on Boxes. Every row is fenced by the session's project tenant.
Parameters
idpath · string (uuid)requiredSpace ID (a UUID)
Request body application/json
principalstringrequired
Responses
- 200Answered
Response fields
successbooleanrequireddataobjectrequired
- 400Malformed body
- 401Missing or invalid credential
- 403Scope not granted
- 404Not a One person session, spaces are off, or no such space for this person
- 409A bound was reached (spaces, members or grants)
- 422Refused by the sharing rules
- 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/spaces/$ID/members/remove" \
-H "Authorization: Bearer $GENESIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"principal": "string"
}'import { Genesis } from '@onesi/genesis'
const genesis = new Genesis({ apiKey: process.env.GENESIS_API_KEY })
const result = await genesis.call('boxes_spaces_members_remove', {
id: '<id>',
body: {
principal: 'string',
},
}){
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "genesis_call",
"arguments": {
"operation": "boxes_spaces_members_remove",
"arguments": {
"id": "<id>",
"body": {
"principal": "string"
}
}
}
}
}L1fe AI Inc. · Built from Genesis 0.3.1 and the live gateway on 2026-10-25. Support