OneOS Docs
Genesis 0.3.1 Console

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:read boxes:write
API keys
2 refused to API keys · 170 tested with an API key
SDK
genesis.call('boxes_calendar_availability_get', …) · helpers under genesis.boxes
CLI
genesis boxes
MCP
65 tools; the other 153 through genesis_call

Operations

OperationEndpointAPI key
Get free/busy slots for a userGET/calendar/availabilityTested with an API key
List the caller's calendarsGET/calendar/calendarsTested with an API key
Create a calendarPOST/calendar/calendarsTested with an API key
Get a calendarGET/calendar/calendars/{id}Tested with an API key
Delete a calendarDELETE/calendar/calendars/{id}Tested with an API key
Update a calendarPATCH/calendar/calendars/{id}Tested with an API key
List eventsGET/calendar/eventsTested with an API key
Create an eventPOST/calendar/eventsTested with an API key
Get an eventGET/calendar/events/{id}Tested with an API key
Delete an eventDELETE/calendar/events/{id}Tested with an API key
Update an eventPATCH/calendar/events/{id}Tested with an API key
List attendees of an eventGET/calendar/events/{id}/attendeesTested with an API key
Set the caller's RSVP on an eventPOST/calendar/events/{id}/rsvpTested with an API key
Search eventsGET/calendar/events/searchTested with an API key
List the caller's scheduling linksGET/calendar/scheduling-linksTested with an API key
Create a scheduling linkPOST/calendar/scheduling-linksTested with an API key
Get a scheduling linkGET/calendar/scheduling-links/{id}Tested with an API key
Delete a scheduling linkDELETE/calendar/scheduling-links/{id}Tested with an API key
Update a scheduling linkPATCH/calendar/scheduling-links/{id}Tested with an API key
Book a slot through a scheduling linkPOST/calendar/scheduling-links/{id}/bookTested with an API key
Get a scheduling link by slugGET/calendar/scheduling-links/by-slug/{slug}Tested with an API key
List documents in a folder or at the rootGET/docsTested with an API key
Create a documentPOST/docsTested with an API key
Get a documentGET/docs/{id}Tested with an API key
Move a document to the trashDELETE/docs/{id}Tested with an API key
Update a document or folderPATCH/docs/{id}Tested with an API key
List active collaborators on a documentGET/docs/{id}/collaboratorsTested with an API key
Stream live document operations and presenceGET/docs/{id}/eventsTested with an API key
Export a document as Word or MarkdownGET/docs/{id}/export—
List collaboration operations of a documentGET/docs/{id}/operationsTested with an API key
Append a collaboration operation to a documentPOST/docs/{id}/operationsTested with an API key
Permanently delete a documentDELETE/docs/{id}/permanentTested with an API key
Update caller presence and selectionPOST/docs/{id}/presenceTested with an API key
Restore a document or folder from the trashPOST/docs/{id}/restore—
Share a document with a user or by emailPOST/docs/{id}/shareTested with an API key
Remove a share from a documentDELETE/docs/{id}/share/{share_id}Tested with an API key
List shares of a documentGET/docs/{id}/sharesTested with an API key
List version history of a documentGET/docs/{id}/versionsTested with an API key
Create a document folderPOST/docs/folderTested with an API key
Import a Word document as a new docPOST/docs/import—
Run a Docs tool actionPOST/docs/mcp/{action}Tested with an API key
List recently updated documentsGET/docs/recentTested with an API key
Search documents by textGET/docs/searchTested with an API key
List documents shared with the callerGET/docs/shared-with-meTested with an API key
List saved document templatesGET/docs/templatesTested with an API key
List trashed documentsGET/docs/trashTested with an API key
List files and folders in a folder or at the rootGET/filesTested with an API key
Get file or folder metadataGET/files/{id}Tested with an API key
Move a file or folder to the trashDELETE/files/{id}Tested with an API key
Rename or move a file or folderPATCH/files/{id}Tested with an API key
Replace a board file of One's in placePUT/files/{id}/board—
Replace a file's bytes in placePUT/files/{id}/content—
Download file contentsGET/files/{id}/downloadTested with an API key
Replace a grid file of One's in placePUT/files/{id}/grid—
Read where a file or folder sitsGET/files/{id}/path—
Permanently delete a file or folderDELETE/files/{id}/permanentTested with an API key
Replace One's places card in placePUT/files/{id}/places-card—
Restore a file or folder from the trashPOST/files/{id}/restoreTested with an API key
Erase one Rig step card picture of the person's ownPOST/files/{id}/rig-step-picture/erase—
Share a file with a user or by emailPOST/files/{id}/shareTested with an API key
Remove a share from a fileDELETE/files/{id}/share/{share_id}Tested with an API key
List shares of a fileGET/files/{id}/sharesTested with an API key
Set your own tags on a file shared with youPUT/files/{id}/viewer-tags—
List your recent moves, renames and tag changes by batchGET/files/activity—
Undo one batch of moves, renames and tag changesPOST/files/activity/{batch_id}/undo—
Create a board file of One'sPOST/files/board—
Erase every file of a data class in the person's own space, past the trashPOST/files/erase-class—
Create a folderPOST/files/folderTested with an API key
Create a grid file of One'sPOST/files/grid—
Apply a batch of folder, move, rename and tag changes as onePOST/files/organize—
Create One's places card (the person's Me card)POST/files/places-card—
List recently updated filesGET/files/recentTested with an API key
Store the Rig step card's picture in the person's own spacePOST/files/rig-step-picture—
Search files by nameGET/files/searchTested with an API key
Search files by name, the words in the bodyPOST/files/search—
List files shared with the callerGET/files/shared-with-meTested with an API key
List trashed filesGET/files/trashTested with an API key
Read your folders as a tree with countsGET/files/tree—
Upload a filePOST/files/uploadTested with an API key
Read your own storage use and quotaGET/files/usage—
Get the calling userGET/identity/meTested with an API key
Get the caller's tenantGET/identity/tenants/currentTested with an API key
List users in the caller's tenantGET/identity/usersTested with an API key
Get a user by idGET/identity/users/{id}Tested with an API key
List active workspaces in the tenantGET/identity/workspacesTested with an API key
Get a workspaceGET/identity/workspaces/{id}Tested with an API key
List workspace membersGET/identity/workspaces/{id}/membersTested with an API key
List mail addresses for the callerGET/mail/addressesTested with an API key
Reserve a mail address on a verified custom domainPOST/mail/addressesAPI keys refused
List recent agent mail activity for the tenantGET/mail/agent/activitiesTested with an API key
Send one email per recipient with variable substitutionPOST/mail/agent/batch-sendTested with an API key
List per-message agent processing stateGET/mail/agent/stateTested with an API key
Update agent processing state for a messagePATCH/mail/agent/state/{messageId}Tested with an API key
List mail webhook subscriptionsGET/mail/agent/webhooksTested with an API key
Create a mail webhook subscriptionPOST/mail/agent/webhooksTested with an API key
Delete a mail webhook subscriptionDELETE/mail/agent/webhooks/{id}Tested with an API key
List the project's agent mailboxesGET/mail/agentsTested with an API key
Create an agent's mailboxPOST/mail/agentsTested with an API key
Get an agent's mailboxGET/mail/agents/{agentId}Tested with an API key
Delete an agent's mailboxDELETE/mail/agents/{agentId}Tested with an API key
As the agent, list messages in a folderGET/mail/agents/{agentId}/inboxTested with an API key
As the agent, get a message with its labelsGET/mail/agents/{agentId}/messages/{id}Tested with an API key
As the agent, send an email or save a draftPOST/mail/agents/{agentId}/sendTested with an API key
As the agent, list conversation threadsGET/mail/agents/{agentId}/threadsTested with an API key
As the agent, get a thread with all its messagesGET/mail/agents/{agentId}/threads/{id}Tested with an API key
Reserve or rename the person's own One addressPOST/mail/agents/one/address—
Whether a name can be the person's own One addressPOST/mail/agents/one/address/availability—
Upload a pending attachment for later sendingPOST/mail/attachmentsTested with an API key
Get attachment metadataGET/mail/attachments/{id}Tested with an API key
Delete an attachment recordDELETE/mail/attachments/{id}Tested with an API key
Download attachment bytesGET/mail/attachments/{id}/contentTested with an API key
Apply one operation to many messagesPOST/mail/batchTested with an API key
Revoke a mailbox delegationDELETE/mail/delegations/{delegation_id}Tested with an API key
List custom mail domainsGET/mail/domainsTested with an API key
Register a custom mail domainPOST/mail/domainsTested with an API key
Reserve a mail address on a specific domainPOST/mail/domains/{domain_id}/addressesAPI keys refused
Check DNS and verify a mail domainPOST/mail/domains/{domain_id}/verifyTested with an API key
List system and custom foldersGET/mail/foldersTested with an API key
Create a custom folderPOST/mail/foldersTested with an API key
Query the mail governance audit logGET/mail/governance/auditTested with an API key
List messages in a folderGET/mail/inboxTested with an API key
List system and custom labels with countsGET/mail/labelsTested with an API key
Create a custom labelPOST/mail/labelsTested with an API key
Delete a custom labelDELETE/mail/labels/{id}Tested with an API key
List sender mailboxes owned by the callerGET/mail/mailboxesTested with an API key
List delegations on a mailboxGET/mail/mailboxes/{mailbox_id}/delegationsTested with an API key
Submit an event to the mail memory pipelinePOST/mail/memory/eventsTested with an API key
Recall memories through the cognitive brain interfaceGET/mail/memory/recallTested with an API key
Search mail memory (hybrid episodic and vector)GET/mail/memory/searchTested with an API key
Store a custom memory entryPOST/mail/memory/storeTested with an API key
Get a message with its labelsGET/mail/messages/{id}Tested with an API key
Move a message to trashDELETE/mail/messages/{id}Tested with an API key
Update message flags, folder or snoozePATCH/mail/messages/{id}Tested with an API key
Get delivery status for a sent messageGET/mail/messages/{id}/deliveryTested with an API key
Get the extraction for a messageGET/mail/messages/{message_id}/extractionTested with an API key
List attachments of a messageGET/mail/messages/{messageId}/attachmentsTested with an API key
List mailboxes the caller can act as through delegationGET/mail/personasTested with an API key
Search messagesGET/mail/searchTested with an API key
Send an email or save a draftPOST/mail/sendTested with an API key
Stream new-message events over Server-Sent EventsGET/mail/streamTested with an API key
List built-in email templatesGET/mail/templatesTested with an API key
List conversation threadsGET/mail/threadsTested with an API key
Get a thread with all its messagesGET/mail/threads/{id}Tested with an API key
List extractions for a threadGET/mail/threads/{thread_id}/extractionsTested with an API key
Get aggregated intelligence for a threadGET/mail/threads/{thread_id}/intelligenceTested with an API key
List the caller's active sessionsGET/mcp/sessionsTested with an API key
Create an agent sessionPOST/mcp/sessionsTested with an API key
Get a sessionGET/mcp/sessions/{session_id}Tested with an API key
Destroy a sessionDELETE/mcp/sessions/{session_id}Tested with an API key
Merge or replace session contextPOST/mcp/sessions/{session_id}/contextTested with an API key
List tools available to the callerGET/mcp/toolsTested with an API key
Call an MCP toolPOST/mcp/tools/callTested with an API key
List spreadsheets in the tenantGET/sheetsTested with an API key
Create a spreadsheetPOST/sheetsTested with an API key
Get a spreadsheetGET/sheets/{id}Tested with an API key
Move a spreadsheet to the trashDELETE/sheets/{id}Tested with an API key
Update a spreadsheetPATCH/sheets/{id}Tested with an API key
Export a spreadsheet as an Excel workbook or CSVGET/sheets/{id}/export—
Permanently delete a spreadsheetDELETE/sheets/{id}/permanentTested with an API key
Share a spreadsheet with a user or email addressPOST/sheets/{id}/shareTested with an API key
Remove a share from a spreadsheetDELETE/sheets/{id}/share/{share_id}Tested with an API key
List shares of a spreadsheetGET/sheets/{id}/sharesTested with an API key
List tabs of a spreadsheetGET/sheets/{id}/tabsTested with an API key
Create a tab in a spreadsheetPOST/sheets/{id}/tabsTested with an API key
Get a tabGET/sheets/{id}/tabs/{tab_id}Tested with an API key
Delete a tabDELETE/sheets/{id}/tabs/{tab_id}Tested with an API key
Update a tabPATCH/sheets/{id}/tabs/{tab_id}Tested with an API key
List non-empty cells of a tabGET/sheets/{id}/tabs/{tab_id}/cellsTested with an API key
Write a single cellPOST/sheets/{id}/tabs/{tab_id}/cellsTested with an API key
Get a single cellGET/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}Tested with an API key
Clear a cellDELETE/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}Tested with an API key
Write many cells in one requestPOST/sheets/{id}/tabs/{tab_id}/cells/batchTested with an API key
Search cells by valueGET/sheets/{id}/tabs/{tab_id}/cells/queryTested with an API key
Get cells in a rectangular rangeGET/sheets/{id}/tabs/{tab_id}/cells/rangeTested with an API key
Import an Excel workbook as a new spreadsheetPOST/sheets/import—
Search spreadsheets by titleGET/sheets/searchTested with an API key
List spreadsheets shared with the callerGET/sheets/shared-with-meTested with an API key
List presentations in the tenantGET/slides/presentationsTested with an API key
Create a presentationPOST/slides/presentationsTested with an API key
Get a presentationGET/slides/presentations/{id}Tested with an API key
Delete a presentationDELETE/slides/presentations/{id}Tested with an API key
Update a presentationPATCH/slides/presentations/{id}Tested with an API key
List a presentation's comments, oldest firstGET/slides/presentations/{id}/comments—
Comment on a presentation or one of its slides, or reply to a top-level commentPOST/slides/presentations/{id}/comments—
Resolve or reopen a comment, or change its textPATCH/slides/presentations/{id}/comments/{comment_id}—
Share a presentation with a user or email addressPOST/slides/presentations/{id}/shareTested with an API key
Remove a share from a presentationDELETE/slides/presentations/{id}/share/{share_id}Tested with an API key
List shares of a presentationGET/slides/presentations/{id}/sharesTested with an API key
List slides of a presentationGET/slides/presentations/{presentation_id}/slidesTested with an API key
Add a slide to a presentationPOST/slides/presentations/{presentation_id}/slidesTested with an API key
Get a slideGET/slides/presentations/{presentation_id}/slides/{slide_id}Tested with an API key
Delete a slideDELETE/slides/presentations/{presentation_id}/slides/{slide_id}Tested with an API key
Update a slidePATCH/slides/presentations/{presentation_id}/slides/{slide_id}Tested with an API key
Move a slide to a new positionPUT/slides/presentations/{presentation_id}/slides/{slide_id}/reorderTested with an API key
List a slide's versions, newest first, without contentGET/slides/presentations/{presentation_id}/slides/{slide_id}/versions—
Snapshot the slide as it is nowPOST/slides/presentations/{presentation_id}/slides/{slide_id}/versions—
One version of a slide, with its title and contentGET/slides/presentations/{presentation_id}/slides/{slide_id}/versions/{version_id}—
List presentations shared with the callerGET/slides/presentations/shared-with-meTested with an API key
List slide templates (themes)GET/slides/themesTested with an API key
Create a slide template (theme)POST/slides/themesTested 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 nowGET/spaces—
Make a space; the person is its ownerPOST/spaces—
A space and its present members, to members onlyGET/spaces/{id}—
Accept an invitation to a spacePOST/spaces/{id}/accept—
Decline an invitation to a spacePOST/spaces/{id}/decline—
Leave a space and erase the person's rows in it (membership, grants, audit). IrreversiblePOST/spaces/{id}/erase-my-part—
Leave a space with the person's One and agents; their live grants to it endPOST/spaces/{id}/leave—
The owner asks a person to join, or a member adds their own One or agentPOST/spaces/{id}/members—
The owner removes a member, as if they leftPOST/spaces/{id}/members/remove—
Whether the person may read, comment on or edit an object nowPOST/spaces/can—
Export the person's own part of every space they are inGET/spaces/export—
List the grants the person gave and the live grants that reach themGET/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 refusedPOST/spaces/grants/{grant_id}/revoke—
List the spaces the person has been asked to join and has not answeredGET/spaces/invitations—

Calendar

Get free/busy slots for a user

GET/v1/boxes/calendar/availability

boxes:readTested with an API keyboxes_calendar_availability_get

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)required

    Range start.

  • endquery · string (date-time)required

    Range end; must be after start.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.userIdstring (uuid)required
    • data.startstring (date-time)required
    • data.endstring (date-time)required
    • data.busyobject[]required
    • data.busy[].[].startstring (date-time)required
    • data.busy[].[].endstring (date-time)required
    • data.busy[].[].eventIdstring (uuid)required
    • data.busy[].[].titlestringrequired

      "Busy" when the event visibility is private.

    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

List the caller's calendars

GET/v1/boxes/calendar/calendars

boxes:readTested with an API keyboxes_calendar_calendars_list

Creates the caller's default calendar first if none exists.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].descriptionstringrequired
    • data[].[].colorstringrequired
    • data[].[].timezonestringrequired
    • data[].[].isDefaultbooleanrequired
    • data[].[].isVisiblebooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Create a calendar

POST/v1/boxes/calendar/calendars

boxes:writeTested with an API keyboxes_calendar_calendars_create

Requires the calendar schedule scope. Note: returns 200, not 201.

Request body application/json

  • namestringrequired

    min length 1 · max length 256

  • descriptionstring

    default ""

  • colorstring

    default "#4285f4"

  • timezonestring

    default "UTC"

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.namestringrequired
    • data.descriptionstringrequired
    • data.colorstringrequired
    • data.timezonestringrequired
    • data.isDefaultbooleanrequired
    • data.isVisiblebooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"
  }'

Get a calendar

GET/v1/boxes/calendar/calendars/{id}

boxes:readTested with an API keyboxes_calendar_calendars_get

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.namestringrequired
    • data.descriptionstringrequired
    • data.colorstringrequired
    • data.timezonestringrequired
    • data.isDefaultbooleanrequired
    • data.isVisiblebooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Delete a calendar

DELETE/v1/boxes/calendar/calendars/{id}

boxes:writeTested with an API keyboxes_calendar_calendars_delete

Requires the calendar delete scope.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Update a calendar

PATCH/v1/boxes/calendar/calendars/{id}

boxes:writeTested with an API keyboxes_calendar_calendars_update

Requires the calendar schedule scope.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Request body application/json

  • namestring

    min length 1 · max length 256

  • descriptionstring
  • colorstring
  • timezonestring
  • isVisibleboolean

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.namestringrequired
    • data.descriptionstringrequired
    • data.colorstringrequired
    • data.timezonestringrequired
    • data.isDefaultbooleanrequired
    • data.isVisiblebooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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 '{}'

List events

GET/v1/boxes/calendar/events

boxes:readTested with an API keyboxes_calendar_events_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].calendarIdstring (uuid)required
    • data[].[].organizerIdstring (uuid)required
    • data[].[].titlestringrequired
    • data[].[].descriptionstringrequired
    • data[].[].locationstringrequired
    • data[].[].startTimestring (date-time)required
    • data[].[].endTimestring (date-time)required
    • data[].[].allDaybooleanrequired
    • data[].[].status"confirmed" | "tentative" | "cancelled"required
    • data[].[].visibility"default" | "public" | "private"required
    • data[].[].recurrenceRulestring | null
    • data[].[].recurrenceEndstring | null (date-time)
    • data[].[].recurringEventIdstring | null (uuid)
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Create an event

POST/v1/boxes/calendar/events

boxes:writeTested with an API keyboxes_calendar_events_create

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)required
  • titlestringrequired

    min length 1 · max length 1024

  • descriptionstring

    default ""

  • locationstring

    default ""

  • startTimestring (date-time)required
  • endTimestring (date-time)required
  • allDayboolean

    default false

  • status"confirmed" | "tentative" | "cancelled"

    default "confirmed"

  • visibility"default" | "public" | "private"

    default "default"

  • recurrenceRulestring
  • recurrenceEndstring (date-time)
  • attendeesobject[]

    default []

  • attendees[].[].emailstringrequired
  • attendees[].[].displayNamestring

    default ""

  • attendees[].[].isOptionalboolean

    default false

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.calendarIdstring (uuid)required
    • data.organizerIdstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.locationstringrequired
    • data.startTimestring (date-time)required
    • data.endTimestring (date-time)required
    • data.allDaybooleanrequired
    • data.status"confirmed" | "tentative" | "cancelled"required
    • data.visibility"default" | "public" | "private"required
    • data.recurrenceRulestring | null
    • data.recurrenceEndstring | null (date-time)
    • data.recurringEventIdstring | null (uuid)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"
  }'

Get an event

GET/v1/boxes/calendar/events/{id}

boxes:readTested with an API keyboxes_calendar_events_get

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.calendarIdstring (uuid)required
    • data.organizerIdstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.locationstringrequired
    • data.startTimestring (date-time)required
    • data.endTimestring (date-time)required
    • data.allDaybooleanrequired
    • data.status"confirmed" | "tentative" | "cancelled"required
    • data.visibility"default" | "public" | "private"required
    • data.recurrenceRulestring | null
    • data.recurrenceEndstring | null (date-time)
    • data.recurringEventIdstring | null (uuid)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Delete an event

DELETE/v1/boxes/calendar/events/{id}

boxes:writeTested with an API keyboxes_calendar_events_delete

Requires the calendar delete scope.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Update an event

PATCH/v1/boxes/calendar/events/{id}

boxes:writeTested with an API keyboxes_calendar_events_update

Requires the calendar schedule scope.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Request body application/json

  • titlestring
  • descriptionstring
  • locationstring
  • startTimestring (date-time)
  • endTimestring (date-time)
  • allDayboolean
  • status"confirmed" | "tentative" | "cancelled"
  • visibility"default" | "public" | "private"
  • recurrenceRulestring
  • recurrenceEndstring (date-time)

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.calendarIdstring (uuid)required
    • data.organizerIdstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.locationstringrequired
    • data.startTimestring (date-time)required
    • data.endTimestring (date-time)required
    • data.allDaybooleanrequired
    • data.status"confirmed" | "tentative" | "cancelled"required
    • data.visibility"default" | "public" | "private"required
    • data.recurrenceRulestring | null
    • data.recurrenceEndstring | null (date-time)
    • data.recurringEventIdstring | null (uuid)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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 '{}'

List attendees of an event

GET/v1/boxes/calendar/events/{id}/attendees

boxes:readTested with an API keyboxes_calendar_events_attendees_list

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].eventIdstring (uuid)required
    • data[].[].userIdstring | null (uuid)
    • data[].[].emailstringrequired
    • data[].[].displayNamestringrequired
    • data[].[].responseStatusstringrequired
    • data[].[].isOrganizerbooleanrequired
    • data[].[].isOptionalbooleanrequired
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"

Set the caller's RSVP on an event

POST/v1/boxes/calendar/events/{id}/rsvp

boxes:writeTested with an API keyboxes_calendar_events_rsvp

Requires the calendar book scope. 404 also when the caller is not an attendee. Returns the updated attendee row.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Request body application/json

  • responseStatus"accepted" | "declined" | "tentative"required

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.eventIdstring (uuid)required
    • data.userIdstring | null (uuid)
    • data.emailstringrequired
    • data.displayNamestringrequired
    • data.responseStatusstringrequired
    • data.isOrganizerbooleanrequired
    • data.isOptionalbooleanrequired
    • metaobject

      Response metadata.

    • meta.requestIdstring
    • meta.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"
  }'

Docs

List documents in a folder or at the root

GET/v1/boxes/docs

boxes:readTested with an API keyboxes_docs_documents_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].organizationIdstring (uuid) | nullrequired
    • data[].[].projectIdstring (uuid) | nullrequired
    • data[].[].workspaceIdstring (uuid) | nullrequired
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data[].[].wordCountinteger (int32)required
    • data[].[].statusstringrequired

      active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Create a document

POST/v1/boxes/docs

boxes:writeTested with an API keyboxes_docs_documents_create

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

  • titlestringrequired

    min length 1 · max length 1024

  • contentstring

    default ""

  • contentFormat"markdown" | "html" | "plaintext" | "json"

    default "markdown"

  • folderIdstring (uuid)
  • organizationIdstring (uuid)
  • projectIdstring (uuid)
  • workspaceIdstring (uuid)
  • isTemplateboolean

    default false

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
  }'

Get a document

GET/v1/boxes/docs/{id}

boxes:readTested with an API keyboxes_docs_documents_get

Requires scope boxes:docs:read. Visible to the owner and to users the document is shared with.

Parameters

  • idpath · string (uuid)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Move a document to the trash

DELETE/v1/boxes/docs/{id}

boxes:writeTested with an API keyboxes_docs_documents_delete

Requires scope boxes:docs:delete and admin permission. Trashing a folder also trashes its children. Returns the trashed record.

Parameters

  • idpath · string (uuid)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Update a document or folder

PATCH/v1/boxes/docs/{id}

boxes:writeTested with an API keyboxes_docs_documents_update

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)required

    Document ID

Request body application/json

  • titlestring
  • contentstring
  • contentFormat"markdown" | "html" | "plaintext" | "json"
  • folderIdstring (uuid)
  • organizationIdstring (uuid)
  • projectIdstring (uuid)
  • workspaceIdstring (uuid)

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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 '{}'

Create a document folder

POST/v1/boxes/docs/folder

boxes:writeTested with an API keyboxes_docs_folders_create

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

  • namestringrequired

    min length 1 · max length 1024

  • folderIdstring (uuid)
  • organizationIdstring (uuid)
  • projectIdstring (uuid)
  • workspaceIdstring (uuid)

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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 a Word document as a new doc

POST/v1/boxes/docs/import

boxes:writeboxes_docs_documents_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 · string

    The 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)required

    The .docx (or Markdown or plain text) to import, at most 20 MB.

Responses

  • 201Created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Run a Docs tool action

POST/v1/boxes/docs/mcp/{action}

boxes:writeTested with an API keyboxes_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"required

    Tool action name. Any other value returns 404.

Request body application/json

  • toolstringrequired

    Required by the deserializer; not used for dispatch.

  • argumentsobject

    Per-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
    • successbooleanrequired
    • dataobject | any[]required

      Unspecified: 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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
  }'

List recently updated documents

GET/v1/boxes/docs/recent

boxes:readTested with an API keyboxes_docs_recent_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].organizationIdstring (uuid) | nullrequired
    • data[].[].projectIdstring (uuid) | nullrequired
    • data[].[].workspaceIdstring (uuid) | nullrequired
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data[].[].wordCountinteger (int32)required
    • data[].[].statusstringrequired

      active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

List documents shared with the caller

GET/v1/boxes/docs/shared-with-me

boxes:readTested with an API keyboxes_docs_shared_with_me_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].organizationIdstring (uuid) | nullrequired
    • data[].[].projectIdstring (uuid) | nullrequired
    • data[].[].workspaceIdstring (uuid) | nullrequired
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data[].[].wordCountinteger (int32)required
    • data[].[].statusstringrequired

      active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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/shared-with-me" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List saved document templates

GET/v1/boxes/docs/templates

boxes:readTested with an API keyboxes_docs_templates_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].organizationIdstring (uuid) | nullrequired
    • data[].[].projectIdstring (uuid) | nullrequired
    • data[].[].workspaceIdstring (uuid) | nullrequired
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data[].[].wordCountinteger (int32)required
    • data[].[].statusstringrequired

      active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

List trashed documents

GET/v1/boxes/docs/trash

boxes:readTested with an API keyboxes_docs_trash_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].organizationIdstring (uuid) | nullrequired
    • data[].[].projectIdstring (uuid) | nullrequired
    • data[].[].workspaceIdstring (uuid) | nullrequired
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data[].[].wordCountinteger (int32)required
    • data[].[].statusstringrequired

      active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Collaborators

List active collaborators on a document

GET/v1/boxes/docs/{id}/collaborators

boxes:readTested with an API keyboxes_docs_documents_collaborators_list

Requires scope boxes:docs:read. The handler performs no per-document access check beyond the scope.

Parameters

  • idpath · string (uuid)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].documentIdstring (uuid)required
    • data[].[].userIdstring (uuid)required
    • data[].[].cursorPositioninteger (int32) | null
    • data[].[].selectionBlockIdstring | null
    • data[].[].selectionStartinteger (int32) | null
    • data[].[].selectionEndinteger (int32) | null
    • data[].[].selectedBlockIdsstring[]required
    • data[].[].lastSeenAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Events

Stream live document operations and presence

GET/v1/boxes/docs/{id}/events

boxes:readTested with an API keyboxes_docs_documents_events_stream

Requires scope boxes:docs:read and owner or read permission on an active document.

Parameters

  • idpath · string (uuid)required

    Document ID

  • after_revisionquery · integer (int32)

    Start streaming operations after this revision. The alias afterRevision is also accepted.

Responses

  • 200Server-sent events. Event name operations carries {"type":"operations","operations":[DocsOperation]} and is sent when new operations exist; event name presence carries {"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"

Export

Export a document as Word or Markdown

GET/v1/boxes/docs/{id}/export

boxes:readboxes_docs_documents_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)required

    Document 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"

Export a spreadsheet as an Excel workbook or CSV

GET/v1/boxes/sheets/{id}/export

boxes:readboxes_sheets_spreadsheets_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)required
  • formatquery · "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"

Operations

List collaboration operations of a document

GET/v1/boxes/docs/{id}/operations

boxes:readTested with an API keyboxes_docs_documents_operations_list

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)required

    Document 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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].documentIdstring (uuid)required
    • data[].[].operationIdstringrequired
    • data[].[].revisioninteger (int32)required
    • data[].[].baseRevisioninteger (int32)required
    • data[].[].actorIdstring (uuid)required
    • data[].[].actorKind"human" | "agent"required
    • data[].[].actorAgentDidstring | null
    • data[].[].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"required
    • data[].[].blockIdstring | null
    • data[].[].valuestring | null
    • data[].[].payloadobjectrequired

      Operation payload, including a server-added _actorContext object with the actor roles.

    • data[].[].createdAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Append a collaboration operation to a document

POST/v1/boxes/docs/{id}/operations

boxes:writeTested with an API keyboxes_docs_documents_operations_apply

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)required

    Document ID

Request body application/json

  • operationIdstring

    Client supplied operation ID; trimmed, blank means generate one.

  • baseRevisioninteger (int32)required

    Revision 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"required
  • blockIdstring
  • valuestring
  • payloadobject

    Unspecified: payload shape depends on operationType and is not validated by the schema; it must be a JSON object. Defaults to {}.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.documentIdstring (uuid)required
    • data.operationIdstringrequired
    • data.revisioninteger (int32)required
    • data.baseRevisioninteger (int32)required
    • data.actorIdstring (uuid)required
    • data.actorKind"human" | "agent"required
    • data.actorAgentDidstring | null
    • data.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"required
    • data.blockIdstring | null
    • data.valuestring | null
    • data.payloadobjectrequired

      Operation payload, including a server-added _actorContext object with the actor roles.

    • data.createdAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
  }'

Permanent

Permanently delete a document

DELETE/v1/boxes/docs/{id}/permanent

boxes:writeTested with an API keyboxes_docs_documents_purge

Requires scope boxes:docs:delete and admin permission. Irreversible.

Parameters

  • idpath · string (uuid)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Permanently delete a file or folder

DELETE/v1/boxes/files/{id}/permanent

boxes:writeTested with an API keyboxes_files_purge

Requires scope boxes:files:delete. Owner only. Irreversible: removes stored objects and reclaims quota.

Parameters

  • idpath · string (uuid)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Permanently delete a spreadsheet

DELETE/v1/boxes/sheets/{id}/permanent

boxes:writeTested with an API keyboxes_sheets_spreadsheets_purge

Irreversible. Requires scope boxes:sheets:write and admin permission on the spreadsheet.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Presence

Update caller presence and selection

POST/v1/boxes/docs/{id}/presence

boxes:writeTested with an API keyboxes_docs_documents_presence_update

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)required

    Document ID

Request body application/json

  • cursorPositioninteger (int32)
  • selectionBlockIdstring
  • selectionStartinteger (int32)
  • selectionEndinteger (int32)
  • selectedBlockIdsstring[]

    default []

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.documentIdstring (uuid)required
    • data.userIdstring (uuid)required
    • data.cursorPositioninteger (int32) | null
    • data.selectionBlockIdstring | null
    • data.selectionStartinteger (int32) | null
    • data.selectionEndinteger (int32) | null
    • data.selectedBlockIdsstring[]required
    • data.lastSeenAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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 '{}'

Restore

Restore a document or folder from the trash

POST/v1/boxes/docs/{id}/restore

boxes:writeboxes_docs_documents_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)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.organizationIdstring (uuid) | nullrequired
    • data.projectIdstring (uuid) | nullrequired
    • data.workspaceIdstring (uuid) | nullrequired
    • data.titlestringrequired
    • data.contentstringrequired
    • data.contentFormat"markdown" | "html" | "plaintext" | "json"required
    • data.wordCountinteger (int32)required
    • data.statusstringrequired

      active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.isFolderbooleanrequired
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Restore a file or folder from the trash

POST/v1/boxes/files/{id}/restore

boxes:writeTested with an API keyboxes_files_restore

Requires scope boxes:files:delete. Only the owner can restore. Restoring a folder also restores its children.

Parameters

  • idpath · string (uuid)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Share

Share a document with a user or by email

POST/v1/boxes/docs/{id}/share

boxes:writeTested with an API keyboxes_docs_documents_share

Requires scope boxes:docs:share and admin permission on the document. Provide exactly one of sharedWithUserId or email. If the email does not belong to an active user a pending invitation is returned instead of a share. Permission defaults to read.

Parameters

  • idpath · string (uuid)required

    Document ID

Request body application/json

  • sharedWithUserIdstring (uuid)

    Recipient user ID. The snake_case key shared_with_user_id is also accepted. Mutually exclusive with email.

  • emailstring

    Recipient email address (max 320 characters). Mutually exclusive with sharedWithUserId.

  • permissionstring

    Accepted values (case-insensitive): read, view, viewer; comment, commenter; write, edit, editor; admin, owner, manage. Stored as read, comment, write or admin. Defaults to read.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject | objectrequired

      A DocsShare, or a pending invitation when the email has no active account.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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 POST "https://os.one.ml/api/v1/boxes/docs/$ID/share" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Remove a share from a document

DELETE/v1/boxes/docs/{id}/share/{share_id}

boxes:writeTested with an API keyboxes_docs_documents_unshare

Requires scope boxes:docs:share and admin permission on the document.

Parameters

  • idpath · string (uuid)required

    Document ID

  • share_idpath · string (uuid)required

    Share ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.timestampstring (date-time)required
  • 401Missing or invalid credential
  • 403Required scope not granted
  • 404Document or share not found
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/docs/$ID/share/$SHARE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Share a file with a user or by email

POST/v1/boxes/files/{id}/share

boxes:writeTested with an API keyboxes_files_share

Requires scope boxes:files:share. Owner only. Provide exactly one of sharedWithUserId or email. If the email does not belong to an active user a pending invitation is created and returned instead of a share.

Parameters

  • idpath · string (uuid)required

    File ID

Request body application/json

  • sharedWithUserIdstring (uuid)

    Recipient user ID. The snake_case key shared_with_user_id is also accepted. Mutually exclusive with email.

  • emailstring

    Recipient email address (max 320 characters). Mutually exclusive with sharedWithUserId.

  • permissionstring

    Accepted values (case-insensitive): read, view, viewer; comment, commenter; write, edit, editor; admin, owner, manage. Stored as read, comment, write or admin. Defaults to read.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject | objectrequired

      A FilesShare, or a pending invitation when the email has no active account.

    • metaobject
    • meta.requestIdstringrequired
    • meta.timestampstring (date-time)required
  • 400Malformed JSON body
  • 401Missing or invalid credential
  • 403Scope not granted, or caller is not the file owner
  • 404Not found, or not visible to the caller
  • 422Validation failed (the backend returns 422 for validation errors)
  • 4xx 5xxThe error envelope.
curl -X POST "https://os.one.ml/api/v1/boxes/files/$ID/share" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Remove a share from a file

DELETE/v1/boxes/files/{id}/share/{share_id}

boxes:writeTested with an API keyboxes_files_unshare

Requires scope boxes:files:share. Owner only.

Parameters

  • idpath · string (uuid)required

    File ID

  • share_idpath · string (uuid)required

    Share ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.timestampstring (date-time)required
  • 401Missing or invalid credential
  • 403Scope not granted, or caller is not the file owner
  • 404File or share not found
  • 4xx 5xxThe error envelope.
curl -X DELETE "https://os.one.ml/api/v1/boxes/files/$ID/share/$SHARE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Share a spreadsheet with a user or email address

POST/v1/boxes/sheets/{id}/share

boxes:writeTested with an API keyboxes_sheets_spreadsheets_share

Requires scope boxes:sheets:write and admin permission. Provide exactly one of sharedWithUserId or email. An email with no active account creates a pending invitation instead of a share. Sharing with yourself is rejected.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

Request body application/json

  • sharedWithUserIdstring (uuid)

    Account user id. Snake_case alias shared_with_user_id is also accepted. Mutually exclusive with email.

  • emailstring

    Recipient email, lowercased and trimmed by the server. Mutually exclusive with sharedWithUserId. max length 320

  • permission"read" | "view" | "viewer" | "comment" | "commenter" | "write" | "edit" | "editor" | "admin" | "owner" | "manage"

    Defaults to read. Stored values are read, comment, write, admin.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject | objectrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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/share" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Remove a share from a spreadsheet

DELETE/v1/boxes/sheets/{id}/share/{share_id}

boxes:writeTested with an API keyboxes_sheets_spreadsheets_unshare

Requires scope boxes:sheets:write. The handler deletes by share_id only; it does not check permission on, or membership in, the spreadsheet in the path.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

  • share_idpath · string (uuid)required

    Share id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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/share/$SHARE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Shares

List shares of a document

GET/v1/boxes/docs/{id}/shares

boxes:readTested with an API keyboxes_docs_documents_shares_list

Requires scope boxes:docs:read. Not paginated.

Parameters

  • idpath · string (uuid)required

    Document ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].documentIdstring (uuid)required
    • data[].[].sharedWithUserIdstring (uuid)required
    • data[].[].permission"read" | "comment" | "write" | "admin"required
    • data[].[].createdBystring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List shares of a file

GET/v1/boxes/files/{id}/shares

boxes:readTested with an API keyboxes_files_shares_list

Requires scope boxes:files:read. Not paginated.

Parameters

  • idpath · string (uuid)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].fileIdstring (uuid)required
    • data[].[].sharedWithUserIdstring (uuid)required
    • data[].[].permission"read" | "comment" | "write" | "admin"required
    • data[].[].createdBystring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List shares of a spreadsheet

GET/v1/boxes/sheets/{id}/shares

boxes:readTested with an API keyboxes_sheets_spreadsheets_shares_list

Requires scope boxes:sheets:read. The handler does not check spreadsheet permission or existence.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].spreadsheetIdstring (uuid)required
    • data[].[].sharedWithUserIdstring (uuid)required
    • data[].[].permission"read" | "comment" | "write" | "admin"required
    • data[].[].createdBystring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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/$ID/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Versions

List version history of a document

GET/v1/boxes/docs/{id}/versions

boxes:readTested with an API keyboxes_docs_documents_versions_list

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)required

    Document 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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].documentIdstring (uuid)required
    • data[].[].versionNumberinteger (int32)required
    • data[].[].titlestringrequired
    • data[].[].contentstringrequired
    • data[].[].contentFormatstringrequired
    • data[].[].wordCountinteger (int32)required
    • data[].[].createdBystring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Files

List files and folders in a folder or at the root

GET/v1/boxes/files

boxes:readTested with an API keyboxes_files_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].namestringrequired
    • data[].[].mimeTypestringrequired

      application/x-directory for folders.

    • data[].[].sizeBytesinteger (int64)required
    • data[].[].checksumSha256string | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].statusstringrequired

      active or trashed in API responses.

    • data[].[].ownerIdstring (uuid)required
    • data[].[].storageProviderstringrequired

      Always l1fe-oceans.

    • data[].[].storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].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.

    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Get file or folder metadata

GET/v1/boxes/files/{id}

boxes:readTested with an API keyboxes_files_get

Requires scope boxes:files:read. Visible to the owner and to users the file is shared with.

Parameters

  • idpath · string (uuid)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Move a file or folder to the trash

DELETE/v1/boxes/files/{id}

boxes:writeTested with an API keyboxes_files_delete

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)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Rename or move a file or folder

PATCH/v1/boxes/files/{id}

boxes:writeTested with an API keyboxes_files_update

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)required

    File ID

Request body application/json

  • namestring

    min length 1 · max length 512

  • folderIdstring (uuid) | null

    Destination folder, or null for the top level. A folder cannot be moved into itself.

  • tagsobject

    Either 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
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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 '{}'

List your recent moves, renames and tag changes by batch

GET/v1/boxes/files/activity

boxes:readboxes_files_activity_list

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
    • successbooleanrequired
    • dataobjectrequired
    • data.batchesobject[]required
    • data.batches[].[].batchIdstring (uuid)required
    • data.batches[].[].actorstringrequired

      Who made the change, as the verified caller (never from the request).

    • data.batches[].[].atstring (date-time)required
    • data.batches[].[].undoOfstring (uuid) | null
    • data.batches[].[].taskIdstring | null
    • data.batches[].[].opsobject[]required
    • data.batches[].[].ops[].[].fileIdstring (uuid)required
    • data.batches[].[].ops[].[].fromFolderstring (uuid) | null
    • data.batches[].[].ops[].[].toFolderstring (uuid) | null
    • data.batches[].[].ops[].[].fromNamestringrequired
    • data.batches[].[].ops[].[].toNamestringrequired
    • data.batches[].[].ops[].[].tagsBeforestring[]required
    • data.batches[].[].ops[].[].tagsAfterstring[]required
    • data.batches[].[].ops[].[].undonebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Undo one batch of moves, renames and tag changes

POST/v1/boxes/files/activity/{batch_id}/undo

boxes:writeboxes_files_activity_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)required

    A batchId from organize or the activity

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.undoBatchIdstring (uuid)required
    • data.undoOfstring (uuid)required
    • data.opsobject[]required
    • data.ops[].[].fileIdstring (uuid)required
    • data.ops[].[].result"undone" | "conflict"required
    • data.ops[].[].codestring

      Why a conflict was left alone.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Create a board file of One's

POST/v1/boxes/files/board

Person onlyboxes_files_create_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)required

    The board. Its part filename must end .board.json and its content type be application/json; at most 4 MiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Erase every file of a data class in the person's own space, past the trash

POST/v1/boxes/files/erase-class

Person onlyboxes_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"required

    The data class to erase

Responses

  • 200This call's batch is erased
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.dataClassstringrequired

      The class erased

    • data.erasedintegerrequired

      Files erased by this call

    • data.morebooleanrequired

      True while files of the class are left; call again

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
  }'

Create a folder

POST/v1/boxes/files/folder

boxes:writeTested with an API keyboxes_files_folders_create

Requires scope boxes:files:upload. Folder names must be 1 to 512 characters without path separators.

Request body application/json

  • namestringrequired

    min length 1 · max length 512

  • folderIdstring (uuid)

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
  }'

Create a grid file of One's

POST/v1/boxes/files/grid

Person onlyboxes_files_create_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)required

    The grid. Its part filename must end .grid.json and its content type be application/json; at most 10 MiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Apply a batch of folder, move, rename and tag changes as one

POST/v1/boxes/files/organize

boxes:writeboxes_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[]required
  • ops[].[].op"create_folder" | "move" | "rename" | "tag"required
  • ops[].[].refstring

    min length 1 · max length 64

  • ops[].[].namestring

    min length 1 · max length 512

  • ops[].[].fileIdstring (uuid)
  • ops[].[].folderIdstring (uuid) | null
  • ops[].[].folderRefstring

    min length 1 · max length 64

  • ops[].[].tagsobject

    Either 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
    • successbooleanrequired
    • dataobjectrequired
    • data.batchIdstring (uuid)required
    • data.recordedChangesintegerrequired

      The moves, renames and tag changes the batch recorded (a new folder is not one).

    • data.undoablebooleanrequired
    • data.opsobject[]required
    • data.ops[].[].indexintegerrequired
    • data.ops[].[].opstringrequired
    • data.ops[].[].fileIdstring (uuid)required
    • data.ops[].[].resultstringrequired

      applied

    • data.ops[].[].fileobject
    • data.ops[].[].file.idstring (uuid)required
    • data.ops[].[].file.tenantIdstring (uuid)required
    • data.ops[].[].file.folderIdstring (uuid) | nullrequired
    • data.ops[].[].file.namestringrequired
    • data.ops[].[].file.mimeTypestringrequired

      application/x-directory for folders.

    • data.ops[].[].file.sizeBytesinteger (int64)required
    • data.ops[].[].file.checksumSha256string | nullrequired
    • data.ops[].[].file.isFolderbooleanrequired
    • data.ops[].[].file.statusstringrequired

      active or trashed in API responses.

    • data.ops[].[].file.ownerIdstring (uuid)required
    • data.ops[].[].file.storageProviderstringrequired

      Always l1fe-oceans.

    • data.ops[].[].file.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.ops[].[].file.createdAtstring (date-time)required
    • data.ops[].[].file.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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"
      }
    ]
  }'

Create One's places card (the person's Me card)

POST/v1/boxes/files/places-card

boxes:writeboxes_files_create_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)required

    The card. Its part filename must be Me.vcf and its content type text/vcard; at most 64 KiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

List recently updated files

GET/v1/boxes/files/recent

boxes:readTested with an API keyboxes_files_recent_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].namestringrequired
    • data[].[].mimeTypestringrequired

      application/x-directory for folders.

    • data[].[].sizeBytesinteger (int64)required
    • data[].[].checksumSha256string | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].statusstringrequired

      active or trashed in API responses.

    • data[].[].ownerIdstring (uuid)required
    • data[].[].storageProviderstringrequired

      Always l1fe-oceans.

    • data[].[].storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].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.

    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Store the Rig step card's picture in the person's own space

POST/v1/boxes/files/rig-step-picture

Person onlyboxes_files_create_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)required

    The picture, a PNG of at most 120 KB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Search files by name, the words in the body

POST/v1/boxes/files/search

boxes:writeboxes_files_search_post

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

  • qstring

    Search term, 1 to 200 characters. Required unless a filter (kind, tag, folder_id, source_type) is given. min length 1 · max length 200

  • mime_typestring

    Optional MIME type filter.

  • kind"folder" | "doc" | "sheet" | "deck" | "pdf" | "image" | "video" | "audio" | "archive" | "other"

    What a file is, from its type.

  • tagstring

    Only 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 1

  • limitinteger (int64)

    Page size, 1 to 100. min 1 · max 100 · default 20

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].namestringrequired
    • data[].[].mimeTypestringrequired

      application/x-directory for folders.

    • data[].[].sizeBytesinteger (int64)required
    • data[].[].checksumSha256string | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].statusstringrequired

      active or trashed in API responses.

    • data[].[].ownerIdstring (uuid)required
    • data[].[].storageProviderstringrequired

      Always l1fe-oceans.

    • data[].[].storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].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.

    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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 '{}'

List files shared with the caller

GET/v1/boxes/files/shared-with-me

boxes:readTested with an API keyboxes_files_shared_with_me_list

Requires scope boxes:files: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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].namestringrequired
    • data[].[].mimeTypestringrequired

      application/x-directory for folders.

    • data[].[].sizeBytesinteger (int64)required
    • data[].[].checksumSha256string | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].statusstringrequired

      active or trashed in API responses.

    • data[].[].ownerIdstring (uuid)required
    • data[].[].storageProviderstringrequired

      Always l1fe-oceans.

    • data[].[].storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].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.

    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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/shared-with-me" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List trashed files

GET/v1/boxes/files/trash

boxes:readTested with an API keyboxes_files_trash_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].folderIdstring (uuid) | nullrequired
    • data[].[].namestringrequired
    • data[].[].mimeTypestringrequired

      application/x-directory for folders.

    • data[].[].sizeBytesinteger (int64)required
    • data[].[].checksumSha256string | nullrequired
    • data[].[].isFolderbooleanrequired
    • data[].[].statusstringrequired

      active or trashed in API responses.

    • data[].[].ownerIdstring (uuid)required
    • data[].[].storageProviderstringrequired

      Always l1fe-oceans.

    • data[].[].storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].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.

    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Read your folders as a tree with counts

GET/v1/boxes/files/tree

boxes:readboxes_files_tree_get

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
    • successbooleanrequired
    • dataobjectrequired
    • data.folderIdstring (uuid) | nullrequired
    • data.depthintegerrequired
    • data.foldersobject[]required
    • data.folders[].[].idstring (uuid)required
    • data.folders[].[].namestringrequired
    • data.folders[].[].folderCountinteger (int64)required

      Folders directly inside.

    • data.folders[].[].fileCountinteger (int64)required

      Files directly inside.

    • data.folders[].[].childrenobject[]required
    • data.truncatedbooleanrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Upload a file

POST/v1/boxes/files/upload

boxes:writeTested with an API keyboxes_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)required

    File 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
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Read your own storage use and quota

GET/v1/boxes/files/usage

boxes:readboxes_files_usage_get

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
    • successbooleanrequired
    • dataobjectrequired
    • data.ownerstring | nullrequired

      The person (h_...) on a One session; null for any other caller.

    • data.metersobject[]required
    • data.meters[].[].meterstringrequired
    • data.meters[].[].quantityinteger (int64)required
    • data.meters[].[].unitstringrequired
    • data.meters[].[].windowstringrequired
    • data.quotaobjectrequired
    • data.quota.bytesinteger (int64)required
    • data.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"

Board

Replace a board file of One's in place

PUT/v1/boxes/files/{id}/board

Person onlyboxes_files_replace_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 · integer

    Replace only if the file is still at this version; 409 otherwise.

  • idpath · string (uuid)required

    File ID

Request body multipart/form-data

  • filestring (binary)required

    The board. Its part filename must end .board.json and its content type be application/json; at most 4 MiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Content

Replace a file's bytes in place

PUT/v1/boxes/files/{id}/content

boxes:writeboxes_files_replace_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)required

    File ID

Request body multipart/form-data

  • filestring (binary)required

    The new bytes. The part content type becomes the file's MIME type (default application/octet-stream).

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Download

Download file contents

GET/v1/boxes/files/{id}/download

boxes:readTested with an API keyboxes_files_download

Requires scope boxes:files:read. The whole object is buffered in memory by the service.

Parameters

  • idpath · string (uuid)required

    File 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"

Grid

Replace a grid file of One's in place

PUT/v1/boxes/files/{id}/grid

Person onlyboxes_files_replace_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 · integer

    Replace only if the file is still at this version; 409 otherwise.

  • idpath · string (uuid)required

    File ID

Request body multipart/form-data

  • filestring (binary)required

    The grid. Its part filename must end .grid.json and its content type be application/json; at most 10 MiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Path

Read where a file or folder sits

GET/v1/boxes/files/{id}/path

boxes:readboxes_files_path_get

The folders above the file, top first, through the folders the caller may open only. Requires scope boxes:files:read.

Parameters

  • idpath · string (uuid)required

    File ID

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      The file's id and name and the folders above it, top first.

    • data.fileIdstring (uuid)required
    • data.namestringrequired
    • data.isFolderbooleanrequired
    • data.breadcrumbsobject[]required

      The folders above it that the caller may open, top first.

    • data.breadcrumbs[].[].idstring (uuid)required
    • data.breadcrumbs[].[].namestringrequired
    • metaobject
    • meta.requestIdstringrequired
    • meta.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"

Places card

Replace One's places card in place

PUT/v1/boxes/files/{id}/places-card

boxes:writeboxes_files_replace_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)required

    File ID

Request body multipart/form-data

  • filestring (binary)required

    The card. Its part filename must be Me.vcf and its content type text/vcard; at most 64 KiB.

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.folderIdstring (uuid) | nullrequired
    • data.namestringrequired
    • data.mimeTypestringrequired

      application/x-directory for folders.

    • data.sizeBytesinteger (int64)required
    • data.checksumSha256string | nullrequired
    • data.isFolderbooleanrequired
    • data.statusstringrequired

      active or trashed in API responses.

    • data.ownerIdstring (uuid)required
    • data.storageProviderstringrequired

      Always l1fe-oceans.

    • data.storageRootstringrequired

      oceans://tenants/{tenantId}/files

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • data.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.

    • metaobject
    • meta.requestIdstringrequired
    • meta.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.bin

Rig step picture

Erase one Rig step card picture of the person's own

POST/v1/boxes/files/{id}/rig-step-picture/erase

Person onlyboxes_files_erase_rig_step_picture

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

Viewer tags

Set your own tags on a file shared with you

PUT/v1/boxes/files/{id}/viewer-tags

boxes:writeboxes_files_viewer_tags_set

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)required

    File ID

Request body application/json

  • setstring[]
  • addstring[]
  • removestring[]

Responses

  • 200OK
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.fileIdstring (uuid)required
    • data.viewerTagsstring[]required
    • metaobject
    • meta.requestIdstringrequired
    • meta.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 '{}'

Identity

Get the calling user

GET/v1/boxes/identity/me

boxes:readTested with an API keyboxes_identity_me_get

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.kind"human" | "agent"required
    • data.emailstringrequired
    • data.displayNamestringrequired
    • data.agentType"autonomous" | "assistant" | "department" | "integration" | null
    • data.agentDidstring | null
    • data.avatarUrlstring | null
    • data.status"active" | "suspended" | "deprovisioned"required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

Get the caller's tenant

GET/v1/boxes/identity/tenants/current

boxes:readTested with an API keyboxes_identity_tenants_current_get

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.namestringrequired
    • data.slugstringrequired
    • data.domainstring | null
    • data.plan"free" | "starter" | "business" | "enterprise"required
    • data.status"active" | "suspended" | "cancelled"required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

List users in the caller's tenant

GET/v1/boxes/identity/users

boxes:readTested with an API keyboxes_identity_users_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].kind"human" | "agent"required
    • data[].[].emailstringrequired
    • data[].[].displayNamestringrequired
    • data[].[].agentType"autonomous" | "assistant" | "department" | "integration" | null
    • data[].[].agentDidstring | null
    • data[].[].avatarUrlstring | null
    • data[].[].status"active" | "suspended" | "deprovisioned"required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

Get a user by id

GET/v1/boxes/identity/users/{id}

boxes:readTested with an API keyboxes_identity_users_get

The handler does not filter by tenant.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.kind"human" | "agent"required
    • data.emailstringrequired
    • data.displayNamestringrequired
    • data.agentType"autonomous" | "assistant" | "department" | "integration" | null
    • data.agentDidstring | null
    • data.avatarUrlstring | null
    • data.status"active" | "suspended" | "deprovisioned"required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

List active workspaces in the tenant

GET/v1/boxes/identity/workspaces

boxes:readTested with an API keyboxes_identity_workspaces_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].slugstringrequired
    • data[].[].statusstringrequired
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

Get a workspace

GET/v1/boxes/identity/workspaces/{id}

boxes:readTested with an API keyboxes_identity_workspaces_get

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.namestringrequired
    • data.slugstringrequired
    • data.statusstringrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

List workspace members

GET/v1/boxes/identity/workspaces/{id}/members

boxes:readTested with an API keyboxes_identity_workspaces_members_list

Requires workspace membership, or the identity read or manage scope.

Parameters

  • idpath · string (uuid)required

    Resource UUID.

Responses

  • 200Success.
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].workspaceIdstring (uuid)required
    • data[].[].userIdstring (uuid)required
    • data[].[].rolestringrequired
    • data[].[].joinedAtstring (date-time)required
    • metaobject

      Response metadata. The identity service passes an empty request id.

    • meta.requestIdstring
    • meta.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"

Mail

List mail addresses for the caller

GET/v1/boxes/mail/addresses

boxes:readTested with an API keyboxes_mail_addresses_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].mailboxIdstring (uuid)required
    • data[].[].addressstringrequired
    • data[].[].addressKindstringrequired

      primary, or the stored address kind

    • data[].[].isPrimarybooleanrequired
    • data[].[].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"

Reserve a mail address on a verified custom domain

POST/v1/boxes/mail/addresses

boxes:writeAPI keys refusedboxes_mail_addresses_create

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

  • localPartstringrequired

    Lower-cased; letters, digits and . _ % + -; must start and end with a letter or digit max length 64

  • displayNamestring | null
  • isPrimaryboolean

    Also accepted as makePrimary default false

Responses

  • 201Address reserved
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.localPartstringrequired
    • data.domainstringrequired
    • data.domainIdstring | null (uuid)
    • data.domainKind"custom" | "personal"required
    • data.addressstringrequired
    • data.emailAddressstringrequired
    • data.displayNamestring | null
    • data.isPrimarybooleanrequired
    • data.statusstringrequired
    • data.createdAtstring (date-time)required
    • data.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"
  }'

List recent agent mail activity for the tenant

GET/v1/boxes/mail/agent/activities

boxes:readTested with an API keyboxes_mail_agent_activities_list

Parameters

  • limitquery · integer (int64)

    Values outside 1-50 are clamped

Responses

  • 200Activities
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].agentIdstring (uuid)required
    • data[].[].agentNamestringrequired
    • data[].[].actionType"reply_drafted" | "message_read"required
    • data[].[].descriptionstringrequired
    • data[].[].mailboxEmailstringrequired
    • data[].[].relatedMessageIdstring | null (uuid)
    • data[].[].relatedSubjectstring | null
    • data[].[].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"

Send one email per recipient with variable substitution

POST/v1/boxes/mail/agent/batch-send

boxes:writeTested with an API keyIdempotency-Key optionalboxes_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[]required
  • recipients[].[].tostring (email)required
  • recipients[].[].subjectstring | null

    max length 998

  • recipients[].[].bodyPlainstring | null
  • recipients[].[].bodyHtmlstring | null
  • recipients[].[].variablesobject | null

    Values for {{key}} placeholders in subject and bodies

  • defaultsobject | null

Responses

  • 201Batch processed
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.totalintegerrequired
    • data.sentintegerrequired
    • data.storedintegerrequired
    • data.failedintegerrequired
    • data.queuedinteger

      Present only when the resend transport is active

    • data.idempotencyKeystring (uuid)

      Present only when the resend transport is active

    • data.resultsobject[]required
    • data.results[].[].tostringrequired
    • data.results[].[].statusstringrequired

      sent, stored, queued or failed

    • data.results[].[].errorstring | null
  • 202Batch queued (resend transport)
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.totalintegerrequired
    • data.sentintegerrequired
    • data.storedintegerrequired
    • data.failedintegerrequired
    • data.queuedinteger

      Present only when the resend transport is active

    • data.idempotencyKeystring (uuid)

      Present only when the resend transport is active

    • data.resultsobject[]required
    • data.results[].[].tostringrequired
    • data.results[].[].statusstringrequired

      sent, 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"
      }
    ]
  }'

List per-message agent processing state

GET/v1/boxes/mail/agent/state

boxes:readTested with an API keyboxes_mail_agent_state_list

Agent principals only.

Parameters

  • lifecycleStatequery · string
  • requiresResponsequery · boolean
  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1-100 are clamped

Responses

  • 200Agent states page
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].messageIdstring (uuid)required
    • data[].[].agentIdstring (uuid)required
    • data[].[].lifecycleStatestringrequired
    • data[].[].requiresResponseboolean | null
    • data[].[].responseUrgencystring | null
    • data[].[].responseDraftedboolean | null
    • data[].[].confidencenumber | null (float)
    • data[].[].tagsstring[]required
    • data[].[].metadataanyrequired

      Free-form JSON object

    • data[].[].processedAtstring | null (date-time)
    • data[].[].respondedAtstring | null (date-time)
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject
    • meta.totalinteger (int64)required
    • meta.pageinteger (int64)required
    • meta.limitinteger (int64)required
    • meta.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"

Update agent processing state for a message

PATCH/v1/boxes/mail/agent/state/{messageId}

boxes:writeTested with an API keyboxes_mail_agent_state_update

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

  • lifecycleStatestring

    Free-form string; the handler does not restrict values

  • requiresResponseboolean
  • responseUrgencystring
  • responseDraftedboolean
  • confidencenumber (float)
  • tagsstring[]
  • metadataany

    Free-form JSON

Responses

  • 200Updated state
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.messageIdstring (uuid)required
    • data.agentIdstring (uuid)required
    • data.lifecycleStatestringrequired
    • data.requiresResponseboolean | null
    • data.responseUrgencystring | null
    • data.responseDraftedboolean | null
    • data.confidencenumber | null (float)
    • data.tagsstring[]required
    • data.metadataanyrequired

      Free-form JSON object

    • data.processedAtstring | null (date-time)
    • data.respondedAtstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.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 '{}'

List mail webhook subscriptions

GET/v1/boxes/mail/agent/webhooks

boxes:readTested with an API keyboxes_mail_agent_webhooks_list

Agent principals only. Secrets are masked to a preview.

Responses

  • 200Webhooks
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].mailboxIdstring (uuid)required
    • data[].[].urlstringrequired
    • data[].[].filtersobjectrequired
    • data[].[].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.minPrioritynumber

      min 0 · max 100

    • data[].[].filters.excludeAutomatedboolean
    • data[].[].batchSizeinteger (int32)required
    • data[].[].batchIntervalMsinteger (int32)required
    • data[].[].isActivebooleanrequired
    • data[].[].lastDeliveryAtstring | null (date-time)
    • data[].[].failureCountinteger (int32)required
    • data[].[].signingobjectrequired
    • data[].[].signing.algorithmstringrequired
    • data[].[].signing.signatureHeaderstringrequired
    • data[].[].signing.timestampHeaderstringrequired
    • data[].[].signing.webhookIdHeaderstringrequired
    • data[].[].signing.signedPayloadstringrequired
    • data[].[].signing.signingSecretstring

      Returned only in the create response

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • data[].[].signingSecretPreviewstringrequired

      First 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"

Create a mail webhook subscription

POST/v1/boxes/mail/agent/webhooks

boxes:writeTested with an API keyboxes_mail_agent_webhooks_create

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)required

    Must be https

  • filtersobject
  • filters.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.minPrioritynumber

    min 0 · max 100

  • filters.excludeAutomatedboolean
  • batchSizeinteger

    min 1 · max 1000 · default 1

  • batchIntervalMsinteger

    min 0 · max 300000 · default 0

Responses

  • 201Webhook created
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Create response. signing.signingSecret is present only here.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.urlstringrequired
    • data.filtersobjectrequired
    • data.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.minPrioritynumber

      min 0 · max 100

    • data.filters.excludeAutomatedboolean
    • data.batchSizeinteger (int32)required
    • data.batchIntervalMsinteger (int32)required
    • data.isActivebooleanrequired
    • data.lastDeliveryAtstring | null (date-time)
    • data.failureCountinteger (int32)required
    • data.signingobjectrequired
    • data.signing.algorithmstringrequired
    • data.signing.signatureHeaderstringrequired
    • data.signing.timestampHeaderstringrequired
    • data.signing.webhookIdHeaderstringrequired
    • data.signing.signedPayloadstringrequired
    • data.signing.signingSecretstring

      Returned only in the create response

    • data.createdAtstring (date-time)required
    • data.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"
  }'

Delete a mail webhook subscription

DELETE/v1/boxes/mail/agent/webhooks/{id}

boxes:writeTested with an API keyboxes_mail_agent_webhooks_delete

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"

List the project's agent mailboxes

GET/v1/boxes/mail/agents

boxes:readTested with an API keyboxes_mail_agents_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].agentIdstringrequired
    • data[].[].agentDidstringrequired

      did:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID

    • data[].[].defaultbooleanrequired

      True for One's default mailbox

    • data[].[].displayNamestringrequired
    • data[].[].mailboxIdstring (uuid)required
    • data[].[].addressstringrequired

      The mailbox's primary address

    • data[].[].status"active" | "deleted"required
    • data[].[].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"

Create an agent's mailbox

POST/v1/boxes/mail/agents

boxes:writeTested with an API keyboxes_mail_agents_create

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})$

  • displayNamestring

    Shown as the sender name; defaults to "One" or "Agent" max length 80

Responses

  • 200The agent already has a mailbox
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.agentIdstringrequired
    • data.agentDidstringrequired

      did:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID

    • data.defaultbooleanrequired

      True for One's default mailbox

    • data.displayNamestringrequired
    • data.mailboxIdstring (uuid)required
    • data.addressstringrequired

      The mailbox's primary address

    • data.status"active" | "deleted"required
    • data.createdAtstring (date-time)required
  • 201Mailbox created or restored
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.agentIdstringrequired
    • data.agentDidstringrequired

      did:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID

    • data.defaultbooleanrequired

      True for One's default mailbox

    • data.displayNamestringrequired
    • data.mailboxIdstring (uuid)required
    • data.addressstringrequired

      The mailbox's primary address

    • data.status"active" | "deleted"required
    • data.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"
  }'

Get an agent's mailbox

GET/v1/boxes/mail/agents/{agentId}

boxes:readTested with an API keyboxes_mail_agents_get

Needs boxes:read. For "one" the default mailbox is created if missing, so it never answers 404.

Parameters

  • agentIdpath · stringrequired

    The 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
    • successbooleanrequired
    • dataobjectrequired
    • data.agentIdstringrequired
    • data.agentDidstringrequired

      did:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID

    • data.defaultbooleanrequired

      True for One's default mailbox

    • data.displayNamestringrequired
    • data.mailboxIdstring (uuid)required
    • data.addressstringrequired

      The mailbox's primary address

    • data.status"active" | "deleted"required
    • data.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"

Delete an agent's mailbox

DELETE/v1/boxes/mail/agents/{agentId}

boxes:writeTested with an API keyboxes_mail_agents_delete

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 · stringrequired

    The 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
    • successbooleanrequired
    • dataobjectrequired
    • data.agentIdstringrequired
    • data.agentDidstringrequired

      did:oas:one:agent:one for One, did:oas:oneos:agent:<ulid> for an OpenAgentID

    • data.defaultbooleanrequired

      True for One's default mailbox

    • data.displayNamestringrequired
    • data.mailboxIdstring (uuid)required
    • data.addressstringrequired

      The mailbox's primary address

    • data.status"active" | "deleted"required
    • data.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"

As the agent, list messages in a folder

GET/v1/boxes/mail/agents/{agentId}/inbox

boxes:readTested with an API keyboxes_mail_agents_inbox_list

Messages in a folder of the agent's own mailbox, newest first. Needs boxes:read.

Parameters

  • agentIdpath · stringrequired

    The agent identity that owns the mailbox. "one" is One, the default agent in every project; a_<ULID> is an OpenAgentID enrolled at Auth.

  • folderquery · string

    Folder name; defaults to inbox

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1-100 are clamped

  • unreadOnlyquery · boolean

    Only unread messages

  • starredquery · boolean

    Only starred messages

Responses

  • 200Messages page
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].mailboxIdstring (uuid)required
    • data[].[].threadIdstring | null (uuid)
    • data[].[].messageIdstringrequired

      RFC 5322 Message-ID

    • data[].[].inReplyTostring | null
    • data[].[].referencesstring[]required
    • data[].[].fromAddressstringrequired
    • data[].[].fromNamestring | null
    • data[].[].toAddressesobject[]required
    • data[].[].toAddresses[].[].addressstringrequired
    • data[].[].toAddresses[].[].namestring | null
    • data[].[].ccAddressesobject[]required
    • data[].[].ccAddresses[].[].addressstringrequired
    • data[].[].ccAddresses[].[].namestring | null
    • data[].[].bccAddressesobject[]required
    • data[].[].bccAddresses[].[].addressstringrequired
    • data[].[].bccAddresses[].[].namestring | null
    • data[].[].subjectstringrequired
    • data[].[].bodyPlainstring | null
    • data[].[].bodyHtmlstring | null
    • data[].[].snippetstring | null
    • data[].[].folderstringrequired
    • data[].[].isReadbooleanrequired
    • data[].[].isStarredbooleanrequired
    • data[].[].isDraftbooleanrequired
    • data[].[].spamScorenumber | null (float)
    • data[].[].priorityScorenumber | null (float)
    • data[].[].hasAttachmentsbooleanrequired
    • data[].[].rawSizeinteger | null (int32)
    • data[].[].receivedAtstring (date-time)required
    • data[].[].sentAtstring | null (date-time)
    • data[].[].snoozedUntilstring | null (date-time)
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject
    • meta.totalinteger (int64)required
    • meta.pageinteger (int64)required
    • meta.limitinteger (int64)required
    • meta.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"

As the agent, get a message with its labels

GET/v1/boxes/mail/agents/{agentId}/messages/{id}

boxes:readTested with an API keyboxes_mail_agents_messages_get

A message of the agent's own mailbox. Needs boxes:read.

Parameters

  • agentIdpath · stringrequired

    The 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
    • successbooleanrequired
    • dataobjectrequired
    • data.messageobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.message.idstring (uuid)required
    • data.message.mailboxIdstring (uuid)required
    • data.message.threadIdstring | null (uuid)
    • data.message.messageIdstringrequired

      RFC 5322 Message-ID

    • data.message.inReplyTostring | null
    • data.message.referencesstring[]required
    • data.message.fromAddressstringrequired
    • data.message.fromNamestring | null
    • data.message.toAddressesobject[]required
    • data.message.toAddresses[].[].addressstringrequired
    • data.message.toAddresses[].[].namestring | null
    • data.message.ccAddressesobject[]required
    • data.message.ccAddresses[].[].addressstringrequired
    • data.message.ccAddresses[].[].namestring | null
    • data.message.bccAddressesobject[]required
    • data.message.bccAddresses[].[].addressstringrequired
    • data.message.bccAddresses[].[].namestring | null
    • data.message.subjectstringrequired
    • data.message.bodyPlainstring | null
    • data.message.bodyHtmlstring | null
    • data.message.snippetstring | null
    • data.message.folderstringrequired
    • data.message.isReadbooleanrequired
    • data.message.isStarredbooleanrequired
    • data.message.isDraftbooleanrequired
    • data.message.spamScorenumber | null (float)
    • data.message.priorityScorenumber | null (float)
    • data.message.hasAttachmentsbooleanrequired
    • data.message.rawSizeinteger | null (int32)
    • data.message.receivedAtstring (date-time)required
    • data.message.sentAtstring | null (date-time)
    • data.message.snoozedUntilstring | null (date-time)
    • data.message.createdAtstring (date-time)required
    • data.message.updatedAtstring (date-time)required
    • data.labelsobject[]required
    • data.labels[].[].idstring (uuid)required
    • data.labels[].[].mailboxIdstring (uuid)required
    • data.labels[].[].namestringrequired
    • data.labels[].[].colorstring | null
    • data.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"

As the agent, send an email or save a draft

POST/v1/boxes/mail/agents/{agentId}/send

boxes:writeTested with an API keyIdempotency-Key optionalboxes_mail_agents_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 · stringrequired

    The 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[]required
  • to[].[].addressstringrequired
  • to[].[].namestring | null
  • fromMailboxIdstring | null (uuid)
  • ccobject[]
  • cc[].[].addressstringrequired
  • cc[].[].namestring | null
  • bccobject[]
  • bcc[].[].addressstringrequired
  • bcc[].[].namestring | null
  • subjectstringrequired

    max length 998

  • bodyPlainstring | null
  • bodyHtmlstring | null
  • inReplyTostring | null
  • isDraftboolean

    default false

  • scheduledAtstring | null

    Accepted by the request struct but not read by the send handler

  • attachmentIdsstring (uuid)[]

Responses

  • 200Idempotent replay of an earlier send
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.threadIdstring | null (uuid)
    • data.messageIdstringrequired

      RFC 5322 Message-ID

    • data.inReplyTostring | null
    • data.referencesstring[]required
    • data.fromAddressstringrequired
    • data.fromNamestring | null
    • data.toAddressesobject[]required
    • data.toAddresses[].[].addressstringrequired
    • data.toAddresses[].[].namestring | null
    • data.ccAddressesobject[]required
    • data.ccAddresses[].[].addressstringrequired
    • data.ccAddresses[].[].namestring | null
    • data.bccAddressesobject[]required
    • data.bccAddresses[].[].addressstringrequired
    • data.bccAddresses[].[].namestring | null
    • data.subjectstringrequired
    • data.bodyPlainstring | null
    • data.bodyHtmlstring | null
    • data.snippetstring | null
    • data.folderstringrequired
    • data.isReadbooleanrequired
    • data.isStarredbooleanrequired
    • data.isDraftbooleanrequired
    • data.spamScorenumber | null (float)
    • data.priorityScorenumber | null (float)
    • data.hasAttachmentsbooleanrequired
    • data.rawSizeinteger | null (int32)
    • data.receivedAtstring (date-time)required
    • data.sentAtstring | null (date-time)
    • data.snoozedUntilstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 201Message created
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.threadIdstring | null (uuid)
    • data.messageIdstringrequired

      RFC 5322 Message-ID

    • data.inReplyTostring | null
    • data.referencesstring[]required
    • data.fromAddressstringrequired
    • data.fromNamestring | null
    • data.toAddressesobject[]required
    • data.toAddresses[].[].addressstringrequired
    • data.toAddresses[].[].namestring | null
    • data.ccAddressesobject[]required
    • data.ccAddresses[].[].addressstringrequired
    • data.ccAddresses[].[].namestring | null
    • data.bccAddressesobject[]required
    • data.bccAddresses[].[].addressstringrequired
    • data.bccAddresses[].[].namestring | null
    • data.subjectstringrequired
    • data.bodyPlainstring | null
    • data.bodyHtmlstring | null
    • data.snippetstring | null
    • data.folderstringrequired
    • data.isReadbooleanrequired
    • data.isStarredbooleanrequired
    • data.isDraftbooleanrequired
    • data.spamScorenumber | null (float)
    • data.priorityScorenumber | null (float)
    • data.hasAttachmentsbooleanrequired
    • data.rawSizeinteger | null (int32)
    • data.receivedAtstring (date-time)required
    • data.sentAtstring | null (date-time)
    • data.snoozedUntilstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.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"
  }'

As the agent, list conversation threads

GET/v1/boxes/mail/agents/{agentId}/threads

boxes:readTested with an API keyboxes_mail_agents_threads_list

Threads of the agent's own mailbox, newest activity first. Needs boxes:read.

Parameters

  • agentIdpath · stringrequired

    The 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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].subjectstringrequired
    • data[].[].participantsobject[]required
    • data[].[].participants[].[].namestringrequired
    • data[].[].participants[].[].emailstringrequired
    • data[].[].participants[].[].isAgentbooleanrequired
    • data[].[].participants[].[].agentDidstring | null
    • data[].[].participants[].[].agentTypestring | null
    • data[].[].lastMessageobjectrequired
    • data[].[].lastMessage.idstring (uuid)required
    • data[].[].lastMessage.threadIdstring (uuid)required
    • data[].[].lastMessage.messageIdstringrequired
    • data[].[].lastMessage.fromobjectrequired
    • data[].[].lastMessage.from.namestringrequired
    • data[].[].lastMessage.from.emailstringrequired
    • data[].[].lastMessage.from.isAgentbooleanrequired
    • data[].[].lastMessage.from.agentDidstring | null
    • data[].[].lastMessage.from.agentTypestring | null
    • data[].[].lastMessage.toobject[]required
    • data[].[].lastMessage.to[].[].namestringrequired
    • data[].[].lastMessage.to[].[].emailstringrequired
    • data[].[].lastMessage.to[].[].isAgentbooleanrequired
    • data[].[].lastMessage.to[].[].agentDidstring | null
    • data[].[].lastMessage.to[].[].agentTypestring | null
    • data[].[].lastMessage.ccobject[]required
    • data[].[].lastMessage.cc[].[].namestringrequired
    • data[].[].lastMessage.cc[].[].emailstringrequired
    • data[].[].lastMessage.cc[].[].isAgentbooleanrequired
    • data[].[].lastMessage.cc[].[].agentDidstring | null
    • data[].[].lastMessage.cc[].[].agentTypestring | null
    • data[].[].lastMessage.bccobject[]required
    • data[].[].lastMessage.bcc[].[].namestringrequired
    • data[].[].lastMessage.bcc[].[].emailstringrequired
    • data[].[].lastMessage.bcc[].[].isAgentbooleanrequired
    • data[].[].lastMessage.bcc[].[].agentDidstring | null
    • data[].[].lastMessage.bcc[].[].agentTypestring | null
    • data[].[].lastMessage.subjectstringrequired
    • data[].[].lastMessage.snippetstringrequired
    • data[].[].lastMessage.bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data[].[].lastMessage.bodyPlainstring | null
    • data[].[].lastMessage.sentAtstring (date-time)required
    • data[].[].lastMessage.receivedAtstring (date-time)required
    • data[].[].lastMessage.isReadbooleanrequired
    • data[].[].lastMessage.isStarredbooleanrequired
    • data[].[].lastMessage.isDraftbooleanrequired
    • data[].[].lastMessage.folderstringrequired
    • data[].[].lastMessage.labelsstring[]required
    • data[].[].lastMessage.hasAttachmentsbooleanrequired
    • data[].[].lastMessage.spamScorenumber | null (float)
    • data[].[].lastMessage.priorityScorenumber | null (float)
    • data[].[].lastMessage.snoozedUntilstring | null (date-time)
    • data[].[].messageCountinteger (int32)required
    • data[].[].isReadbooleanrequired
    • data[].[].isStarredbooleanrequired
    • data[].[].labelsstring[]required
    • data[].[].hasAgentActivitybooleanrequired
    • data[].[].lastMessageAtstring (date-time)required
    • data[].[].snippetstring | null
    • metaobject
    • meta.totalinteger (int64)required
    • meta.pageinteger (int64)required
    • meta.limitinteger (int64)required
    • meta.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"

As the agent, get a thread with all its messages

GET/v1/boxes/mail/agents/{agentId}/threads/{id}

boxes:readTested with an API keyboxes_mail_agents_threads_get

A thread of the agent's own mailbox. Needs boxes:read.

Parameters

  • agentIdpath · stringrequired

    The 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
    • successbooleanrequired
    • dataobjectrequired
    • data.threadobjectrequired
    • data.thread.idstring (uuid)required
    • data.thread.subjectstringrequired
    • data.thread.participantsobject[]required
    • data.thread.participants[].[].namestringrequired
    • data.thread.participants[].[].emailstringrequired
    • data.thread.participants[].[].isAgentbooleanrequired
    • data.thread.participants[].[].agentDidstring | null
    • data.thread.participants[].[].agentTypestring | null
    • data.thread.lastMessageobjectrequired
    • data.thread.lastMessage.idstring (uuid)required
    • data.thread.lastMessage.threadIdstring (uuid)required
    • data.thread.lastMessage.messageIdstringrequired
    • data.thread.lastMessage.fromobjectrequired
    • data.thread.lastMessage.from.namestringrequired
    • data.thread.lastMessage.from.emailstringrequired
    • data.thread.lastMessage.from.isAgentbooleanrequired
    • data.thread.lastMessage.from.agentDidstring | null
    • data.thread.lastMessage.from.agentTypestring | null
    • data.thread.lastMessage.toobject[]required
    • data.thread.lastMessage.to[].[].namestringrequired
    • data.thread.lastMessage.to[].[].emailstringrequired
    • data.thread.lastMessage.to[].[].isAgentbooleanrequired
    • data.thread.lastMessage.to[].[].agentDidstring | null
    • data.thread.lastMessage.to[].[].agentTypestring | null
    • data.thread.lastMessage.ccobject[]required
    • data.thread.lastMessage.cc[].[].namestringrequired
    • data.thread.lastMessage.cc[].[].emailstringrequired
    • data.thread.lastMessage.cc[].[].isAgentbooleanrequired
    • data.thread.lastMessage.cc[].[].agentDidstring | null
    • data.thread.lastMessage.cc[].[].agentTypestring | null
    • data.thread.lastMessage.bccobject[]required
    • data.thread.lastMessage.bcc[].[].namestringrequired
    • data.thread.lastMessage.bcc[].[].emailstringrequired
    • data.thread.lastMessage.bcc[].[].isAgentbooleanrequired
    • data.thread.lastMessage.bcc[].[].agentDidstring | null
    • data.thread.lastMessage.bcc[].[].agentTypestring | null
    • data.thread.lastMessage.subjectstringrequired
    • data.thread.lastMessage.snippetstringrequired
    • data.thread.lastMessage.bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data.thread.lastMessage.bodyPlainstring | null
    • data.thread.lastMessage.sentAtstring (date-time)required
    • data.thread.lastMessage.receivedAtstring (date-time)required
    • data.thread.lastMessage.isReadbooleanrequired
    • data.thread.lastMessage.isStarredbooleanrequired
    • data.thread.lastMessage.isDraftbooleanrequired
    • data.thread.lastMessage.folderstringrequired
    • data.thread.lastMessage.labelsstring[]required
    • data.thread.lastMessage.hasAttachmentsbooleanrequired
    • data.thread.lastMessage.spamScorenumber | null (float)
    • data.thread.lastMessage.priorityScorenumber | null (float)
    • data.thread.lastMessage.snoozedUntilstring | null (date-time)
    • data.thread.messageCountinteger (int32)required
    • data.thread.isReadbooleanrequired
    • data.thread.isStarredbooleanrequired
    • data.thread.labelsstring[]required
    • data.thread.hasAgentActivitybooleanrequired
    • data.thread.lastMessageAtstring (date-time)required
    • data.thread.snippetstring | null
    • data.messagesobject[]required
    • data.messages[].[].idstring (uuid)required
    • data.messages[].[].threadIdstring (uuid)required
    • data.messages[].[].messageIdstringrequired
    • data.messages[].[].fromobjectrequired
    • data.messages[].[].from.namestringrequired
    • data.messages[].[].from.emailstringrequired
    • data.messages[].[].from.isAgentbooleanrequired
    • data.messages[].[].from.agentDidstring | null
    • data.messages[].[].from.agentTypestring | null
    • data.messages[].[].toobject[]required
    • data.messages[].[].to[].[].namestringrequired
    • data.messages[].[].to[].[].emailstringrequired
    • data.messages[].[].to[].[].isAgentbooleanrequired
    • data.messages[].[].to[].[].agentDidstring | null
    • data.messages[].[].to[].[].agentTypestring | null
    • data.messages[].[].ccobject[]required
    • data.messages[].[].cc[].[].namestringrequired
    • data.messages[].[].cc[].[].emailstringrequired
    • data.messages[].[].cc[].[].isAgentbooleanrequired
    • data.messages[].[].cc[].[].agentDidstring | null
    • data.messages[].[].cc[].[].agentTypestring | null
    • data.messages[].[].bccobject[]required
    • data.messages[].[].bcc[].[].namestringrequired
    • data.messages[].[].bcc[].[].emailstringrequired
    • data.messages[].[].bcc[].[].isAgentbooleanrequired
    • data.messages[].[].bcc[].[].agentDidstring | null
    • data.messages[].[].bcc[].[].agentTypestring | null
    • data.messages[].[].subjectstringrequired
    • data.messages[].[].snippetstringrequired
    • data.messages[].[].bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data.messages[].[].bodyPlainstring | null
    • data.messages[].[].sentAtstring (date-time)required
    • data.messages[].[].receivedAtstring (date-time)required
    • data.messages[].[].isReadbooleanrequired
    • data.messages[].[].isStarredbooleanrequired
    • data.messages[].[].isDraftbooleanrequired
    • data.messages[].[].folderstringrequired
    • data.messages[].[].labelsstring[]required
    • data.messages[].[].hasAttachmentsbooleanrequired
    • data.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"

Reserve or rename the person's own One address

POST/v1/boxes/mail/agents/one/address

Person onlyboxes_mail_agents_one_address_reserve

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

  • localPartstringrequired

    The name before @, for example waffle.wizard

Responses

  • 200Unchanged, or renamed
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.addressstringrequired

      The person's own One address, for example waffle.wizard@one.ml

    • data.status"active" | "paused"required
    • data.displayNamestringrequired

      Always One

    • data.scope"person"required

      The person's own One (never a project's shared One)

    • data.renameAfterstring (date-time)required

      When the next change is allowed

    • data.previousobject[]required

      Renamed addresses still delivering, and when each stops

    • data.previous[].[].addressstringrequired
    • data.previous[].[].expiresAtstring (date-time)required
  • 201The person's One address was reserved
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.addressstringrequired

      The person's own One address, for example waffle.wizard@one.ml

    • data.status"active" | "paused"required
    • data.displayNamestringrequired

      Always One

    • data.scope"person"required

      The person's own One (never a project's shared One)

    • data.renameAfterstring (date-time)required

      When the next change is allowed

    • data.previousobject[]required

      Renamed addresses still delivering, and when each stops

    • data.previous[].[].addressstringrequired
    • data.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"
  }'

Whether a name can be the person's own One address

POST/v1/boxes/mail/agents/one/address/availability

Person onlyboxes_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

  • localPartstringrequired

    The name before @, for example waffle.wizard

Responses

  • 200The answer
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.localPartstringrequired
    • data.availablebooleanrequired
    • data.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"
  }'

Upload a pending attachment for later sending

POST/v1/boxes/mail/attachments

boxes:writeTested with an API keyboxes_mail_attachments_upload

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)required

    Attachment 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
    • successbooleanrequired
    • dataobjectrequired

      Pending upload, not yet attached to a message. Pass id in attachmentIds when sending.

    • data.idstring (uuid)required
    • data.messageIdnullrequired
    • data.filenamestringrequired
    • data.contentTypestringrequired
    • data.sizeBytesinteger (int32)required
    • data.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.bin

Get attachment metadata

GET/v1/boxes/mail/attachments/{id}

boxes:readTested with an API keyboxes_mail_attachments_get

Parameters

  • idpath · string (uuid)required

Responses

  • 200Attachment metadata
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.messageIdstring (uuid)required
    • data.filenamestringrequired
    • data.contentTypestringrequired
    • data.sizeBytesinteger (int32)required
    • data.downloadUrlstringrequired

      Backend 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"

Delete an attachment record

DELETE/v1/boxes/mail/attachments/{id}

boxes:writeTested with an API keyboxes_mail_attachments_delete

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"

Download attachment bytes

GET/v1/boxes/mail/attachments/{id}/content

boxes:readTested with an API keyboxes_mail_attachments_content_get

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"

Apply one operation to many messages

POST/v1/boxes/mail/batch

boxes:writeTested with an API keyboxes_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)[]required
  • operation"markRead" | "markUnread" | "star" | "unstar" | "moveToFolder" | "moveToTrash" | "delete"required

    delete only removes messages already in the trash folder

  • folderstring | null

    Required when operation is moveToFolder

Responses

  • 200Operation applied
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.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"
  }'

Revoke a mailbox delegation

DELETE/v1/boxes/mail/delegations/{delegation_id}

boxes:writeTested with an API keyboxes_mail_delegations_revoke

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"

List custom mail domains

GET/v1/boxes/mail/domains

boxes:readTested with an API keyboxes_mail_domains_list

Requires the boxes:admin key scope.

Responses

  • 200Domains
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].domainstringrequired
    • data[].[].statusstringrequired

      verified, pending or error

    • data[].[].verificationStatusstringrequired
    • data[].[].isPrimarybooleanrequired
    • data[].[].primarybooleanrequired
    • data[].[].recordsobject[]required
    • data[].[].records[].[].kindstring

      Present in the built-in verifier shape

    • data[].[].records[].[].hoststring

      Present in the built-in verifier shape

    • data[].[].records[].[].recordTypestring

      Present in the resend provider shape

    • data[].[].records[].[].namestring

      Present in the resend provider shape

    • data[].[].records[].[].valuestring | nullrequired
    • data[].[].records[].[].priorityinteger | null
    • data[].[].records[].[].statusstringrequired

      pass, fail or pending

    • data[].[].records[].[].notestring | null
    • data[].[].records[].[].observedstring[]
    • data[].[].expectedRecordsobject[]

      Built-in verifier only: DNS records to publish

    • data[].[].expectedRecords[].[].recordTypestringrequired
    • data[].[].expectedRecords[].[].namestringrequired
    • data[].[].expectedRecords[].[].valuestringrequired
    • data[].[].expectedRecords[].[].priorityinteger (int32)
    • data[].[].aliasesany[]
    • data[].[].mailboxCountinteger
    • data[].[].createdAtstring (date-time)
    • data[].[].updatedAtstring (date-time)
    • data[].[].verifiedAtstring | null (date-time)
    • data[].[].lastCheckedAtstring | null (date-time)
    • data[].[].sendingReadyboolean

      Resend provider only

    • data[].[].receivingReadyboolean

      Resend provider only

    • data[].[].providerRecordsany

      Resend provider only: raw provider records

    • data[].[].checkedAtstring | null (date-time)

      Resend provider only

    • data[].[].providerstring

      Resend provider only

    • data[].[].existingMxWarningstring

      Resend 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"

Register a custom mail domain

POST/v1/boxes/mail/domains

boxes:writeTested with an API keyboxes_mail_domains_create

Requires the boxes:admin key scope. Returns the DNS records to publish before calling verify.

Request body application/json

  • domainstringrequired

    Lower-cased hostname without protocol or address; at least two labels max length 253

  • isPrimaryboolean

    Also accepted as makePrimary default false

Responses

  • 201Domain registered
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Domain 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)required
    • data.namestringrequired
    • data.domainstringrequired
    • data.statusstringrequired

      verified, pending or error

    • data.verificationStatusstringrequired
    • data.isPrimarybooleanrequired
    • data.primarybooleanrequired
    • data.recordsobject[]required
    • data.records[].[].kindstring

      Present in the built-in verifier shape

    • data.records[].[].hoststring

      Present in the built-in verifier shape

    • data.records[].[].recordTypestring

      Present in the resend provider shape

    • data.records[].[].namestring

      Present in the resend provider shape

    • data.records[].[].valuestring | nullrequired
    • data.records[].[].priorityinteger | null
    • data.records[].[].statusstringrequired

      pass, fail or pending

    • data.records[].[].notestring | null
    • data.records[].[].observedstring[]
    • data.expectedRecordsobject[]

      Built-in verifier only: DNS records to publish

    • data.expectedRecords[].[].recordTypestringrequired
    • data.expectedRecords[].[].namestringrequired
    • data.expectedRecords[].[].valuestringrequired
    • data.expectedRecords[].[].priorityinteger (int32)
    • data.aliasesany[]
    • data.mailboxCountinteger
    • data.createdAtstring (date-time)
    • data.updatedAtstring (date-time)
    • data.verifiedAtstring | null (date-time)
    • data.lastCheckedAtstring | null (date-time)
    • data.sendingReadyboolean

      Resend provider only

    • data.receivingReadyboolean

      Resend provider only

    • data.providerRecordsany

      Resend provider only: raw provider records

    • data.checkedAtstring | null (date-time)

      Resend provider only

    • data.providerstring

      Resend provider only

    • data.existingMxWarningstring

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

Reserve a mail address on a specific domain

POST/v1/boxes/mail/domains/{domain_id}/addresses

boxes:writeAPI keys refusedboxes_mail_domains_addresses_create

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

  • localPartstringrequired

    Lower-cased; letters, digits and . _ % + -; must start and end with a letter or digit max length 64

  • displayNamestring | null
  • isPrimaryboolean

    Also accepted as makePrimary default false

Responses

  • 201Address reserved
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.localPartstringrequired
    • data.domainstringrequired
    • data.domainIdstring | null (uuid)
    • data.domainKind"custom" | "personal"required
    • data.addressstringrequired
    • data.emailAddressstringrequired
    • data.displayNamestring | null
    • data.isPrimarybooleanrequired
    • data.statusstringrequired
    • data.createdAtstring (date-time)required
    • data.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"
  }'

Check DNS and verify a mail domain

POST/v1/boxes/mail/domains/{domain_id}/verify

boxes:writeTested with an API keyboxes_mail_domains_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
    • successbooleanrequired
    • dataobjectrequired

      Domain 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)required
    • data.namestringrequired
    • data.domainstringrequired
    • data.statusstringrequired

      verified, pending or error

    • data.verificationStatusstringrequired
    • data.isPrimarybooleanrequired
    • data.primarybooleanrequired
    • data.recordsobject[]required
    • data.records[].[].kindstring

      Present in the built-in verifier shape

    • data.records[].[].hoststring

      Present in the built-in verifier shape

    • data.records[].[].recordTypestring

      Present in the resend provider shape

    • data.records[].[].namestring

      Present in the resend provider shape

    • data.records[].[].valuestring | nullrequired
    • data.records[].[].priorityinteger | null
    • data.records[].[].statusstringrequired

      pass, fail or pending

    • data.records[].[].notestring | null
    • data.records[].[].observedstring[]
    • data.expectedRecordsobject[]

      Built-in verifier only: DNS records to publish

    • data.expectedRecords[].[].recordTypestringrequired
    • data.expectedRecords[].[].namestringrequired
    • data.expectedRecords[].[].valuestringrequired
    • data.expectedRecords[].[].priorityinteger (int32)
    • data.aliasesany[]
    • data.mailboxCountinteger
    • data.createdAtstring (date-time)
    • data.updatedAtstring (date-time)
    • data.verifiedAtstring | null (date-time)
    • data.lastCheckedAtstring | null (date-time)
    • data.sendingReadyboolean

      Resend provider only

    • data.receivingReadyboolean

      Resend provider only

    • data.providerRecordsany

      Resend provider only: raw provider records

    • data.checkedAtstring | null (date-time)

      Resend provider only

    • data.providerstring

      Resend provider only

    • data.existingMxWarningstring

      Resend provider only

    • metaobject
    • meta.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"

List system and custom folders

GET/v1/boxes/mail/folders

boxes:readTested with an API keyboxes_mail_folders_list

Responses

  • 200Folders
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      system lists the built-in folder names: inbox, sent, drafts, spam, trash, starred, snoozed, scheduled.

    • data.systemstring[]required
    • data.customobject[]required
    • data.custom[].[].idstring (uuid)required
    • data.custom[].[].mailboxIdstring (uuid)required
    • data.custom[].[].namestringrequired
    • data.custom[].[].parentIdstring | null (uuid)
    • data.custom[].[].sortOrderinteger (int32)required
    • data.custom[].[].createdAtstring (date-time)required
    • data.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"

Create a custom folder

POST/v1/boxes/mail/folders

boxes:writeTested with an API keyboxes_mail_folders_create

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • parentIdstring | null (uuid)

Responses

  • 201Folder created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.namestringrequired
    • data.parentIdstring | null (uuid)
    • data.sortOrderinteger (int32)required
    • data.createdAtstring (date-time)required
    • data.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"
  }'

Query the mail governance audit log

GET/v1/boxes/mail/governance/audit

boxes:readTested with an API keyboxes_mail_governance_audit_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].userIdstring (uuid)required
    • data[].[].action"rate_limit" | "budget_check" | "policy_check" | "approval_required" | "memory_write"required
    • data[].[].resourceTypestringrequired
    • data[].[].resourceIdstring | null (uuid)
    • data[].[].decision"allowed" | "denied" | "alert"required
    • data[].[].reasonstringrequired
    • data[].[].metadataany

      Free-form JSON object or null

    • data[].[].createdAtstring (date-time)required
    • paginationobject
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.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"

List messages in a folder

GET/v1/boxes/mail/inbox

boxes:readTested with an API keyboxes_mail_inbox_list

Operates on the caller primary mailbox, newest first.

Parameters

  • folderquery · string

    Folder name; defaults to inbox

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1-100 are clamped

  • unreadOnlyquery · boolean

    Only unread messages

  • starredquery · boolean

    Only starred messages

Responses

  • 200Messages page
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].mailboxIdstring (uuid)required
    • data[].[].threadIdstring | null (uuid)
    • data[].[].messageIdstringrequired

      RFC 5322 Message-ID

    • data[].[].inReplyTostring | null
    • data[].[].referencesstring[]required
    • data[].[].fromAddressstringrequired
    • data[].[].fromNamestring | null
    • data[].[].toAddressesobject[]required
    • data[].[].toAddresses[].[].addressstringrequired
    • data[].[].toAddresses[].[].namestring | null
    • data[].[].ccAddressesobject[]required
    • data[].[].ccAddresses[].[].addressstringrequired
    • data[].[].ccAddresses[].[].namestring | null
    • data[].[].bccAddressesobject[]required
    • data[].[].bccAddresses[].[].addressstringrequired
    • data[].[].bccAddresses[].[].namestring | null
    • data[].[].subjectstringrequired
    • data[].[].bodyPlainstring | null
    • data[].[].bodyHtmlstring | null
    • data[].[].snippetstring | null
    • data[].[].folderstringrequired
    • data[].[].isReadbooleanrequired
    • data[].[].isStarredbooleanrequired
    • data[].[].isDraftbooleanrequired
    • data[].[].spamScorenumber | null (float)
    • data[].[].priorityScorenumber | null (float)
    • data[].[].hasAttachmentsbooleanrequired
    • data[].[].rawSizeinteger | null (int32)
    • data[].[].receivedAtstring (date-time)required
    • data[].[].sentAtstring | null (date-time)
    • data[].[].snoozedUntilstring | null (date-time)
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject
    • meta.totalinteger (int64)required
    • meta.pageinteger (int64)required
    • meta.limitinteger (int64)required
    • meta.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"

List system and custom labels with counts

GET/v1/boxes/mail/labels

boxes:readTested with an API keyboxes_mail_labels_list

System labels come first (inbox, sent, drafts, archive, trash, starred), then custom labels.

Responses

  • 200Labels
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstringrequired

      System label key (inbox, sent, drafts, archive, trash, starred) or a custom label UUID

    • data[].[].namestringrequired
    • data[].[].colorstringrequired
    • data[].[].countinteger (int64)required
    • data[].[].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"

Create a custom label

POST/v1/boxes/mail/labels

boxes:writeTested with an API keyboxes_mail_labels_create

Request body application/json

  • namestringrequired

    min length 1 · max length 100

  • colorstring | null

Responses

  • 201Label created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.namestringrequired
    • data.colorstring | null
    • data.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"
  }'

Delete a custom label

DELETE/v1/boxes/mail/labels/{id}

boxes:writeTested with an API keyboxes_mail_labels_delete

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"

List sender mailboxes owned by the caller

GET/v1/boxes/mail/mailboxes

boxes:readTested with an API keyboxes_mail_mailboxes_list

Creates the primary mailbox if none exists.

Responses

  • 200Mailboxes
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].ownerIdstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].emailAddressstringrequired
    • data[].[].displayNamestring | null
    • data[].[].signaturestring | null
    • data[].[].isPrimarybooleanrequired
    • data[].[].domainNamestringrequired
    • data[].[].domainKind"personal" | "custom"required
    • data[].[].createdAtstring (date-time)required
    • data[].[].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"

List delegations on a mailbox

GET/v1/boxes/mail/mailboxes/{mailbox_id}/delegations

boxes:readTested with an API keyboxes_mail_mailboxes_delegations_list

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)required
    • mailboxIdstring (uuid)required
    • granteeIdstring (uuid)required
    • granteeKind"agent" | "user"required
    • role"owner" | "delegate" | "send_as" | "read_only"required
    • grantedBystring (uuid)required
    • isActivebooleanrequired
    • expiresAtstring | null (date-time)
    • createdAtstring (date-time)required
    • updatedAtstring (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"

Submit an event to the mail memory pipeline

POST/v1/boxes/mail/memory/events

boxes:writeTested with an API keyboxes_mail_memory_events_submit

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

Recall memories through the cognitive brain interface

GET/v1/boxes/mail/memory/recall

boxes:readTested with an API keyboxes_mail_memory_recall

Requires scope boxes:memory:read. Returns 422 when the Akasha memory backend is not configured.

Parameters

  • qquery · stringrequired

    Query text

  • limitquery · integer

    Maximum 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"

Store a custom memory entry

POST/v1/boxes/mail/memory/store

boxes:writeTested with an API keyboxes_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

  • contentstringrequired
  • tagsarray | null
  • memory_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"
  }'

Get a message with its labels

GET/v1/boxes/mail/messages/{id}

boxes:readTested with an API keyboxes_mail_messages_get

Parameters

  • idpath · string (uuid)required

Responses

  • 200Message and labels
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.messageobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.message.idstring (uuid)required
    • data.message.mailboxIdstring (uuid)required
    • data.message.threadIdstring | null (uuid)
    • data.message.messageIdstringrequired

      RFC 5322 Message-ID

    • data.message.inReplyTostring | null
    • data.message.referencesstring[]required
    • data.message.fromAddressstringrequired
    • data.message.fromNamestring | null
    • data.message.toAddressesobject[]required
    • data.message.toAddresses[].[].addressstringrequired
    • data.message.toAddresses[].[].namestring | null
    • data.message.ccAddressesobject[]required
    • data.message.ccAddresses[].[].addressstringrequired
    • data.message.ccAddresses[].[].namestring | null
    • data.message.bccAddressesobject[]required
    • data.message.bccAddresses[].[].addressstringrequired
    • data.message.bccAddresses[].[].namestring | null
    • data.message.subjectstringrequired
    • data.message.bodyPlainstring | null
    • data.message.bodyHtmlstring | null
    • data.message.snippetstring | null
    • data.message.folderstringrequired
    • data.message.isReadbooleanrequired
    • data.message.isStarredbooleanrequired
    • data.message.isDraftbooleanrequired
    • data.message.spamScorenumber | null (float)
    • data.message.priorityScorenumber | null (float)
    • data.message.hasAttachmentsbooleanrequired
    • data.message.rawSizeinteger | null (int32)
    • data.message.receivedAtstring (date-time)required
    • data.message.sentAtstring | null (date-time)
    • data.message.snoozedUntilstring | null (date-time)
    • data.message.createdAtstring (date-time)required
    • data.message.updatedAtstring (date-time)required
    • data.labelsobject[]required
    • data.labels[].[].idstring (uuid)required
    • data.labels[].[].mailboxIdstring (uuid)required
    • data.labels[].[].namestringrequired
    • data.labels[].[].colorstring | null
    • data.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"

Move a message to trash

DELETE/v1/boxes/mail/messages/{id}

boxes:writeTested with an API keyboxes_mail_messages_delete

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"

Update message flags, folder or snooze

PATCH/v1/boxes/mail/messages/{id}

boxes:writeTested with an API keyboxes_mail_messages_update

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

  • isReadboolean
  • isStarredboolean
  • folderstring
  • snoozedUntilstring | null (date-time)

Responses

  • 200Updated message
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.threadIdstring | null (uuid)
    • data.messageIdstringrequired

      RFC 5322 Message-ID

    • data.inReplyTostring | null
    • data.referencesstring[]required
    • data.fromAddressstringrequired
    • data.fromNamestring | null
    • data.toAddressesobject[]required
    • data.toAddresses[].[].addressstringrequired
    • data.toAddresses[].[].namestring | null
    • data.ccAddressesobject[]required
    • data.ccAddresses[].[].addressstringrequired
    • data.ccAddresses[].[].namestring | null
    • data.bccAddressesobject[]required
    • data.bccAddresses[].[].addressstringrequired
    • data.bccAddresses[].[].namestring | null
    • data.subjectstringrequired
    • data.bodyPlainstring | null
    • data.bodyHtmlstring | null
    • data.snippetstring | null
    • data.folderstringrequired
    • data.isReadbooleanrequired
    • data.isStarredbooleanrequired
    • data.isDraftbooleanrequired
    • data.spamScorenumber | null (float)
    • data.priorityScorenumber | null (float)
    • data.hasAttachmentsbooleanrequired
    • data.rawSizeinteger | null (int32)
    • data.receivedAtstring (date-time)required
    • data.sentAtstring | null (date-time)
    • data.snoozedUntilstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.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 '{}'

Get delivery status for a sent message

GET/v1/boxes/mail/messages/{id}/delivery

boxes:readTested with an API keyboxes_mail_messages_delivery_get

Parameters

  • idpath · string (uuid)required

Responses

  • 200Delivery status and events
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.messageIdstring (uuid)required
    • data.statusstringrequired

      Aggregate delivery status across recipients

    • data.timestampstring (date-time)required
    • data.errorMessagestring | null
    • data.eventsobject[]required
    • data.events[].[].idstring (uuid)required
    • data.events[].[].messageIdstring (uuid)required
    • data.events[].[].mailboxIdstring (uuid)required
    • data.events[].[].recipientAddressstringrequired
    • data.events[].[].statusstringrequired
    • data.events[].[].providerstringrequired
    • data.events[].[].mtaQueueIdstring | null
    • data.events[].[].smtpResponsestring | null
    • data.events[].[].attemptsinteger (int32)required
    • data.events[].[].lastErrorstring | null
    • data.events[].[].occurredAtstring (date-time)required
    • data.events[].[].createdAtstring (date-time)required
    • data.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"

Get the extraction for a message

GET/v1/boxes/mail/messages/{message_id}/extraction

boxes:readTested with an API keyboxes_mail_extraction_message_get

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"

List attachments of a message

GET/v1/boxes/mail/messages/{messageId}/attachments

boxes:readTested with an API keyboxes_mail_messages_attachments_list

Parameters

  • messageIdpath · string (uuid)required

Responses

  • 200Attachments
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].messageIdstring (uuid)required
    • data[].[].filenamestringrequired
    • data[].[].contentTypestringrequired
    • data[].[].sizeBytesinteger (int32)required
    • data[].[].storageKeystringrequired
    • data[].[].contentIdstring | null
    • data[].[].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"

List mailboxes the caller can act as through delegation

GET/v1/boxes/mail/personas

boxes:readTested with an API keyboxes_mail_personas_list

Returns a bare array (not wrapped in success/data) of delegations where the caller is the grantee.

Responses

  • 200Delegations
    Response fields
    • idstring (uuid)required
    • mailboxIdstring (uuid)required
    • granteeIdstring (uuid)required
    • granteeKind"agent" | "user"required
    • role"owner" | "delegate" | "send_as" | "read_only"required
    • grantedBystring (uuid)required
    • isActivebooleanrequired
    • expiresAtstring | null (date-time)
    • createdAtstring (date-time)required
    • updatedAtstring (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"

Send an email or save a draft

POST/v1/boxes/mail/send

boxes:writeTested with an API keyIdempotency-Key optionalboxes_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[]required
  • to[].[].addressstringrequired
  • to[].[].namestring | null
  • fromMailboxIdstring | null (uuid)
  • ccobject[]
  • cc[].[].addressstringrequired
  • cc[].[].namestring | null
  • bccobject[]
  • bcc[].[].addressstringrequired
  • bcc[].[].namestring | null
  • subjectstringrequired

    max length 998

  • bodyPlainstring | null
  • bodyHtmlstring | null
  • inReplyTostring | null
  • isDraftboolean

    default false

  • scheduledAtstring | null

    Accepted by the request struct but not read by the send handler

  • attachmentIdsstring (uuid)[]

Responses

  • 200Idempotent replay of an earlier send
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.threadIdstring | null (uuid)
    • data.messageIdstringrequired

      RFC 5322 Message-ID

    • data.inReplyTostring | null
    • data.referencesstring[]required
    • data.fromAddressstringrequired
    • data.fromNamestring | null
    • data.toAddressesobject[]required
    • data.toAddresses[].[].addressstringrequired
    • data.toAddresses[].[].namestring | null
    • data.ccAddressesobject[]required
    • data.ccAddresses[].[].addressstringrequired
    • data.ccAddresses[].[].namestring | null
    • data.bccAddressesobject[]required
    • data.bccAddresses[].[].addressstringrequired
    • data.bccAddresses[].[].namestring | null
    • data.subjectstringrequired
    • data.bodyPlainstring | null
    • data.bodyHtmlstring | null
    • data.snippetstring | null
    • data.folderstringrequired
    • data.isReadbooleanrequired
    • data.isStarredbooleanrequired
    • data.isDraftbooleanrequired
    • data.spamScorenumber | null (float)
    • data.priorityScorenumber | null (float)
    • data.hasAttachmentsbooleanrequired
    • data.rawSizeinteger | null (int32)
    • data.receivedAtstring (date-time)required
    • data.sentAtstring | null (date-time)
    • data.snoozedUntilstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
  • 201Message created
    Response fields
    • successbooleanrequired
    • dataobjectrequired

      Stored message row. The address arrays are stored JSON; messages created by send hold objects with address and name.

    • data.idstring (uuid)required
    • data.mailboxIdstring (uuid)required
    • data.threadIdstring | null (uuid)
    • data.messageIdstringrequired

      RFC 5322 Message-ID

    • data.inReplyTostring | null
    • data.referencesstring[]required
    • data.fromAddressstringrequired
    • data.fromNamestring | null
    • data.toAddressesobject[]required
    • data.toAddresses[].[].addressstringrequired
    • data.toAddresses[].[].namestring | null
    • data.ccAddressesobject[]required
    • data.ccAddresses[].[].addressstringrequired
    • data.ccAddresses[].[].namestring | null
    • data.bccAddressesobject[]required
    • data.bccAddresses[].[].addressstringrequired
    • data.bccAddresses[].[].namestring | null
    • data.subjectstringrequired
    • data.bodyPlainstring | null
    • data.bodyHtmlstring | null
    • data.snippetstring | null
    • data.folderstringrequired
    • data.isReadbooleanrequired
    • data.isStarredbooleanrequired
    • data.isDraftbooleanrequired
    • data.spamScorenumber | null (float)
    • data.priorityScorenumber | null (float)
    • data.hasAttachmentsbooleanrequired
    • data.rawSizeinteger | null (int32)
    • data.receivedAtstring (date-time)required
    • data.sentAtstring | null (date-time)
    • data.snoozedUntilstring | null (date-time)
    • data.createdAtstring (date-time)required
    • data.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"
  }'

Stream new-message events over Server-Sent Events

GET/v1/boxes/mail/stream

boxes:readTested with an API keyboxes_mail_stream_sse

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"

List built-in email templates

GET/v1/boxes/mail/templates

boxes:readTested with an API keyboxes_mail_templates_list

Responses

  • 200Templates
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].descriptionstringrequired
    • data[].[].subjectstringrequired
    • data[].[].bodyHtmlstringrequired
    • data[].[].bodyPlainstringrequired
    • data[].[].categorystringrequired
    • data[].[].variablesstring[]required
    • data[].[].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"

List conversation threads

GET/v1/boxes/mail/threads

boxes:readTested with an API keyboxes_mail_threads_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].subjectstringrequired
    • data[].[].participantsobject[]required
    • data[].[].participants[].[].namestringrequired
    • data[].[].participants[].[].emailstringrequired
    • data[].[].participants[].[].isAgentbooleanrequired
    • data[].[].participants[].[].agentDidstring | null
    • data[].[].participants[].[].agentTypestring | null
    • data[].[].lastMessageobjectrequired
    • data[].[].lastMessage.idstring (uuid)required
    • data[].[].lastMessage.threadIdstring (uuid)required
    • data[].[].lastMessage.messageIdstringrequired
    • data[].[].lastMessage.fromobjectrequired
    • data[].[].lastMessage.from.namestringrequired
    • data[].[].lastMessage.from.emailstringrequired
    • data[].[].lastMessage.from.isAgentbooleanrequired
    • data[].[].lastMessage.from.agentDidstring | null
    • data[].[].lastMessage.from.agentTypestring | null
    • data[].[].lastMessage.toobject[]required
    • data[].[].lastMessage.to[].[].namestringrequired
    • data[].[].lastMessage.to[].[].emailstringrequired
    • data[].[].lastMessage.to[].[].isAgentbooleanrequired
    • data[].[].lastMessage.to[].[].agentDidstring | null
    • data[].[].lastMessage.to[].[].agentTypestring | null
    • data[].[].lastMessage.ccobject[]required
    • data[].[].lastMessage.cc[].[].namestringrequired
    • data[].[].lastMessage.cc[].[].emailstringrequired
    • data[].[].lastMessage.cc[].[].isAgentbooleanrequired
    • data[].[].lastMessage.cc[].[].agentDidstring | null
    • data[].[].lastMessage.cc[].[].agentTypestring | null
    • data[].[].lastMessage.bccobject[]required
    • data[].[].lastMessage.bcc[].[].namestringrequired
    • data[].[].lastMessage.bcc[].[].emailstringrequired
    • data[].[].lastMessage.bcc[].[].isAgentbooleanrequired
    • data[].[].lastMessage.bcc[].[].agentDidstring | null
    • data[].[].lastMessage.bcc[].[].agentTypestring | null
    • data[].[].lastMessage.subjectstringrequired
    • data[].[].lastMessage.snippetstringrequired
    • data[].[].lastMessage.bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data[].[].lastMessage.bodyPlainstring | null
    • data[].[].lastMessage.sentAtstring (date-time)required
    • data[].[].lastMessage.receivedAtstring (date-time)required
    • data[].[].lastMessage.isReadbooleanrequired
    • data[].[].lastMessage.isStarredbooleanrequired
    • data[].[].lastMessage.isDraftbooleanrequired
    • data[].[].lastMessage.folderstringrequired
    • data[].[].lastMessage.labelsstring[]required
    • data[].[].lastMessage.hasAttachmentsbooleanrequired
    • data[].[].lastMessage.spamScorenumber | null (float)
    • data[].[].lastMessage.priorityScorenumber | null (float)
    • data[].[].lastMessage.snoozedUntilstring | null (date-time)
    • data[].[].messageCountinteger (int32)required
    • data[].[].isReadbooleanrequired
    • data[].[].isStarredbooleanrequired
    • data[].[].labelsstring[]required
    • data[].[].hasAgentActivitybooleanrequired
    • data[].[].lastMessageAtstring (date-time)required
    • data[].[].snippetstring | null
    • metaobject
    • meta.totalinteger (int64)required
    • meta.pageinteger (int64)required
    • meta.limitinteger (int64)required
    • meta.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"

Get a thread with all its messages

GET/v1/boxes/mail/threads/{id}

boxes:readTested with an API keyboxes_mail_threads_get

Parameters

  • idpath · string (uuid)required

Responses

  • 200Thread detail
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.threadobjectrequired
    • data.thread.idstring (uuid)required
    • data.thread.subjectstringrequired
    • data.thread.participantsobject[]required
    • data.thread.participants[].[].namestringrequired
    • data.thread.participants[].[].emailstringrequired
    • data.thread.participants[].[].isAgentbooleanrequired
    • data.thread.participants[].[].agentDidstring | null
    • data.thread.participants[].[].agentTypestring | null
    • data.thread.lastMessageobjectrequired
    • data.thread.lastMessage.idstring (uuid)required
    • data.thread.lastMessage.threadIdstring (uuid)required
    • data.thread.lastMessage.messageIdstringrequired
    • data.thread.lastMessage.fromobjectrequired
    • data.thread.lastMessage.from.namestringrequired
    • data.thread.lastMessage.from.emailstringrequired
    • data.thread.lastMessage.from.isAgentbooleanrequired
    • data.thread.lastMessage.from.agentDidstring | null
    • data.thread.lastMessage.from.agentTypestring | null
    • data.thread.lastMessage.toobject[]required
    • data.thread.lastMessage.to[].[].namestringrequired
    • data.thread.lastMessage.to[].[].emailstringrequired
    • data.thread.lastMessage.to[].[].isAgentbooleanrequired
    • data.thread.lastMessage.to[].[].agentDidstring | null
    • data.thread.lastMessage.to[].[].agentTypestring | null
    • data.thread.lastMessage.ccobject[]required
    • data.thread.lastMessage.cc[].[].namestringrequired
    • data.thread.lastMessage.cc[].[].emailstringrequired
    • data.thread.lastMessage.cc[].[].isAgentbooleanrequired
    • data.thread.lastMessage.cc[].[].agentDidstring | null
    • data.thread.lastMessage.cc[].[].agentTypestring | null
    • data.thread.lastMessage.bccobject[]required
    • data.thread.lastMessage.bcc[].[].namestringrequired
    • data.thread.lastMessage.bcc[].[].emailstringrequired
    • data.thread.lastMessage.bcc[].[].isAgentbooleanrequired
    • data.thread.lastMessage.bcc[].[].agentDidstring | null
    • data.thread.lastMessage.bcc[].[].agentTypestring | null
    • data.thread.lastMessage.subjectstringrequired
    • data.thread.lastMessage.snippetstringrequired
    • data.thread.lastMessage.bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data.thread.lastMessage.bodyPlainstring | null
    • data.thread.lastMessage.sentAtstring (date-time)required
    • data.thread.lastMessage.receivedAtstring (date-time)required
    • data.thread.lastMessage.isReadbooleanrequired
    • data.thread.lastMessage.isStarredbooleanrequired
    • data.thread.lastMessage.isDraftbooleanrequired
    • data.thread.lastMessage.folderstringrequired
    • data.thread.lastMessage.labelsstring[]required
    • data.thread.lastMessage.hasAttachmentsbooleanrequired
    • data.thread.lastMessage.spamScorenumber | null (float)
    • data.thread.lastMessage.priorityScorenumber | null (float)
    • data.thread.lastMessage.snoozedUntilstring | null (date-time)
    • data.thread.messageCountinteger (int32)required
    • data.thread.isReadbooleanrequired
    • data.thread.isStarredbooleanrequired
    • data.thread.labelsstring[]required
    • data.thread.hasAgentActivitybooleanrequired
    • data.thread.lastMessageAtstring (date-time)required
    • data.thread.snippetstring | null
    • data.messagesobject[]required
    • data.messages[].[].idstring (uuid)required
    • data.messages[].[].threadIdstring (uuid)required
    • data.messages[].[].messageIdstringrequired
    • data.messages[].[].fromobjectrequired
    • data.messages[].[].from.namestringrequired
    • data.messages[].[].from.emailstringrequired
    • data.messages[].[].from.isAgentbooleanrequired
    • data.messages[].[].from.agentDidstring | null
    • data.messages[].[].from.agentTypestring | null
    • data.messages[].[].toobject[]required
    • data.messages[].[].to[].[].namestringrequired
    • data.messages[].[].to[].[].emailstringrequired
    • data.messages[].[].to[].[].isAgentbooleanrequired
    • data.messages[].[].to[].[].agentDidstring | null
    • data.messages[].[].to[].[].agentTypestring | null
    • data.messages[].[].ccobject[]required
    • data.messages[].[].cc[].[].namestringrequired
    • data.messages[].[].cc[].[].emailstringrequired
    • data.messages[].[].cc[].[].isAgentbooleanrequired
    • data.messages[].[].cc[].[].agentDidstring | null
    • data.messages[].[].cc[].[].agentTypestring | null
    • data.messages[].[].bccobject[]required
    • data.messages[].[].bcc[].[].namestringrequired
    • data.messages[].[].bcc[].[].emailstringrequired
    • data.messages[].[].bcc[].[].isAgentbooleanrequired
    • data.messages[].[].bcc[].[].agentDidstring | null
    • data.messages[].[].bcc[].[].agentTypestring | null
    • data.messages[].[].subjectstringrequired
    • data.messages[].[].snippetstringrequired
    • data.messages[].[].bodystringrequired

      HTML body, or the HTML-escaped plain body when no HTML body exists

    • data.messages[].[].bodyPlainstring | null
    • data.messages[].[].sentAtstring (date-time)required
    • data.messages[].[].receivedAtstring (date-time)required
    • data.messages[].[].isReadbooleanrequired
    • data.messages[].[].isStarredbooleanrequired
    • data.messages[].[].isDraftbooleanrequired
    • data.messages[].[].folderstringrequired
    • data.messages[].[].labelsstring[]required
    • data.messages[].[].hasAttachmentsbooleanrequired
    • data.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"

List extractions for a thread

GET/v1/boxes/mail/threads/{thread_id}/extractions

boxes:readTested with an API keyboxes_mail_extraction_thread_get

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)required
    • messageIdstring (uuid)required
    • mailboxIdstring (uuid)required
    • summarystringrequired
    • intent"inquiry" | "request" | "response" | "notification" | "introduction" | "follow_up" | "complaint" | "appreciation" | "negotiation" | "scheduling" | "forwarded" | "automated"required
    • sentiment"positive" | "neutral" | "negative" | "urgent"required
    • category"transactional" | "conversational" | "marketing" | "notification" | "newsletter" | "internal" | "support" | "sales" | "legal" | "financial"required
    • languagestringrequired
    • actionItemsobject[]required
    • actionItems[].[].descriptionstringrequired
    • actionItems[].[].assigneestring | null
    • actionItems[].[].deadlinestring | null
    • actionItems[].[].prioritystring | null
    • questionsstring[]required
    • deadlinesobject[]required
    • deadlines[].[].descriptionstringrequired
    • deadlines[].[].datestring | null
    • deadlines[].[].sourceTextstringrequired
    • entitiesobject[]required
    • entities[].[].namestringrequired
    • entities[].[].entityTypestringrequired

      person, company, product, date or amount

    • entities[].[].valuestring | null
    • topicsstring[]required
    • priorityScorenumber (float)required
    • spamScorenumber (float)required
    • phishingScorenumber (float)required
    • requiresResponsebooleanrequired
    • suggestedResponseBystring | null (date-time)
    • extractionModelstringrequired
    • extractionLatencyMsinteger (int32)required
    • createdAtstring (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"

Get aggregated intelligence for a thread

GET/v1/boxes/mail/threads/{thread_id}/intelligence

boxes:readTested with an API keyboxes_mail_intelligence_thread_get

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"

Mcp

List the caller's active sessions

GET/v1/boxes/mcp/sessions

boxes:readTested with an API keyboxes_mcp_sessions_list

Responses

  • 200Success.
    Response fields
    • idstringrequired
    • agentIdstringrequired
    • tenantIdstringrequired
    • agentDidstring | nullrequired
    • contextanyrequired

      Free-form JSON; usually an object.

    • createdAtstring (date-time)required
    • lastActiveAtstring (date-time)required
    • ttlSecondsinteger (int64)required

      Session 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"

Create an agent session

POST/v1/boxes/mcp/sessions

boxes:writeTested with an API keyboxes_mcp_sessions_create

Returns the session directly (no envelope) with HTTP 200. Stored in Redis with the TTL.

Request body application/json

  • contextany

    Initial context; defaults to an empty object.

  • ttlSecondsinteger (int64)

    Values above 86400 are capped to 86400. min 1 · default 3600

Responses

  • 200Success.
    Response fields
    • idstringrequired
    • agentIdstringrequired
    • tenantIdstringrequired
    • agentDidstring | nullrequired
    • contextanyrequired

      Free-form JSON; usually an object.

    • createdAtstring (date-time)required
    • lastActiveAtstring (date-time)required
    • ttlSecondsinteger (int64)required

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

Get a session

GET/v1/boxes/mcp/sessions/{session_id}

boxes:readTested with an API keyboxes_mcp_sessions_get

Parameters

  • session_idpath · stringrequired

    Session id (a UUID string).

Responses

  • 200Success.
    Response fields
    • idstringrequired
    • agentIdstringrequired
    • tenantIdstringrequired
    • agentDidstring | nullrequired
    • contextanyrequired

      Free-form JSON; usually an object.

    • createdAtstring (date-time)required
    • lastActiveAtstring (date-time)required
    • ttlSecondsinteger (int64)required

      Session 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"

Destroy a session

DELETE/v1/boxes/mcp/sessions/{session_id}

boxes:writeTested with an API keyboxes_mcp_sessions_delete

Idempotent: returns deleted true even when the session does not exist.

Parameters

  • session_idpath · stringrequired

    Session id (a UUID string).

Responses

  • 200Success.
    Response fields
    • deletedbooleanrequired
    • sessionIdstringrequired
  • 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"

Merge or replace session context

POST/v1/boxes/mcp/sessions/{session_id}/context

boxes:writeTested with an API keyboxes_mcp_sessions_context_set

Responses are not wrapped in the standard success envelope. Sessions are scoped to the calling principal. Keeps the remaining TTL.

Parameters

  • session_idpath · stringrequired

    Session id (a UUID string).

Request body application/json

  • contextanyrequired

    Context to merge or replace.

  • replaceboolean

    When true, replace the context entirely; otherwise object keys are merged. default false

Responses

  • 200Success.
    Response fields
    • idstringrequired
    • agentIdstringrequired
    • tenantIdstringrequired
    • agentDidstring | nullrequired
    • contextanyrequired

      Free-form JSON; usually an object.

    • createdAtstring (date-time)required
    • lastActiveAtstring (date-time)required
    • ttlSecondsinteger (int64)required

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

List tools available to the caller

GET/v1/boxes/mcp/tools

boxes:readTested with an API keyboxes_mcp_tools_list

Only tools whose required scope the caller holds are returned.

Responses

  • 200Success.
    Response fields
    • toolsobject[]required
    • tools[].[].namestringrequired
    • tools[].[].descriptionstringrequired
    • tools[].[].product"mail" | "docs" | "calendar" | "sheets" | "slides" | "files" | "identity"required
    • tools[].[].requiredScopestringrequired
    • tools[].[].inputSchemaobjectrequired

      JSON Schema for the tool arguments.

    • totalintegerrequired
    • protocolVersionstringrequired
    • serverInfoobjectrequired
    • serverInfo.namestringrequired
    • serverInfo.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"

Call an MCP tool

POST/v1/boxes/mcp/tools/call

boxes:writeTested with an API keyboxes_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

  • toolstringrequired

    Tool name such as docs.create.

  • argumentsanyrequired

    Arguments validated against the tool input schema.

Responses

  • 200Success.
    Response fields
    • toolstringrequired
    • successbooleanrequired
    • resultany

      Backend response body when success is true.

    • errorobject
    • error.codestringrequired

      VALIDATION_ERROR, RATE_LIMITED, BACKEND_<status> or SERVICE_UNAVAILABLE.

    • error.messagestringrequired
    • usageobjectrequired
    • usage.durationMsinteger (int64)required
    • usage.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"
  }'

Sheets

List spreadsheets in the tenant

GET/v1/boxes/sheets

boxes:readTested with an API keyboxes_sheets_spreadsheets_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].titlestringrequired
    • data[].[].descriptionstringrequired
    • data[].[].statusstringrequired

      For example active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring | null (uuid)required
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Create a spreadsheet

POST/v1/boxes/sheets

boxes:writeTested with an API keyboxes_sheets_spreadsheets_create

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

  • titlestringrequired

    min length 1 · max length 1024

  • descriptionstring

    default ""

  • folderIdstring | null (uuid)
  • isTemplateboolean

    default false

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.statusstringrequired

      For example active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring | null (uuid)required
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"
  }'

Get a spreadsheet

GET/v1/boxes/sheets/{id}

boxes:readTested with an API keyboxes_sheets_spreadsheets_get

Requires scope boxes:sheets:read and read permission on the spreadsheet.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.statusstringrequired

      For example active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring | null (uuid)required
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Move a spreadsheet to the trash

DELETE/v1/boxes/sheets/{id}

boxes:writeTested with an API keyboxes_sheets_spreadsheets_delete

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)required

    Spreadsheet id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.statusstringrequired

      For example active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring | null (uuid)required
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Update a spreadsheet

PATCH/v1/boxes/sheets/{id}

boxes:writeTested with an API keyboxes_sheets_spreadsheets_update

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)required

    Spreadsheet id

Request body application/json

  • titlestring
  • descriptionstring
  • folderIdstring (uuid)

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.statusstringrequired

      For example active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring | null (uuid)required
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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 an Excel workbook as a new spreadsheet

POST/v1/boxes/sheets/import

boxes:writeboxes_sheets_spreadsheets_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 · string
  • folder_idquery · string (uuid)

Request body multipart/form-data

  • filestring (binary)required

    The .xlsx to import, at most 20 MB.

Responses

  • 201Created
    Response fields
    • successboolean
    • dataobject
    • data.idstring (uuid)required
    • data.titlestringrequired
    • data.descriptionstringrequired
    • data.statusstringrequired

      For example active or trashed.

    • data.isTemplatebooleanrequired
    • data.folderIdstring | null (uuid)required
    • data.ownerIdstring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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.bin

List spreadsheets shared with the caller

GET/v1/boxes/sheets/shared-with-me

boxes:readTested with an API keyboxes_sheets_shared_with_me_list

Requires scope boxes:sheets:read.

Parameters

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1..100 are clamped.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].titlestringrequired
    • data[].[].descriptionstringrequired
    • data[].[].statusstringrequired

      For example active or trashed.

    • data[].[].isTemplatebooleanrequired
    • data[].[].folderIdstring | null (uuid)required
    • data[].[].ownerIdstring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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/shared-with-me" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

Tabs

List tabs of a spreadsheet

GET/v1/boxes/sheets/{id}/tabs

boxes:readTested with an API keyboxes_sheets_tabs_list

Requires scope boxes:sheets:read and read permission on the spreadsheet.

Parameters

  • idpath · string (uuid)required

    Spreadsheet id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].spreadsheetIdstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].positioninteger (int32)required
    • data[].[].rowCountinteger (int32)required
    • data[].[].colCountinteger (int32)required
    • data[].[].frozenRowsinteger (int32)required
    • data[].[].frozenColsinteger (int32)required
    • data[].[].hiddenbooleanrequired
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Create a tab in a spreadsheet

POST/v1/boxes/sheets/{id}/tabs

boxes:writeTested with an API keyboxes_sheets_tabs_create

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)required

    Spreadsheet id

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • rowCountinteger (int32)

    default 1000

  • colCountinteger (int32)

    default 26

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.spreadsheetIdstring (uuid)required
    • data.namestringrequired
    • data.positioninteger (int32)required
    • data.rowCountinteger (int32)required
    • data.colCountinteger (int32)required
    • data.frozenRowsinteger (int32)required
    • data.frozenColsinteger (int32)required
    • data.hiddenbooleanrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"
  }'

Get a tab

GET/v1/boxes/sheets/{id}/tabs/{tab_id}

boxes:readTested with an API keyboxes_sheets_tabs_get

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.spreadsheetIdstring (uuid)required
    • data.namestringrequired
    • data.positioninteger (int32)required
    • data.rowCountinteger (int32)required
    • data.colCountinteger (int32)required
    • data.frozenRowsinteger (int32)required
    • data.frozenColsinteger (int32)required
    • data.hiddenbooleanrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Delete a tab

DELETE/v1/boxes/sheets/{id}/tabs/{tab_id}

boxes:writeTested with an API keyboxes_sheets_tabs_delete

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Update a tab

PATCH/v1/boxes/sheets/{id}/tabs/{tab_id}

boxes:writeTested with an API keyboxes_sheets_tabs_update

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

Request body application/json

  • namestring
  • positioninteger (int32)
  • frozenRowsinteger (int32)
  • frozenColsinteger (int32)
  • hiddenboolean

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.spreadsheetIdstring (uuid)required
    • data.namestringrequired
    • data.positioninteger (int32)required
    • data.rowCountinteger (int32)required
    • data.colCountinteger (int32)required
    • data.frozenRowsinteger (int32)required
    • data.frozenColsinteger (int32)required
    • data.hiddenbooleanrequired
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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 '{}'

List non-empty cells of a tab

GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells

boxes:readTested with an API keyboxes_sheets_cells_list

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1..100 are clamped.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].sheetIdstring (uuid)required
    • data[].[].rowIndexinteger (int32)required
    • data[].[].colIndexinteger (int32)required
    • data[].[].rawValuestringrequired
    • data[].[].computedValuestring | nullrequired
    • data[].[].formulastring | nullrequired
    • data[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data[].[].formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data[].[].updatedBystring | null (uuid)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Write a single cell

POST/v1/boxes/sheets/{id}/tabs/{tab_id}/cells

boxes:writeTested with an API keyboxes_sheets_cells_set

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

Request body application/json

  • rowinteger (int32)required

    Zero-based row index

  • colinteger (int32)required

    Zero-based column index

  • valuestringrequired

    Raw cell value; always a string.

  • formulastring

    Formula text. When present the cell type is formula.

  • formatobject

    Unspecified: free-form JSON cell formatting object; no schema in the backend.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.sheetIdstring (uuid)required
    • data.rowIndexinteger (int32)required
    • data.colIndexinteger (int32)required
    • data.rawValuestringrequired
    • data.computedValuestring | nullrequired
    • data.formulastring | nullrequired
    • data.cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data.formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data.updatedBystring | null (uuid)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"
  }'

Get a single cell

GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}

boxes:readTested with an API keyboxes_sheets_cells_get

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

  • rowpath · integer (int32)required

    Zero-based row index

  • colpath · integer (int32)required

    Zero-based column index

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.sheetIdstring (uuid)required
    • data.rowIndexinteger (int32)required
    • data.colIndexinteger (int32)required
    • data.rawValuestringrequired
    • data.computedValuestring | nullrequired
    • data.formulastring | nullrequired
    • data.cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data.formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data.updatedBystring | null (uuid)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Clear a cell

DELETE/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/{row}/{col}

boxes:writeTested with an API keyboxes_sheets_cells_delete

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

  • rowpath · integer (int32)required

    Zero-based row index

  • colpath · integer (int32)required

    Zero-based column index

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Write many cells in one request

POST/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/batch

boxes:writeTested with an API keyboxes_sheets_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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

Request body application/json

  • cellsobject[]required
  • cells[].[].rowinteger (int32)required

    Zero-based row index

  • cells[].[].colinteger (int32)required

    Zero-based column index

  • cells[].[].valuestringrequired

    Raw cell value; always a string.

  • cells[].[].formulastring

    Formula text. When present the cell type is formula.

  • cells[].[].formatobject

    Unspecified: free-form JSON cell formatting object; no schema in the backend.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].sheetIdstring (uuid)required
    • data[].[].rowIndexinteger (int32)required
    • data[].[].colIndexinteger (int32)required
    • data[].[].rawValuestringrequired
    • data[].[].computedValuestring | nullrequired
    • data[].[].formulastring | nullrequired
    • data[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data[].[].formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data[].[].updatedBystring | null (uuid)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"
      }
    ]
  }'

Search cells by value

GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/query

boxes:readTested with an API keyboxes_sheets_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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

  • qquery · stringrequired

    Case-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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].sheetIdstring (uuid)required
    • data[].[].rowIndexinteger (int32)required
    • data[].[].colIndexinteger (int32)required
    • data[].[].rawValuestringrequired
    • data[].[].computedValuestring | nullrequired
    • data[].[].formulastring | nullrequired
    • data[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data[].[].formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data[].[].updatedBystring | null (uuid)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Get cells in a rectangular range

GET/v1/boxes/sheets/{id}/tabs/{tab_id}/cells/range

boxes:readTested with an API keyboxes_sheets_cells_range_get

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)required

    Spreadsheet id

  • tab_idpath · string (uuid)required

    Sheet tab id

  • startRowquery · integer (int32)required

    Zero-based first row

  • startColquery · integer (int32)required

    Zero-based first column

  • endRowquery · integer (int32)required

    Zero-based last row, inclusive

  • endColquery · integer (int32)required

    Zero-based last column, inclusive

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].sheetIdstring (uuid)required
    • data[].[].rowIndexinteger (int32)required
    • data[].[].colIndexinteger (int32)required
    • data[].[].rawValuestringrequired
    • data[].[].computedValuestring | nullrequired
    • data[].[].formulastring | nullrequired
    • data[].[].cellType"formula" | "empty" | "boolean" | "number" | "text"required
    • data[].[].formatobject | nullrequired

      Unspecified: free-form JSON cell formatting object; no schema in the backend.

    • data[].[].updatedBystring | null (uuid)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata. requestId echoes the request-id header of the call.

    • meta.requestIdstring
    • meta.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"

Slides

List presentations in the tenant

GET/v1/boxes/slides/presentations

boxes:readTested with an API keyboxes_slides_presentations_list

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 · string

    The literal me, or an owner user UUID

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1..100 are clamped.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].ownerIdstring (uuid)required
    • data[].[].themeIdstring | null (uuid)required
    • data[].[].titlestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"draft" | "published" | "archived"required
    • data[].[].aspectRatio"16:9" | "4:3" | "16:10"required
    • data[].[].slideCountinteger (int32)required
    • data[].[].tagsstring[]required
    • data[].[].metadataobjectrequired

      Unspecified: free-form JSON object; no schema in the backend.

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Create a presentation

POST/v1/boxes/slides/presentations

boxes:writeTested with an API keyboxes_slides_presentations_create

Requires scope boxes:slides:write.

Request body application/json

  • titlestringrequired

    min length 1 · max length 500

  • descriptionstring
  • themeIdstring (uuid)
  • aspectRatio"16:9" | "4:3" | "16:10"

    default "16:9"

  • tagsstring[]

Responses

  • 201Created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.ownerIdstring (uuid)required
    • data.themeIdstring | null (uuid)required
    • data.titlestringrequired
    • data.descriptionstring | nullrequired
    • data.status"draft" | "published" | "archived"required
    • data.aspectRatio"16:9" | "4:3" | "16:10"required
    • data.slideCountinteger (int32)required
    • data.tagsstring[]required
    • data.metadataobjectrequired

      Unspecified: free-form JSON object; no schema in the backend.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"
  }'

Get a presentation

GET/v1/boxes/slides/presentations/{id}

boxes:readTested with an API keyboxes_slides_presentations_get

Requires scope boxes:slides:read and read permission on the presentation.

Parameters

  • idpath · string (uuid)required

    Presentation id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.ownerIdstring (uuid)required
    • data.themeIdstring | null (uuid)required
    • data.titlestringrequired
    • data.descriptionstring | nullrequired
    • data.status"draft" | "published" | "archived"required
    • data.aspectRatio"16:9" | "4:3" | "16:10"required
    • data.slideCountinteger (int32)required
    • data.tagsstring[]required
    • data.metadataobjectrequired

      Unspecified: free-form JSON object; no schema in the backend.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Delete a presentation

DELETE/v1/boxes/slides/presentations/{id}

boxes:writeTested with an API keyboxes_slides_presentations_delete

Hard delete. Requires scope boxes:slides:write and admin permission on the presentation.

Parameters

  • idpath · string (uuid)required

    Presentation 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"

Update a presentation

PATCH/v1/boxes/slides/presentations/{id}

boxes:writeTested with an API keyboxes_slides_presentations_update

Requires scope boxes:slides:write and write permission on the presentation.

Parameters

  • idpath · string (uuid)required

    Presentation id

Request body application/json

  • titlestring

    min length 1 · max length 500

  • descriptionstring
  • themeIdstring (uuid)
  • status"draft" | "published" | "archived"
  • tagsstring[]

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.ownerIdstring (uuid)required
    • data.themeIdstring | null (uuid)required
    • data.titlestringrequired
    • data.descriptionstring | nullrequired
    • data.status"draft" | "published" | "archived"required
    • data.aspectRatio"16:9" | "4:3" | "16:10"required
    • data.slideCountinteger (int32)required
    • data.tagsstring[]required
    • data.metadataobjectrequired

      Unspecified: free-form JSON object; no schema in the backend.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

List a presentation's comments, oldest first

GET/v1/boxes/slides/presentations/{id}/comments

boxes:readboxes_slides_comments_list

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)required

    Presentation id

  • slidequery · string (uuid)

    Only this slide's comments

  • openquery · boolean

    Only unresolved threads

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].presentationIdstring (uuid)required
    • data[].[].slideIdstring | null (uuid)
    • data[].[].parentIdstring | null (uuid)
    • data[].[].anchorobjectrequired

      Where a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.

    • data[].[].anchor.kind"artboard" | "point" | "element"required
    • data[].[].anchor.xnumber
    • data[].[].anchor.ynumber
    • data[].[].anchor.pathstring

      max length 500

    • data[].[].anchor.textstring

      max length 500

    • data[].[].bodystringrequired
    • data[].[].byobjectrequired

      The name the caller declares; grants nothing.

    • data[].[].by.kind"person" | "agent"required
    • data[].[].by.namestring

      max length 120

    • data[].[].toobject[]required
    • data[].[].to[].[].kind"one" | "agent" | "team"required
    • data[].[].to[].[].idstring

      max length 200

    • data[].[].to[].[].namestringrequired

      max length 120

    • data[].[].authorIdstringrequired

      The signed caller (the One person h_..., else the Boxes user id)

    • data[].[].resolvedAtstring | null (date-time)
    • data[].[].resolvedBystring | null
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Comment on a presentation or one of its slides, or reply to a top-level comment

POST/v1/boxes/slides/presentations/{id}/comments

boxes:writeboxes_slides_comments_create

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)required

    Presentation id

Request body application/json

  • slideIdstring (uuid)
  • parentIdstring (uuid)
  • anchorobject

    Where a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.

  • anchor.kind"artboard" | "point" | "element"required
  • anchor.xnumber
  • anchor.ynumber
  • anchor.pathstring

    max length 500

  • anchor.textstring

    max length 500

  • bodystringrequired

    min length 1 · max length 8000

  • byobject

    The name the caller declares; grants nothing.

  • by.kind"person" | "agent"required
  • by.namestring

    max length 120

  • toobject[]
  • to[].[].kind"one" | "agent" | "team"required
  • to[].[].idstring

    max length 200

  • to[].[].namestringrequired

    max length 120

Responses

  • 201Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.slideIdstring | null (uuid)
    • data.parentIdstring | null (uuid)
    • data.anchorobjectrequired

      Where a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.

    • data.anchor.kind"artboard" | "point" | "element"required
    • data.anchor.xnumber
    • data.anchor.ynumber
    • data.anchor.pathstring

      max length 500

    • data.anchor.textstring

      max length 500

    • data.bodystringrequired
    • data.byobjectrequired

      The name the caller declares; grants nothing.

    • data.by.kind"person" | "agent"required
    • data.by.namestring

      max length 120

    • data.toobject[]required
    • data.to[].[].kind"one" | "agent" | "team"required
    • data.to[].[].idstring

      max length 200

    • data.to[].[].namestringrequired

      max length 120

    • data.authorIdstringrequired

      The signed caller (the One person h_..., else the Boxes user id)

    • data.resolvedAtstring | null (date-time)
    • data.resolvedBystring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"
  }'

Resolve or reopen a comment, or change its text

PATCH/v1/boxes/slides/presentations/{id}/comments/{comment_id}

boxes:writeboxes_slides_comments_update

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)required

    Presentation id

  • comment_idpath · string (uuid)required

    Comment id

Request body application/json

  • resolvedboolean
  • bodystring

    min length 1 · max length 8000

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.slideIdstring | null (uuid)
    • data.parentIdstring | null (uuid)
    • data.anchorobjectrequired

      Where a comment points: {kind: artboard} | {kind: point, x, y} | {kind: element, path, x, y, text}.

    • data.anchor.kind"artboard" | "point" | "element"required
    • data.anchor.xnumber
    • data.anchor.ynumber
    • data.anchor.pathstring

      max length 500

    • data.anchor.textstring

      max length 500

    • data.bodystringrequired
    • data.byobjectrequired

      The name the caller declares; grants nothing.

    • data.by.kind"person" | "agent"required
    • data.by.namestring

      max length 120

    • data.toobject[]required
    • data.to[].[].kind"one" | "agent" | "team"required
    • data.to[].[].idstring

      max length 200

    • data.to[].[].namestringrequired

      max length 120

    • data.authorIdstringrequired

      The signed caller (the One person h_..., else the Boxes user id)

    • data.resolvedAtstring | null (date-time)
    • data.resolvedBystring | null
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

Share a presentation with a user or email address

POST/v1/boxes/slides/presentations/{id}/share

boxes:writeTested with an API keyboxes_slides_presentations_share

Requires scope boxes:slides:write and admin permission. Provide exactly one of sharedWithUserId or email. An email with no active account creates a pending invitation. Permission editor and owner both map to edit on the stored share.

Parameters

  • idpath · string (uuid)required

    Presentation id

Request body application/json

  • sharedWithUserIdstring (uuid)

    Account user id. Snake_case alias shared_with_user_id is also accepted. Mutually exclusive with email.

  • emailstring

    Recipient email, lowercased and trimmed by the server. Mutually exclusive with sharedWithUserId. max length 320

  • permission"read" | "view" | "viewer" | "comment" | "commenter" | "write" | "edit" | "editor" | "admin" | "owner" | "manage"

    Defaults to read. Stored as view, comment or edit (editor, owner and admin all store edit).

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject | objectrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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/$ID/share" \
  -H "Authorization: Bearer $GENESIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Remove a share from a presentation

DELETE/v1/boxes/slides/presentations/{id}/share/{share_id}

boxes:writeTested with an API keyboxes_slides_presentations_unshare

Requires scope boxes:slides:write and admin permission on the presentation.

Parameters

  • idpath · string (uuid)required

    Presentation id

  • share_idpath · string (uuid)required

    Share id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.deletedbooleanrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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/slides/presentations/$ID/share/$SHARE_ID" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List shares of a presentation

GET/v1/boxes/slides/presentations/{id}/shares

boxes:readTested with an API keyboxes_slides_presentations_shares_list

Requires scope boxes:slides:read and read permission on the presentation.

Parameters

  • idpath · string (uuid)required

    Presentation id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].presentationIdstring (uuid)required
    • data[].[].sharedWithUserIdstring (uuid)required
    • data[].[].permission"view" | "comment" | "edit"required
    • data[].[].createdAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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/shares" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List slides of a presentation

GET/v1/boxes/slides/presentations/{presentation_id}/slides

boxes:readTested with an API keyboxes_slides_slides_list

Requires scope boxes:slides:read and read permission on the presentation. Ordered by position.

Parameters

  • presentation_idpath · string (uuid)required

    Presentation id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].presentationIdstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].positioninteger (int32)required
    • data[].[].layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"required
    • data[].[].titlestring | nullrequired
    • data[].[].contentobjectrequired

      Unspecified: free-form JSON slide content; defaults to an empty object.

    • data[].[].speakerNotesstring | nullrequired
    • data[].[].transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequired
    • data[].[].backgroundobject | nullrequired

      Unspecified: free-form JSON background object, or null.

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Add a slide to a presentation

POST/v1/boxes/slides/presentations/{presentation_id}/slides

boxes:writeTested with an API keyboxes_slides_slides_create

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)required

    Presentation 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"

  • titlestring
  • contentobject

    Unspecified: free-form JSON slide content.

  • speakerNotesstring
  • transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom"
  • backgroundobject

    Unspecified: free-form JSON background object.

Responses

  • 201Created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.positioninteger (int32)required
    • data.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"required
    • data.titlestring | nullrequired
    • data.contentobjectrequired

      Unspecified: free-form JSON slide content; defaults to an empty object.

    • data.speakerNotesstring | nullrequired
    • data.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequired
    • data.backgroundobject | nullrequired

      Unspecified: free-form JSON background object, or null.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

Get a slide

GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}

boxes:readTested with an API keyboxes_slides_slides_get

Requires scope boxes:slides:read and read permission on the presentation.

Parameters

  • presentation_idpath · string (uuid)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.positioninteger (int32)required
    • data.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"required
    • data.titlestring | nullrequired
    • data.contentobjectrequired

      Unspecified: free-form JSON slide content; defaults to an empty object.

    • data.speakerNotesstring | nullrequired
    • data.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequired
    • data.backgroundobject | nullrequired

      Unspecified: free-form JSON background object, or null.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Delete a slide

DELETE/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}

boxes:writeTested with an API keyboxes_slides_slides_delete

Requires scope boxes:slides:write and write permission on the presentation. Updates the presentation slideCount.

Parameters

  • presentation_idpath · string (uuid)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide 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"

Update a slide

PATCH/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}

boxes:writeTested with an API keyboxes_slides_slides_update

Requires scope boxes:slides:write and write permission on the presentation.

Parameters

  • presentation_idpath · string (uuid)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

Request body application/json

  • layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"
  • titlestring
  • contentobject

    Unspecified: free-form JSON slide content.

  • speakerNotesstring
  • transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom"
  • backgroundobject

    Unspecified: free-form JSON background object.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.positioninteger (int32)required
    • data.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"required
    • data.titlestring | nullrequired
    • data.contentobjectrequired

      Unspecified: free-form JSON slide content; defaults to an empty object.

    • data.speakerNotesstring | nullrequired
    • data.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequired
    • data.backgroundobject | nullrequired

      Unspecified: free-form JSON background object, or null.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

Move a slide to a new position

PUT/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/reorder

boxes:writeTested with an API keyboxes_slides_slides_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)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

Request body application/json

  • newPositioninteger (int32)required

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.presentationIdstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.positioninteger (int32)required
    • data.layout"blank" | "title" | "title_content" | "two_column" | "two_column_with_image" | "section_header" | "image_full" | "comparison" | "quote" | "closing"required
    • data.titlestring | nullrequired
    • data.contentobjectrequired

      Unspecified: free-form JSON slide content; defaults to an empty object.

    • data.speakerNotesstring | nullrequired
    • data.transition"none" | "fade" | "slide_left" | "slide_right" | "slide_up" | "zoom" | nullrequired
    • data.backgroundobject | nullrequired

      Unspecified: free-form JSON background object, or null.

    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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
  }'

List a slide's versions, newest first, without content

GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions

boxes:readboxes_slides_versions_list

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)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].slideIdstring (uuid)required
    • data[].[].titlestring | null
    • data[].[].labelstring | null
    • data[].[].reasonstring | null
    • data[].[].byobjectrequired

      The name the caller declares; grants nothing.

    • data[].[].by.kind"person" | "agent"required
    • data[].[].by.namestring

      max length 120

    • data[].[].authorIdstringrequired
    • data[].[].createdAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Snapshot the slide as it is now

POST/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions

boxes:writeboxes_slides_versions_create

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)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

Request body application/json

  • labelstring

    max length 120

  • reasonstring

    max length 500

  • byobject

    The name the caller declares; grants nothing.

  • by.kind"person" | "agent"required
  • by.namestring

    max length 120

Responses

  • 201Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.slideIdstring (uuid)required
    • data.titlestring | null
    • data.labelstring | null
    • data.reasonstring | null
    • data.byobjectrequired

      The name the caller declares; grants nothing.

    • data.by.kind"person" | "agent"required
    • data.by.namestring

      max length 120

    • data.authorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.contentobjectrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

One version of a slide, with its title and content

GET/v1/boxes/slides/presentations/{presentation_id}/slides/{slide_id}/versions/{version_id}

boxes:readboxes_slides_versions_get

Requires scope boxes:slides:read and view permission on the presentation.

Parameters

  • presentation_idpath · string (uuid)required

    Presentation id

  • slide_idpath · string (uuid)required

    Slide id

  • version_idpath · string (uuid)required

    Version id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.slideIdstring (uuid)required
    • data.titlestring | null
    • data.labelstring | null
    • data.reasonstring | null
    • data.byobjectrequired

      The name the caller declares; grants nothing.

    • data.by.kind"person" | "agent"required
    • data.by.namestring

      max length 120

    • data.authorIdstringrequired
    • data.createdAtstring (date-time)required
    • data.contentobjectrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

List presentations shared with the caller

GET/v1/boxes/slides/presentations/shared-with-me

boxes:readTested with an API keyboxes_slides_presentations_shared_with_me_list

Requires scope boxes:slides:read.

Parameters

  • pagequery · integer (int64)
  • limitquery · integer (int64)

    Values outside 1..100 are clamped.

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].ownerIdstring (uuid)required
    • data[].[].themeIdstring | null (uuid)required
    • data[].[].titlestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].status"draft" | "published" | "archived"required
    • data[].[].aspectRatio"16:9" | "4:3" | "16:10"required
    • data[].[].slideCountinteger (int32)required
    • data[].[].tagsstring[]required
    • data[].[].metadataobjectrequired

      Unspecified: free-form JSON object; no schema in the backend.

    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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/presentations/shared-with-me" \
  -H "Authorization: Bearer $GENESIS_API_KEY"

List slide templates (themes)

GET/v1/boxes/slides/themes

boxes:readTested with an API keyboxes_slides_templates_list

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
    • successbooleanrequired
    • dataobject[]required
    • data[].[].idstring (uuid)required
    • data[].[].tenantIdstring (uuid)required
    • data[].[].namestringrequired
    • data[].[].descriptionstring | nullrequired
    • data[].[].colorsobjectrequired

      Unspecified: free-form JSON object of theme colors.

    • data[].[].fontsobjectrequired

      Unspecified: free-form JSON object of theme fonts.

    • data[].[].layoutsany[]required

      Unspecified: free-form JSON array of layout definitions; defaults to an empty array.

    • data[].[].isDefaultbooleanrequired
    • data[].[].createdBystring (uuid)required
    • data[].[].createdAtstring (date-time)required
    • data[].[].updatedAtstring (date-time)required
    • paginationobjectrequired
    • pagination.totalinteger (int64)required
    • pagination.pageinteger (int64)required
    • pagination.limitinteger (int64)required
    • pagination.hasMorebooleanrequired
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Create a slide template (theme)

POST/v1/boxes/slides/themes

boxes:writeTested with an API keyboxes_slides_templates_create

Backed by slide themes. Requires scope boxes:slides:write.

Request body application/json

  • namestringrequired

    min length 1 · max length 255

  • descriptionstring
  • colorsobject

    Unspecified: free-form JSON object of theme colors.

  • fontsobject

    Unspecified: free-form JSON object of theme fonts.

  • layoutsany[]

    Unspecified: free-form JSON array of layout definitions.

  • isDefaultboolean

    default false

Responses

  • 201Created
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.namestringrequired
    • data.descriptionstring | nullrequired
    • data.colorsobjectrequired

      Unspecified: free-form JSON object of theme colors.

    • data.fontsobjectrequired

      Unspecified: free-form JSON object of theme fonts.

    • data.layoutsany[]required

      Unspecified: free-form JSON array of layout definitions; defaults to an empty array.

    • data.isDefaultbooleanrequired
    • data.createdBystring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"
  }'

Get a slide template (theme)

GET/v1/boxes/slides/themes/{id}

boxes:readTested with an API keyboxes_slides_templates_get

Backed by slide themes. Requires scope boxes:slides:read. Tenant-scoped.

Parameters

  • idpath · string (uuid)required

    Template (theme) id

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.namestringrequired
    • data.descriptionstring | nullrequired
    • data.colorsobjectrequired

      Unspecified: free-form JSON object of theme colors.

    • data.fontsobjectrequired

      Unspecified: free-form JSON object of theme fonts.

    • data.layoutsany[]required

      Unspecified: free-form JSON array of layout definitions; defaults to an empty array.

    • data.isDefaultbooleanrequired
    • data.createdBystring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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"

Delete a slide template (theme)

DELETE/v1/boxes/slides/themes/{id}

boxes:writeTested with an API keyboxes_slides_templates_delete

Backed by slide themes. Requires scope boxes:slides:write.

Parameters

  • idpath · string (uuid)required

    Template (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"

Update a slide template (theme)

PATCH/v1/boxes/slides/themes/{id}

boxes:writeTested with an API keyboxes_slides_templates_update

Backed by slide themes. Requires scope boxes:slides:write.

Parameters

  • idpath · string (uuid)required

    Template (theme) id

Request body application/json

  • namestring

    min length 1 · max length 255

  • descriptionstring
  • colorsobject

    Unspecified: free-form JSON object of theme colors.

  • fontsobject

    Unspecified: free-form JSON object of theme fonts.

  • layoutsany[]

    Unspecified: free-form JSON array of layout definitions.

  • isDefaultboolean

Responses

  • 200Success
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.idstring (uuid)required
    • data.tenantIdstring (uuid)required
    • data.namestringrequired
    • data.descriptionstring | nullrequired
    • data.colorsobjectrequired

      Unspecified: free-form JSON object of theme colors.

    • data.fontsobjectrequired

      Unspecified: free-form JSON object of theme fonts.

    • data.layoutsany[]required

      Unspecified: free-form JSON array of layout definitions; defaults to an empty array.

    • data.isDefaultbooleanrequired
    • data.createdBystring (uuid)required
    • data.createdAtstring (date-time)required
    • data.updatedAtstring (date-time)required
    • metaobject

      Response metadata. The slides service generates a random requestId per response.

    • meta.requestIdstring
    • meta.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 '{}'

Spaces

List the spaces the person is in now

GET/v1/boxes/spaces

Person onlyboxes_spaces_list

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
    • successbooleanrequired
    • dataobject[]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"

Make a space; the person is its owner

POST/v1/boxes/spaces

Person onlyboxes_spaces_create

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

  • titlestringrequired

    The space's name

  • glyphstring

    The person's chosen glyph

  • kindHintstring

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

A space and its present members, to members only

GET/v1/boxes/spaces/{id}

Person onlyboxes_spaces_get

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)required

    Space ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

Whether the person may read, comment on or edit an object now

POST/v1/boxes/spaces/can

Person onlyboxes_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"required
  • resourceIdstringrequired
  • need"view" | "comment" | "edit"required

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
    • data.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"
  }'

Export the person's own part of every space they are in

GET/v1/boxes/spaces/export

Person onlyboxes_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
    • successbooleanrequired
    • dataobjectrequired
  • 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"

List the grants the person gave and the live grants that reach them

GET/v1/boxes/spaces/grants

Person onlyboxes_spaces_grants_list

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
    • successbooleanrequired
    • dataobject[]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"

Share an object the person owns with a space or a person they share a space with (live only)

POST/v1/boxes/spaces/grants

Person onlyboxes_spaces_grants_create

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"required
  • resourceIdstringrequired
  • granteeKind"space" | "person"required
  • granteeIdstringrequired
  • permission"view" | "comment" | "edit"required
  • approvalIdstringrequired

    The person's yes for this share, minted by their own app for the press

  • form"live"

Responses

  • 201Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"
  }'

End a grant the person gave; the next read by anyone it reached is refused

POST/v1/boxes/spaces/grants/{grant_id}/revoke

Person onlyboxes_spaces_grants_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)required

    Grant ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

List the spaces the person has been asked to join and has not answered

GET/v1/boxes/spaces/invitations

Person onlyboxes_spaces_invitations_list

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
    • successbooleanrequired
    • dataobject[]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"

Accept

Accept an invitation to a space

POST/v1/boxes/spaces/{id}/accept

Person onlyboxes_spaces_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)required

    Space ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

Decline

Decline an invitation to a space

POST/v1/boxes/spaces/{id}/decline

Person onlyboxes_spaces_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)required

    Space ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

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

Person onlyboxes_spaces_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)required

    Space ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

Leave

Leave a space with the person's One and agents; their live grants to it end

POST/v1/boxes/spaces/{id}/leave

Person onlyboxes_spaces_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)required

    Space ID (a UUID)

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"

Members

The owner asks a person to join, or a member adds their own One or agent

POST/v1/boxes/spaces/{id}/members

Person onlyboxes_spaces_members_add

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)required

    Space ID (a UUID)

Request body application/json

  • principalstringrequired

    The person's signed id (h_...), or their One (one_<h>) or agent

  • principalKind"person" | "one" | "agent"required
  • onBehalfOfstring

    For a One or an agent, the member it acts for (always the caller)

  • role"member" | "guest"

Responses

  • 201Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"
  }'

The owner removes a member, as if they left

POST/v1/boxes/spaces/{id}/members/remove

Person onlyboxes_spaces_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)required

    Space ID (a UUID)

Request body application/json

  • principalstringrequired

Responses

  • 200Answered
    Response fields
    • successbooleanrequired
    • dataobjectrequired
  • 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"
  }'

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