# REST API Plain HTTP for the tools that speak it rather than MCP: Zapier, Make, n8n, a shell script, a scheduled job. 50 operations under `https://api.roma.app/api/v1`, each one of the MCP server's tools wearing an HTTP method, so what you can do here is exactly what an MCP client can do and the parameters are the same. The document that describes it is at [`/api/v1/openapi.json`](https://api.roma.app/api/v1/openapi.json); import it into Zapier, Postman or an OpenAPI client. ## How to call - **Base URL** `https://api.roma.app/api/v1`. JSON in, JSON out. - **Authentication**: a Roma API key or an OAuth access token as a bearer: `Authorization: Bearer roma_…`. Create a key in Roma under Settings, then Connections. [Authentication](/developers/authentication#api-keys) has the details. - **Ids** are UUIDs; get them from `GET /context`, the list routes or `GET /search`. An id that belongs to someone else answers `404`. - **Query parameters** are typed by the schema: `limit=5`, `includeArchived=true`, a list as `taskStatus=todo,inProgress`. - **Errors** are `{ "error": "one sentence", "code": "invalid | notFound | methodNotAllowed | unauthorized | rateLimited | toolError" }` with `400`, `401`, `404`, `405` or `429`. A `429` carries `Retry-After`; a `405` carries `Allow`. - **Rate limit**: 60 requests a minute per key or token, counted before authentication, so a bad key is counted too. - **Status codes**: a route that makes something answers `201` (`POST /lists`, `POST /sections`, `POST /items`, `POST /items/{id}/messages`, `POST /uploads`, `POST /triggers`, `POST /experts`); everything else `200`. Deletes are soft: `GET /trash` and `POST /trash/restore` bring things back for about 30 days. ## Adding a task The one call most automations need: a line of text becomes a task on the Tasks list. `POST /items` takes one or many; `listId` is a list's id, or the word `tasks` for the Tasks list and `notes` for the Notes list. What you set yourself (`dueAt`, `taskStatus`) stays as sent; `enrich: true` lets the pass that runs a beat later tidy the wording and pick up the due date the text names. ```bash curl -X POST "https://api.roma.app/api/v1/items" \ -H "Authorization: Bearer roma_…" -H "Content-Type: application/json" \ -d '{"listId": "tasks", "items": [{"title": "Call the dentist tomorrow at 10", "enrich": true}]}' ``` ## At a glance - **Context**: `GET /context` - **Agents**: `GET /agents`, `GET /guide` - **Lists**: `GET /lists`, `POST /lists`, `PATCH /lists/{id}`, `DELETE /lists/{id}`, `POST /sections`, `PATCH /sections/{id}`, `DELETE /sections/{id}` - **Sharing**: `GET /lists/{id}/members`, `POST /lists/{id}/sharing`, `GET /items/{id}/members`, `POST /items/{id}/sharing` - **Items**: `GET /items`, `POST /items`, `PATCH /items`, `DELETE /items`, `POST /items/query`, `POST /items/move`, `GET /items/{id}`, `GET /items/{id}/versions`, `GET /items/{id}/versions/{versionId}`, `GET /items/{id}/blame`, `POST /items/{id}/versions/{versionId}/restore`, `POST /uploads`, `GET /jobs/{id}` - **Chats**: `GET /items/{id}/messages`, `POST /items/{id}/messages`, `GET /items/{id}/log`, `GET /items/{id}/wait` - **Search**: `GET /search`, `GET /lists/{id}/grep` - **Trash**: `GET /trash`, `POST /trash/restore` - **Automations**: `GET /automations`, `GET /automations/{id}`, `GET /automations/{id}/runs`, `POST /automations/{id}/run` - **Triggers**: `GET /triggers`, `POST /triggers`, `PATCH /triggers/{id}`, `DELETE /triggers/{id}` - **Experts**: `GET /experts`, `POST /experts`, `GET /experts/{id}`, `PATCH /experts/{id}`, `GET /experts/{id}/versions`, `POST /experts/{id}/versions/{versionId}/restore` - **Memory**: `GET /memory/lookup` ## Context ### GET /context **The workspace in one call** · `Read-only` · MCP tool `get_context` Use this at the start of a conversation that involves the user's Roma workspace, or when you need an overview of it. Returns, in one call: how Roma works; the user (name, timezone, today's date and local time); what they asked the AI to remember about them; their lists with ids, properties and item counts (the Tasks list and the Notes list named by id); overdue, due-today, in-progress and upcoming tasks; the newest unsorted tasks; recently touched notes; their automations with the last run; and the last few days of activity; and where the workspace stands as a whole (how many items, and a line on where first items come from when it has none). Everything comes with ids for follow-up calls. It is an overview, not the full data: use search, list_items, query_items or get_item for depth. When this call is made under one of the user's agent records (a connected app, or a record register_agent bound), `agent` carries that record (id, name, kind, door) and the items delegated to it (`delegated`; `assigned` is the same list under its old name), newest change first, so an agent finds its work in the one call it already makes. Pass focusListId to scope the task sections to one list. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `focusListId` | `string` | no | Optional list id. Scopes the task sections to that list; the rest stays workspace-wide. | | `agentName` | `string \| null` | no | Who is calling, when this sign-in carries several agents (several Grok Bots of one account; ChatGPT and a Dot): your own agent's name, or its agentId. Pass it on every call. A sign-in or key with one agent is that agent whatever this says. | **Returns** `200` - `about` (`string[]`) - `user` (`object`) - `unavailable` (`string[]`) - `whoAmI` (`object`): In place of `agent`, when this sign-in carries several agents of one kind and the call named none of them: `note` asks who is calling, `agents` lists them, each with its own delegated items. Call again with agentName. - `agent` (`object`): The agent record this call is made under, with the items delegated to it, when there is one. `door` is the wire word for how Roma reaches it (bridge: the agent runs on the user's own computer and is started there); the plain words the record's page uses are `reach` on register_agent's answer and on list_agents. - `links` (`object`): The roots of a row's links: `/artifacts/` is the item's page in Roma, `://artifacts/` the same item in the Roma Mac app. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/context" \ -H "Authorization: Bearer roma_…" ``` ## Agents ### GET /agents **The user's agents, and whether Roma can reach each one right now** · `Read-only` · MCP tool `list_agents` The user's agents — the records under Settings → Agents — and whether Roma can reach each one right now (`connected`: its door proven and not stale, the record bound, its client not signed out). Only an agent Roma can hand work to (`isRemote`: a cloud agent, or a local one that is started on the user's computer) that is `connected` can be a delegate; the names here are the names `delegate` takes on create_items and update_items and `delegateNewItemsTo` takes on update_list. Returns each record's id, name, kind, whether Roma can hand it work at all (`isRemote`), whether it is connected, its state, when Roma last heard from it, when it was last reachable, and `reach`: how Roma gets a task to it, in the words of its page (started on the user's computer, its own schedule, an address, email, a subscription, or not set up yet). `notStarting` true (with `note`) means the agent has not started on the last two or more tasks Roma sent it: it can still be handed work. `note` on an agent that cannot be handed work says why, where the reason is on the user's computer and only the user can fix it. **Returns** `200` - `agents` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/agents" \ -H "Authorization: Bearer roma_…" ``` ### GET /guide **The guide for agents as text: the index, the rules and one kind's section or help page** · `Read-only` · MCP tool `get_guide` The Roma guide for agents and the Roma skill as text, the same as roma.app/agents.md, its pages and roma.app/skill.md, for the texts you copy for the person, whole. Read index, then rules once per session, then your section; help only when a step fails. Call it once after connecting; pass kind when Roma does not know yours yet. Pass part "index" for agents.md, "rules" for agents/rules.md, "section" for your kind's page, "help" for your kind's help page; both (the default) is index, rules and section together. Pass part "skill" for the Roma skill, the same text as roma.app/skill.md, when your fetch tool refuses that address, and "skill-full" for the full skill at roma.app/skill-full.md. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `kind` | `string` | no | Your kind, when Roma does not know it yet: chatgpt (ChatGPT), dot (ChatGPT Dot), claude (Claude), claudeCode (Claude Code), codex (Codex), muse (Muse), museCode (Muse Code), instinct (Instinct), grok (Grok), grokBot (Grok Bot), hermes (Hermes), poke (Poke), town (Town), webhook (A webhook), email (An agent with an inbox), other (Custom Agent). Left out, the record this call is made under names it. | | `part` | `"both" \| "index" \| "rules" \| "section" \| "help" \| "skill" \| "skill-full"` | no | Which part to return: both (the default: index, rules and your section), index (agents.md alone), rules (the rules for every kind alone), section (your kind's section alone), help (your kind's help page, for a step that fails), skill (the Roma skill, the text of roma.app/skill.md), or skill-full (the full skill, roma.app/skill-full.md). | **Returns** `200` - `version` (`string`): The guide's version line. - `index` (`string`): agents.md as Markdown: the first message, the order of the first calls, the two parts, the links. With part both or index. - `rules` (`string`): The rules for every kind as Markdown, agents/rules.md. With part both or rules. - `section` (`object | null`): Your kind's section as Markdown, under its title. Null when the kind is not known or has no section of its own. With part both or section. - `help` (`object | null`): Your kind's help page as Markdown. Null when the kind has no help page yet. Only with part help. - `skill` (`string`): The Roma skill as Markdown, the text of this build's /skill.md (part skill) or /skill-full.md (part skill-full). - `pages` (`object`) - `note` (`string`): Why the section or the help page is missing, when it is. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/guide" \ -H "Authorization: Bearer roma_…" ``` ## Lists ### GET /lists **The lists with their properties and counts** · `Read-only` · MCP tool `list_lists` The user's lists: every live list with its id, name, icon, standing instructions, item count, layout and PROPERTIES with their stable ids — the ids create_items and update_items key values on. A list whose statusPropertyId is "status" and dueDatePropertyId is "dueDate" keeps a status and a due date on its items, which makes them tasks; the Tasks list and the Notes list are named by id. Use it to resolve a list's name to its id before writing to it, or to read a list's properties you have not seen yet. Pass suppressOptions: true when you only need names and counts; a select property can carry hundreds of options (a select value may be sent as its label). `sections` are the sidebar's sections in order (the default section, id "lists", and the ones the user made) and each list names its `section`; create_list and update_list take `section` to place a list. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `suppressOptions` | `boolean` | no | true replaces each select property's option list with an optionCount — much smaller payload. | **Returns** `200` - `total` (`number`) - `tasksListId` (`string | null`) - `notesListId` (`string | null`) - `sections` (`object[]`): The sidebar's sections in the rail's order, each with its lists. - `lists` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/lists" \ -H "Authorization: Bearer roma_…" ``` ### POST /lists **Create a list** · `Adds data` · MCP tool `create_list` Create a list. template "tasks" creates a list for to-dos: its items keep a status (todo / inProgress / completed) and a due date, like the Tasks list; `properties` given with it are added beside those two (an Agent person property, say). Otherwise `properties` shape it (a reading list with Author and Status, a CRM with Company and Email); omit both to start with no properties — every item has a title. Check list_lists or get_context first so an existing list is not duplicated. `section` places the list in a sidebar section (an existing section's id or name, or a new name, which makes the section); omitted, the list lands in the default section. Returns the list with its id and its properties' stable ids, ready for create_items. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `name` | `string` | yes | The list's name, in the user's own words. | | `section` | `string \| null` | no | The sidebar section to place the list in: a section's id or name from list_lists, or a NEW name, which makes the section. Omit, or pass null, for the default section. | | `icon` | `string \| null` | no | An emoji for the list. | | `instructions` | `string \| null` | no | Standing rules for how entries should be handled, one rule per line. Max 500 characters — they ride in the prompt on every turn. | | `template` | `"tasks" \| null` | no | "tasks" creates a list for to-dos that keeps a status and a due date. Omit for a list shaped by `properties`. | | `properties` | `object[] \| null` | no | The list's own properties (3 to 6 is typical; a title exists on every item, so no title property). With template "tasks" they stand beside the status and the due date. | | `titleLabel` | `string \| null` | no | What the title column is headed on this list — the word every item's name sits under: Name on a CRM, Book on a reading list. Omit for Title. Never a property: every item has a title. | **Returns** `201` - `id` (`string`) - `name` (`string`) - `icon` (`string | null`) - `instructions` (`string | null`) - `titleLabel` (`string | null`): The title column's name on this list (Name on a CRM, Book on a reading list); null reads as Title. An item's name is its title under any label. - `layout` (`string`) - `role` (`"tasks" | "notes" | "other"`): What the list's items are, read from its properties: "tasks" when it keeps the status and the due date, "notes" when it has no properties, "other" when its properties are its own. - `properties` (`object[]`) - `statusPropertyId` (`string | null`): "status" when the list keeps its items' status in the task columns. - `dueDatePropertyId` (`string | null`): "dueDate" when the list keeps its items' due date in the task columns. - `itemCount` (`number`): The list's open items: every live item but a repeating template, and never a completed one on a list that keeps its status in the task columns. - `isLifeAdmin` (`boolean`) - `section` (`object | null`): The sidebar section the list stands in (id and name); the default section's id is "lists". - `isPinned` (`boolean`): true when the user pinned the list to the top of the sidebar, beside Tasks. - `warning` (`string`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/lists" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"name":""}' ``` ### PATCH /lists/{id} **Change a list's name, icon, instructions, layout or properties** · `Updates or removes existing data` · MCP tool `update_list` Change the settings of one list in the signed-in user's Roma workspace. Use it when the user asks to rename a list, change its icon, standing instructions or layout, add, rename, retype, reorder or remove its properties (its columns), move it to another sidebar section, pin, archive, follow or mute it, or choose which delegate its new items get. It changes the list and its properties, not the content of the items on it; update_items changes items. Only the fields passed change, and the call returns the list as it stands afterwards, with its properties' ids. What a change overwrites or removes: `instructions` replaces the whole text (list_lists returns the current text; "" clears it). `deletePropertyIds` removes properties from the list, and their values no longer show on its items. `updateProperty` renames, retypes or re-options one property per call, and a retype migrates the items' values. A change that would clear or trim values answers a preview first (preview: true, with what would be lost) and writes nothing until the same call is repeated with acknowledgeDataLoss: true. `archived` sets the list aside; it is kept and comes back with archived: false. Limits: the status and due date properties of a task list can be renamed, never retyped or removed. The title column is renamed through `titleLabel`, never retyped, removed or hidden. A shared list has no rule for new items' delegate (`delegateNewItemsTo` is refused there). On a list somebody shared with the user, a member's change to the list applies for everyone on it; `section`, `isPinned` and `following` are the user's own and change nothing for the others, and the pin and the following also work on a list the user can only view. **Path** - `id`: The list's id (from list_lists or get_context). **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `isPinned` | `boolean \| null` | no | true pins the list to the top of the sidebar (beside Tasks), false unpins it. The user's own, on a joined list too. Omit, or pass null, to leave it. | | `archived` | `boolean \| null` | no | true sets the list aside (out of the sidebar, kept and reversible), false brings it back. Omit, or pass null, to leave it. | | `following` | `object \| null` | no | The user's own following of the list's edits and chat: each half "follow" or "mute". The user's own, on a joined list too. Omit to leave it. | | `section` | `string \| null` | no | Move the list into a sidebar section: a section's id or name from list_lists, or a NEW name, which makes the section; null moves it to the default section. On a list somebody shared with the user it files the list in the user's own sidebar and changes nothing for the others. Omit to leave it where it is. | | `name` | `string \| null` | no | New name. Omit, or pass null, to leave it unchanged. | | `icon` | `string \| null` | no | New emoji; "" removes it. Omit, or pass null, to leave it unchanged. | | `instructions` | `string \| null` | no | REPLACES the standing rules (max 500 characters); "" clears them. Read the current text with list_lists first and carry forward what is still true. Omit, or pass null, to leave them unchanged. | | `titleLabel` | `string \| null` | no | The title column's new name on this list (Name, Book, Client); "" resets it to Title. Omit, or pass null, to leave it unchanged. The column stays every item's title under any name. | | `layout` | `"list" \| "kanban" \| "table" \| null` | no | How the list opens: 'list', 'kanban' (the board) or 'table'. | | `columnOrder` | `string[] \| null` | no | Left-to-right property order: EVERY property exactly once, by property id. | | `addProperties` | `object[] \| null` | no | Properties to ADD, every one in this call. Existing items leave a new property unset. | | `updateProperty` | `object \| null` | no | ONE property to rename, retype or re-option. | | `statusMoveTo` | `string \| null` | no | When the reserved status's options drop ONE status that items still hold: the status id those items move to first. Without it the call is refused naming the count. | | `deletePropertyIds` | `string[] \| null` | no | Stable ids of the properties to remove, every one in this call. | | `acknowledgeDataLoss` | `boolean \| null` | no | true ONLY on a repeat call, after a preview reported items that would clear or trim and you told the user what will be lost. | | `delegateNewItemsTo` | `string \| null` | no | Which DELEGATE each item ADDED to this list is handed to from now on: a name or id from the list's `delegates` in list_lists (the Operator, or one of the user's own agents, which is woken for each new item), "operator" (Roma's own first turn on each new item, the default), "nobody" (no delegate: new items stay quiet), or "default" (the account's default delegate copied onto this list — the rule every new list starts with; the list keeps it from then on). Never a person: a person is assigned, not delegated. A shared list has no default delegate; the rule is refused there. Changes nothing about the items already there, nor about how a typed title is prepared. Omit, or pass null, to leave the rule unchanged. | **Returns** `200` - `id` (`string`) - `name` (`string`) - `icon` (`string | null`) - `instructions` (`string | null`) - `titleLabel` (`string | null`): The title column's name on this list (Name on a CRM, Book on a reading list); null reads as Title. An item's name is its title under any label. - `layout` (`string`) - `role` (`"tasks" | "notes" | "other"`): What the list's items are, read from its properties: "tasks" when it keeps the status and the due date, "notes" when it has no properties, "other" when its properties are its own. - `properties` (`object[]`) - `statusPropertyId` (`string | null`): "status" when the list keeps its items' status in the task columns. - `dueDatePropertyId` (`string | null`): "dueDate" when the list keeps its items' due date in the task columns. - `itemCount` (`number`): The list's open items: every live item but a repeating template, and never a completed one on a list that keeps its status in the task columns. - `isLifeAdmin` (`boolean`) - `section` (`object | null`): The sidebar section the list stands in (id and name); the default section's id is "lists". - `isPinned` (`boolean`): true when the user pinned the list to the top of the sidebar, beside Tasks. - `preview` (`boolean`) - `warning` (`string`) - `archived` (`boolean`): Whether the list is set aside, after the call. - `isFollowingEdits` (`boolean`): Whether the user follows the list's edits, after a `following` change. - `isFollowingChat` (`boolean`): Whether the user follows the list's chat, after a `following` change. **Example** ```bash curl -X PATCH "https://api.roma.app/api/v1/lists/" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### DELETE /lists/{id} **Delete a list into the trash** · `Updates or removes existing data` · MCP tool `delete_list` Delete a list by id. Deleting the list also deletes EVERY item on it. SOFT delete: the list and its items are recoverable for ~30 days via restore_deleted (type "list"), which brings the items deleted with it back too. When the list still holds items the call refuses unless confirmDeleteItems is true, so the blast radius is always named before it happens. The hub's own Tasks list and Life Admin cannot be deleted. **Path** - `id`: The list's id (from list_lists). **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `confirmDeleteItems` | `boolean \| null` | no | Required (true) when the list holds items: confirms deleting the list AND every item on it. Confirm with the user first. | **Returns** `200` - `deleted` (`boolean`) - `id` (`string`) - `name` (`string`) - `itemsDeleted` (`number`) - `job` (`object`): Present when the batch was past the inline threshold (more than 20 entries or 2 MB in one call): the call was accepted and stored as a job, nothing is written yet, and the entries land in the background a few at a time. Poll get_job with `job.id` for progress; the other fields of the result are empty. **Example** ```bash curl -X DELETE "https://api.roma.app/api/v1/lists/" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### POST /sections **Make a sidebar section** · `Updates or removes existing data` · MCP tool `manage_sections` Make, rename, delete, hide or show a sidebar section (the groups the user's lists stand in; list_lists and get_context carry them in order). `create` makes an empty section at the end, or answers the section that already wears the name; `rename` renames one (the default section too — its name is Lists until renamed; "" puts Lists back); `delete` removes a section and its lists return to the default section (the default section is never deleted); `hide` / `show` fold a section out of or back onto the sidebar on every device. To put a list INTO a section use create_list or update_list with `section`. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `section` | `string \| null` | no | The section's id or name (from list_lists); "lists" or its name for the default section. Not for create. | | `name` | `string \| null` | no | create: the new section's name. rename: the new name ("" on the default section puts Lists back). | **Returns** `201` - `action` (`string`) - `section` (`object`) - `created` (`boolean`): create: true when the call made the section. - `releasedListIds` (`string[]`): delete: the lists that returned to the default section. **Example** ```bash curl -X POST "https://api.roma.app/api/v1/sections" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### PATCH /sections/{id} **Rename, hide or show a sidebar section** · `Updates or removes existing data` · MCP tool `manage_sections` Make, rename, delete, hide or show a sidebar section (the groups the user's lists stand in; list_lists and get_context carry them in order). `create` makes an empty section at the end, or answers the section that already wears the name; `rename` renames one (the default section too — its name is Lists until renamed; "" puts Lists back); `delete` removes a section and its lists return to the default section (the default section is never deleted); `hide` / `show` fold a section out of or back onto the sidebar on every device. To put a list INTO a section use create_list or update_list with `section`. **Path** - `id`: The section's id or name (from list_lists); "lists" or its name for the default section. Not for create. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `action` | `"create" \| "rename" \| "delete" \| "hide" \| "show"` | yes | What to do. | | `name` | `string \| null` | no | create: the new section's name. rename: the new name ("" on the default section puts Lists back). | **Returns** `200` - `action` (`string`) - `section` (`object`) - `created` (`boolean`): create: true when the call made the section. - `releasedListIds` (`string[]`): delete: the lists that returned to the default section. **Example** ```bash curl -X PATCH "https://api.roma.app/api/v1/sections/" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"action":"create"}' ``` ### DELETE /sections/{id} **Delete a sidebar section; its lists return to the default section** · `Updates or removes existing data` · MCP tool `manage_sections` Make, rename, delete, hide or show a sidebar section (the groups the user's lists stand in; list_lists and get_context carry them in order). `create` makes an empty section at the end, or answers the section that already wears the name; `rename` renames one (the default section too — its name is Lists until renamed; "" puts Lists back); `delete` removes a section and its lists return to the default section (the default section is never deleted); `hide` / `show` fold a section out of or back onto the sidebar on every device. To put a list INTO a section use create_list or update_list with `section`. **Path** - `id`: The section's id or name (from list_lists); "lists" or its name for the default section. Not for create. **Returns** `200` - `action` (`string`) - `section` (`object`) - `created` (`boolean`): create: true when the call made the section. - `releasedListIds` (`string[]`): delete: the lists that returned to the default section. **Example** ```bash curl -X DELETE "https://api.roma.app/api/v1/sections/" \ -H "Authorization: Bearer roma_…" ``` ## Sharing ### GET /lists/{id}/members **Who a list is shared with: members, pending invitations, the public link** · `Updates or removes existing data` · MCP tool `manage_sharing` Read or change who a list or an item is shared with. `members` reads who is on it: the members with their level, the pending invitations and the public link. `invite` sends an email invitation to each address in `emails` at `level` — "edit" (Can edit, the default) or "full" (Can edit and invite); there is no viewer level. `link` turns the public link on or off (`linkOn`): on, anyone with the link can edit. `remove` takes a member off (`member`: a name or user id), `leave` takes the user off a list or item somebody shared with them, `stop` ends the sharing for everyone. An invite, and a link turned on, answer a PREVIEW first (preview: true, with `wouldInvite` or `wouldMakeLinkOn`) and change nothing until the same call is repeated with confirm: true; the other actions run at once. Who may do what: the owner turns the link, removes a member and stops the sharing; the owner or a member with full access invites; a member leaves. An item held through a shared list is left or removed through the list, not the item. Returns the action, the subject (kind, id, title, isShared) and the action's own fields: `members` and `invitations` for a read; `results` per email (outcome, sent) for an invite; `shareUrl` and `linkOn` for the link; `removed`, `left` or `ended`. A subject the user cannot reach, a member nobody answers to, or an action the user's standing does not allow is refused with the reason. **Path** - `id`: The list's id (from list_lists). One of listId / itemId. **Returns** `200` - `action` (`string`) - `subject` (`object`) - `preview` (`boolean`): true: nothing changed; repeat the call with confirm: true to do it. - `wouldInvite` (`string[]`): preview of an invite: the addresses that would be emailed. - `level` (`string`): preview of an invite: the level they would get. - `wouldMakeLinkOn` (`boolean`): preview of a link turned on. - `note` (`string`) - `members` (`object[]`) - `invitations` (`object[]`) - `results` (`object[]`) - `shareUrl` (`string | null`) - `linkOn` (`boolean`) - `removed` (`boolean`) - `left` (`boolean`) - `ended` (`boolean`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/lists//members" \ -H "Authorization: Bearer roma_…" ``` ### POST /lists/{id}/sharing **Invite people to a list, turn its public link on or off, remove a member, leave it, or stop sharing it** · `Updates or removes existing data` · MCP tool `manage_sharing` Read or change who a list or an item is shared with. `members` reads who is on it: the members with their level, the pending invitations and the public link. `invite` sends an email invitation to each address in `emails` at `level` — "edit" (Can edit, the default) or "full" (Can edit and invite); there is no viewer level. `link` turns the public link on or off (`linkOn`): on, anyone with the link can edit. `remove` takes a member off (`member`: a name or user id), `leave` takes the user off a list or item somebody shared with them, `stop` ends the sharing for everyone. An invite, and a link turned on, answer a PREVIEW first (preview: true, with `wouldInvite` or `wouldMakeLinkOn`) and change nothing until the same call is repeated with confirm: true; the other actions run at once. Who may do what: the owner turns the link, removes a member and stops the sharing; the owner or a member with full access invites; a member leaves. An item held through a shared list is left or removed through the list, not the item. Returns the action, the subject (kind, id, title, isShared) and the action's own fields: `members` and `invitations` for a read; `results` per email (outcome, sent) for an invite; `shareUrl` and `linkOn` for the link; `removed`, `left` or `ended`. A subject the user cannot reach, a member nobody answers to, or an action the user's standing does not allow is refused with the reason. **Path** - `id`: The list's id (from list_lists). One of listId / itemId. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `action` | `"members" \| "invite" \| "link" \| "remove" \| "leave" \| "stop"` | yes | What to do. | | `itemId` | `string \| null` | no | The item's id, its ID (ROMA-12) or a Roma link to it. One of listId / itemId. | | `emails` | `string[] \| null` | no | invite: the email addresses to invite. | | `level` | `"full" \| "edit" \| null` | no | invite: the level every invitee gets — "edit" (Can edit, the default) or "full" (Can edit and invite). | | `linkOn` | `boolean \| null` | no | link: true turns the public link on (anyone with it can edit), false turns it off. | | `member` | `string \| null` | no | remove: the member to take off, by name or user id. | | `confirm` | `boolean \| null` | no | true on the repeat of an invite, or of a link turned on, after the preview: the call then sends the emails or turns the link on. | **Returns** `200` - `action` (`string`) - `subject` (`object`) - `preview` (`boolean`): true: nothing changed; repeat the call with confirm: true to do it. - `wouldInvite` (`string[]`): preview of an invite: the addresses that would be emailed. - `level` (`string`): preview of an invite: the level they would get. - `wouldMakeLinkOn` (`boolean`): preview of a link turned on. - `note` (`string`) - `members` (`object[]`) - `invitations` (`object[]`) - `results` (`object[]`) - `shareUrl` (`string | null`) - `linkOn` (`boolean`) - `removed` (`boolean`) - `left` (`boolean`) - `ended` (`boolean`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/lists//sharing" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"action":"members"}' ``` ### GET /items/{id}/members **Who an item is shared with: members, pending invitations, the public link** · `Updates or removes existing data` · MCP tool `manage_sharing` Read or change who a list or an item is shared with. `members` reads who is on it: the members with their level, the pending invitations and the public link. `invite` sends an email invitation to each address in `emails` at `level` — "edit" (Can edit, the default) or "full" (Can edit and invite); there is no viewer level. `link` turns the public link on or off (`linkOn`): on, anyone with the link can edit. `remove` takes a member off (`member`: a name or user id), `leave` takes the user off a list or item somebody shared with them, `stop` ends the sharing for everyone. An invite, and a link turned on, answer a PREVIEW first (preview: true, with `wouldInvite` or `wouldMakeLinkOn`) and change nothing until the same call is repeated with confirm: true; the other actions run at once. Who may do what: the owner turns the link, removes a member and stops the sharing; the owner or a member with full access invites; a member leaves. An item held through a shared list is left or removed through the list, not the item. Returns the action, the subject (kind, id, title, isShared) and the action's own fields: `members` and `invitations` for a read; `results` per email (outcome, sent) for an invite; `shareUrl` and `linkOn` for the link; `removed`, `left` or `ended`. A subject the user cannot reach, a member nobody answers to, or an action the user's standing does not allow is refused with the reason. **Path** - `id`: The item's id, its ID (ROMA-12) or a Roma link to it. One of listId / itemId. **Returns** `200` - `action` (`string`) - `subject` (`object`) - `preview` (`boolean`): true: nothing changed; repeat the call with confirm: true to do it. - `wouldInvite` (`string[]`): preview of an invite: the addresses that would be emailed. - `level` (`string`): preview of an invite: the level they would get. - `wouldMakeLinkOn` (`boolean`): preview of a link turned on. - `note` (`string`) - `members` (`object[]`) - `invitations` (`object[]`) - `results` (`object[]`) - `shareUrl` (`string | null`) - `linkOn` (`boolean`) - `removed` (`boolean`) - `left` (`boolean`) - `ended` (`boolean`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//members" \ -H "Authorization: Bearer roma_…" ``` ### POST /items/{id}/sharing **Invite people to an item, turn its public link on or off, remove a member, leave it, or stop sharing it** · `Updates or removes existing data` · MCP tool `manage_sharing` Read or change who a list or an item is shared with. `members` reads who is on it: the members with their level, the pending invitations and the public link. `invite` sends an email invitation to each address in `emails` at `level` — "edit" (Can edit, the default) or "full" (Can edit and invite); there is no viewer level. `link` turns the public link on or off (`linkOn`): on, anyone with the link can edit. `remove` takes a member off (`member`: a name or user id), `leave` takes the user off a list or item somebody shared with them, `stop` ends the sharing for everyone. An invite, and a link turned on, answer a PREVIEW first (preview: true, with `wouldInvite` or `wouldMakeLinkOn`) and change nothing until the same call is repeated with confirm: true; the other actions run at once. Who may do what: the owner turns the link, removes a member and stops the sharing; the owner or a member with full access invites; a member leaves. An item held through a shared list is left or removed through the list, not the item. Returns the action, the subject (kind, id, title, isShared) and the action's own fields: `members` and `invitations` for a read; `results` per email (outcome, sent) for an invite; `shareUrl` and `linkOn` for the link; `removed`, `left` or `ended`. A subject the user cannot reach, a member nobody answers to, or an action the user's standing does not allow is refused with the reason. **Path** - `id`: The item's id, its ID (ROMA-12) or a Roma link to it. One of listId / itemId. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `action` | `"members" \| "invite" \| "link" \| "remove" \| "leave" \| "stop"` | yes | What to do. | | `listId` | `string \| null` | no | The list's id (from list_lists). One of listId / itemId. | | `emails` | `string[] \| null` | no | invite: the email addresses to invite. | | `level` | `"full" \| "edit" \| null` | no | invite: the level every invitee gets — "edit" (Can edit, the default) or "full" (Can edit and invite). | | `linkOn` | `boolean \| null` | no | link: true turns the public link on (anyone with it can edit), false turns it off. | | `member` | `string \| null` | no | remove: the member to take off, by name or user id. | | `confirm` | `boolean \| null` | no | true on the repeat of an invite, or of a link turned on, after the preview: the call then sends the emails or turns the link on. | **Returns** `200` - `action` (`string`) - `subject` (`object`) - `preview` (`boolean`): true: nothing changed; repeat the call with confirm: true to do it. - `wouldInvite` (`string[]`): preview of an invite: the addresses that would be emailed. - `level` (`string`): preview of an invite: the level they would get. - `wouldMakeLinkOn` (`boolean`): preview of a link turned on. - `note` (`string`) - `members` (`object[]`) - `invitations` (`object[]`) - `results` (`object[]`) - `shareUrl` (`string | null`) - `linkOn` (`boolean`) - `removed` (`boolean`) - `left` (`boolean`) - `ended` (`boolean`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items//sharing" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"action":"members"}' ``` ## Items ### GET /items **List and filter items** · `Read-only` · MCP tool `list_items` List, filter and search items. Omit listId for the Tasks set — every item on a list that keeps a status and a due date (the Tasks list and every list made for tasks), ordered by due date then creation, completed tasks left out by default. Pass listId for one list's items, whatever its shape and whoever owns it (a list shared with the person too): a notes list's prose, a reading list's rows. Each row carries the item's title, body as Markdown, status and due date where its list keeps them, values keyed by property id, and its list. get_item reads one item in full with handles for editing, and is the call when the person asks to see, open or show one item; query_items filters, counts and sums by property. A read that repeats on a schedule passes `changedSince`, the `nextChangedSince` of its previous read: only what moved since comes back, on the person's own lists and the shared lists they joined, deletions included, each row with `changes` (who changed it and what, off its log) and the calling agent's own changes left out, one call per cycle instead of the whole list. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `listId` | `string` | no | One list's items: a list id (from list_lists or get_context), or the word "tasks" (the Tasks list, the unsorted pool) or "notes" (the Notes list). Omit for the Tasks set. | | `changedSince` | `string` | no | An ISO 8601 instant (exclusive), or the `nextChangedSince` of the previous read verbatim. The changes feed for a worker that polls: every item of the list (or, with no listId, of every list that keeps the task columns: the person's own, trashed and archived ones included, and the live lists shared with them that they have opened, whose rows read `isSharedWithMe`; a list they were only invited to is read by its `listId`) whose record moved after it — edits, completions, archives, restores, deletions — oldest change first, the deleted ones as `deleted` tombstones, then `hasMore` and `nextChangedSince` to pass next time. Each row carries `changes`: the item's log lines written since, newest last, each with who wrote it (`actor`: a person by name and `userId`, an agent by name and `agentId`, Roma's own word as `system`) and what it did (`change`) — the 5 newest, `moreChanges` counting the older ones; empty for a change that left no line in the log. What the calling agent changed itself is not news: an item whose every new line the agent wrote, or Roma wrote about the agent's own act (the row a delegation leaves in the thread, a hand-off Roma refused, a wake-up by the agent's mention), is left out (`includeOwn: true` keeps it), and so is one whose only new line is Roma's update of its summary; `nextChangedSince` moves past both. On a sign-in that carries several agents, the agent is the one each item's writes were filed under (pass `agentName` on the poll as on the writes). An app connected under no agent record writes the person's lines with its name on them (`actor.via`), and those are its own. An item shared with the person on its own, outside the lists they joined, is not in the feed. `query` is refused beside it; the other filters and `sort` do not apply. | | `includeOwn` | `boolean` | no | With changedSince: true also returns the items whose every change since was the calling agent's own (default false: an agent's own edits are not handed back to it as news; the same for an app connected under no agent record, whose lines read `actor.via`). An item somebody else changed too is in the feed either way, the agent's own lines among its `changes`. A caller that is neither (the person's own session, a key of the account) gets every change whatever this says. | | `includeBody` | `boolean` | no | With changedSince: false leaves each row's body (and `bodyImages`) out, for a smaller answer; the title, status, due date, list, values and `changes` stay (default true). get_item reads the body of the rows that matter. | | `ids` | `string[]` | no | Specific item ids to fetch (the other filters still apply). | | `delegatedTo` | `string` | no | Only the items delegated to one of the person's agents (its record in the Delegate cell): "me" for the agent record this call is made under (the connected app's own record, or the record register_agent bound), else the agent's name or id. On a sign-in that carries several agents (ChatGPT and its Dot), "me" is all of them and `guidance` names them; pass your own name for your items alone. The work handed to an agent, for one that reads on its own schedule. (up to 80 characters) | | `assignedTo` | `string` | no | The old name of `delegatedTo`, taken the same way; prefer `delegatedTo`. (up to 80 characters) | | `agentName` | `string \| null` | no | With delegatedTo "me", and with changedSince (whose own changes are left out): Who is calling, when this sign-in carries several agents (several Grok Bots of one account; ChatGPT and a Dot): your own agent's name, or its agentId. Pass it on every call. A sign-in or key with one agent is that agent whatever this says. | | `query` | `string` | no | Free-text search across title and body. | | `taskStatus` | `string[]` | no | Filter to these statuses, on lists that keep one — each a status id of the list's Status property (todo, inProgress, completed on every list that keeps one; backlog, inReview, canceled and the list's own ids where list_lists shows them). A done-stage status completes the item. A stage word (open, active, done) stands for every status of that stage on every list. Omit for the default: every status that is not done. | | `dueAfter` | `string` | no | ISO 8601 instant — only items due on/after this (inclusive). | | `dueBefore` | `string` | no | ISO 8601 instant — only items due before this (exclusive). Today = dueAfter today 00:00 local, dueBefore tomorrow 00:00 local; overdue = dueBefore today 00:00 alone. | | `createdAfter` | `string` | no | ISO 8601 instant — only items created on/after this. | | `createdBefore` | `string` | no | ISO 8601 instant — only items created before this (exclusive). | | `updatedAfter` | `string` | no | ISO 8601 instant — only items last edited on/after this. A poll that wants deletions too uses `changedSince` instead. | | `updatedBefore` | `string` | no | ISO 8601 instant — only items last edited before this (exclusive). | | `completedAfter` | `string` | no | ISO 8601 instant — only items completed on/after this. Implies completed items unless taskStatus says otherwise. | | `completedBefore` | `string` | no | ISO 8601 instant — only items completed before this (exclusive). | | `sort` | `"due" \| "created" \| "updated" \| "completed"` | no | Row order. Default 'due' (due date, then creation); a timestamp sort returns newest first. | | `limit` | `integer` | no | Max results (default 50). (1 to 200) | | `includeImageUrls` | `boolean` | no | true additionally returns a short-lived signed `url` per attachment so the images can be viewed. Off by default. | **Returns** `200` - `count` (`number`) - `listId` (`string | null`) - `listName` (`string | null`) - `listIcon` (`string | null`): The list's own icon, an emoji, when it has one; null for the Tasks set. - `properties` (`object[]`): The list's own properties, on a read of one list that has some. - `items` (`object[]`) - `deleted` (`object[]`): With changedSince: the items deleted since, as tombstones. - `serverTime` (`string`): With changedSince: the server's clock when this read began. - `hasMore` (`boolean`): With changedSince: more changed than `limit`; continue with `nextChangedSince`. - `nextChangedSince` (`string`): With changedSince: what to pass as the next call's changedSince, verbatim (an instant, or while more is pending a continuation: the last row's stamp and id, and the instant this poll's window opened). - `guidance` (`string`): One line about this read, when there is one: with delegatedTo "me" on a sign-in that carries several agents, which agents the rows belong to; or why the read is empty. - `links` (`object`): The roots of a row's links: `/artifacts/` is the item's page in Roma, `://artifacts/` the same item in the Roma Mac app. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items" \ -H "Authorization: Bearer roma_…" ``` ### POST /items **Create items on a list, many in one call** · `Adds data` · MCP tool `create_items` Create items on one list, many in one call (1 to 100): a to-do or a dictated list of them on the Tasks list, a note on the Notes list, rows of a reading list or a CRM. Each entry carries a title, a body as Markdown, and `values` for the list's own properties as {propertyId, value} pairs (ids or names from list_lists; a select value may be its label or option id, a multiSelect value an array of them; an unknown label becomes a new option; a person value — who the item is for, Assigned to or any person column — is a member's name or id from the list's `people` in list_lists; an agent's name written there is taken as the item's delegate, the same as `delegate`, never as an assignee; a name nobody on the list answers to is refused, never added). An entry's `delegate` names the one agent whose turn the item is: "Operator" (Roma's own first turn), or one of the user's own agents by name or id from the list's `delegates`, which hands it the item and wakes it; "none" makes the item with no delegate; omitted, the list's own rule decides (Operator by default; a shared list has no default delegate). An item you make for the person gets no delegate unless you pass one. On a list that keeps a status and a due date an entry may set taskStatus, dueAt (a day, or a local time when one was stated, which also arms a reminder at that moment) and reminderAt (a reminder on a day, at the person's default reminder hour). The items are stored as written and indexed for search; no AI pass runs unless `enrich` is true, which on a tasks list derives the title and due date from the words. An entry's `externalId` (the caller's own id) makes re-sending safe: the same externalId returns the item already made, under `existing`. With `matchOn`, an entry whose named values match an existing item fills that item's empty values, body and images and overwrites nothing (changing a filled value is update_items' job); without it every entry is inserted. Images come as `imageUrls` (a Roma storage path from create_image_upload, or a public https image URL the server downloads); failures come back in `imageFailures`. One bad entry never fails the batch; it is reported under `failed` with its reason. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `listId` | `string` | no | The list every item lands on: a list id (from list_lists or get_context), or the word "tasks" (the Tasks list, the unsorted pool) or "notes" (the Notes list). Omit for the Tasks list. | | `items` | `object[]` | yes | Every item to create, in one call. (up to 100 items) | | `agentName` | `string \| null` | no | Who is calling, when this sign-in carries several agents (several Grok Bots of one account; ChatGPT and a Dot): your own agent's name, or its agentId. Pass it on every call. A sign-in or key with one agent is that agent whatever this says. | | `matchOn` | `string[] \| null` | no | Property ids or names that identify an existing item. When given, an entry whose listed values all match an existing item is not added again: the existing item gains the entry's values for its empty cells, its body if it had none, and its images, and keeps every cell it already had; matching is exact. Omit to always insert — no property is a natural key, so there is no default dedup. | | `enrich` | `boolean \| null` | no | Run Roma's background AI pass on each item of a tasks list (title cleanup, due date and list suggestions). Default false: the items are stored as written. | **Returns** `201` - `listId` (`string`) - `listName` (`string`) - `listIcon` (`string | null`): The list's own icon, an emoji, when it has one. - `properties` (`object[]`): The list's own properties, when it has some. - `items` (`object[]`) - `added` (`number`): Items inserted by this call. - `links` (`object`): The roots of a row's links: `/artifacts/` is the item's page in Roma, `://artifacts/` the same item in the Roma Mac app. - `mergedIds` (`string[]`): Existing items an entry was merged into through matchOn. - `existing` (`object[]`) - `failed` (`object[]`) - `unknownKeys` (`string[]`) - `imagesAttached` (`number`) - `imageFailures` (`object[]`) - `job` (`object`): Present when the batch was past the inline threshold (more than 20 entries or 2 MB in one call): the call was accepted and stored as a job, nothing is written yet, and the entries land in the background a few at a time. Poll get_job with `job.id` for progress; the other fields of the result are empty. **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"items":[{}]}' ``` ### PATCH /items **Update items, many in one call** · `Updates or removes existing data` · MCP tool `update_items` Change items that already exist in the signed-in user's Roma workspace, 1 to 200 per call: an item's title, body, values, status, due date and reminder, delegate and images, and whether it is archived, favorited or followed. Use it when the user asks to edit, complete, reschedule, assign, hand over or archive tasks, notes or other items, and when an agent writes the result of its work into an item's body. Each entry in `items` names one item and carries that item's own changes; the status, due date, reminder, archived and favorited fields at the top of the call apply to every item in it. Only the fields passed change. A field that is passed overwrites what was there, and a body rewrite or `clearImages` removes content; every body write is logged and the user can put the earlier body back. The body: `edits` change it block by block against the handles get_item returns, all or nothing per item (`body` with `mode` is the older way; an item uses one or the other). An entry that changes the body needs `message`, a short note for the user of at most 420 characters on what changed and what is needed from them; without it the call is refused (messageRequired) and writes nothing. The message is posted in the item's thread. A message is also posted with a hand-off to an agent that was made, with `handoff: "returned"` and with `needsInput: true`; any other message is not posted here, the item's `warning` says so, and post_chat_message is the tool for it. `agentDetail` adds the part for other agents. To wake another of the user's own agents, name it in `mentions` beside the message (its name or id from `list_agents`); a name in the text alone wakes nobody. The delegate does not move, and the wake-up counts in the limit on hand-offs between agents. The answer's `woke` and `notWoken` say who was woken and who was not. Values: `values` merge into the item by property, and "" clears one. Assigning an item to a person is a value on the list's person property (Assigned to), with a name or id from the list's `people` in list_lists. Delegate: `delegate` names the one agent whose turn the item is: "Operator" for Roma's own operator, or one of the user's own agents from the list's `delegates` in list_lists, which hands it the item and wakes it; "none" removes the delegate. A hand-off to another agent works on the same entry as a body change. An agent that still has the item is not handed it again, and hand-offs between agents are limited (five to the same agent on one item, twenty in all): Roma then leaves the delegate as it is and the answer says why (`notHandedOver` or a refusal, code handoffAlreadyHeld or handoffLimitReached). Past a limit only the user hands the item over, in Roma. The agent that holds a task gives it back with `handoff: "returned"` on the call that writes its last result, with its `message`; it stays in the Delegate cell and the task reads Done. Dates: `taskStatus`, `dueAt`, `reminderAt` and `muteReminder` work only on a list that keeps a status and a due date. Images: `imageUrls` add images from a Roma storage path or a public https address, which the server downloads. On an item somebody shared with the user, only what its `editable` allows is written. Roma's summary of an item is written by Roma and is not a field here. Items are written in order; a refusal stops the batch and names the items already written, so only the rest is sent again. A large call (more than 20 entries or 2 MB) is queued and answers `job`, which get_job reads. Returns each item as written, with `body`, `bodyVersion` and `applied` after a body write. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `items` | `object[]` | yes | Every item to update, in one call. (up to 200 items) | | `agentName` | `string \| null` | no | For an agent record: which of the agents on this sign-in or key is writing, when it carries several (ChatGPT and a Dot share one sign-in; several records on one key): pass your own record's name on every call. A sign-in or key with one record writes as that record whatever this says. Otherwise how a key-bound caller with no record is named on the message a body change posts (default "Your agent"). | | `mode` | `"prepend" \| "append" \| "replace" \| "insertAfter" \| null` | no | Legacy: how each item's `body` merges: 'append' (default, at the bottom), 'prepend' (at the top), 'insertAfter' (right after the line named in `anchor`), or 'replace' (swap the whole body — only when the user explicitly asked to rewrite it; requires confirmReplace: true). | | `anchor` | `string \| null` | no | For mode 'insertAfter' only: a verbatim snippet of the existing line to insert after. Errors if not found. | | `confirmReplace` | `boolean \| null` | no | Required (true) for mode 'replace': confirms the user explicitly asked to swap the WHOLE body, deleting everything in it. Never pass it on the user's behalf without that explicit ask. | | `taskStatus` | `string \| null` | no | On a list that keeps a status: a status id of the list's Status property (todo, inProgress, completed on every list that keeps one; backlog, inReview, canceled and the list's own ids where list_lists shows them). A done-stage status completes the item. Applies to every item in the call. Status transitions report progress. | | `dueAt` | `string \| null` | no | On a list that keeps a due date, for every item in the call: `YYYY-MM-DD` for a day the person named with no time (the usual case; nothing rings); `YYYY-MM-DDTHH:MM` in their local time when they stated a time, which also arms a push reminder at that moment. An instant with a zone (`2026-10-28T09:00:00Z`) is read as the day it falls on in their zone unless hasDueTime is true. A reminder already armed follows a moved day. "none" removes the due date with its time and reminder. | | `hasDueTime` | `boolean \| null` | no | With a dueAt that carries a zone: true when its time of day is meant (the due is that moment and the reminder is armed), false to keep the day alone. Not needed for the two plain shapes. | | `reminderAt` | `string \| null` | no | Arms a reminder without changing the visible due date, for every item in the call: `YYYY-MM-DD` (that day at the person's default reminder hour) or `YYYY-MM-DDTHH:MM` in their local time. An undated item is dated that day. A moment already passed arms nothing. Not beside dueAt "none" or muteReminder. | | `muteReminder` | `boolean \| null` | no | true turns the reminder off and leaves the due date and its time as they are, for every item in the call. Not beside reminderAt. | | `archived` | `boolean \| null` | no | true sets the item(s) aside (hidden from every list, kept and reversible); false brings them back. | | `favorited` | `boolean \| null` | no | true pins the item(s) in the app's Favorites; false unpins them. | | `following` | `object \| null` | no | The user's own following of every item's edits and chat in the call: each half "follow" or "mute". An item's own `following` wins for that item. Omit to leave it. | **Returns** `200` - `updated` (`number`) - `items` (`object[]`) - `imagesAttached` (`number`) - `imageFailures` (`object[]`) - `links` (`object`): The roots of a row's links: `/artifacts/` is the item's page in Roma, `://artifacts/` the same item in the Roma Mac app. - `job` (`object`): Present when the batch was past the inline threshold (more than 20 entries or 2 MB in one call): the call was accepted and stored as a job, nothing is written yet, and the entries land in the background a few at a time. Poll get_job with `job.id` for progress; the other fields of the result are empty. **Example** ```bash curl -X PATCH "https://api.roma.app/api/v1/items" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"items":[{"itemId":""}]}' ``` ### DELETE /items **Delete items into the trash** · `Updates or removes existing data` · MCP tool `delete_items` Delete items by id, up to 50 per call. SOFT delete: every item stays recoverable for ~30 days via restore_deleted (type "item") before it is purged, and drops out of search. Returns the deleted items. An item inside a list shared with the user deletes as the app lets them, under its owner with the user named; ids the user may not delete — not theirs, or shared with them one item at a time — are reported under `refused` with the reason, and the rest still delete. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `itemIds` | `string[]` | yes | The items' ids. Up to 50 per call. (up to 50 items) | **Returns** `200` - `deleted` (`number`) - `items` (`object[]`) - `refused` (`string[]`) - `refusals` (`object[]`) - `job` (`object`): Present when the batch was past the inline threshold (more than 20 entries or 2 MB in one call): the call was accepted and stored as a job, nothing is written yet, and the entries land in the background a few at a time. Poll get_job with `job.id` for progress; the other fields of the result are empty. **Example** ```bash curl -X DELETE "https://api.roma.app/api/v1/items" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"itemIds":[""]}' ``` ### POST /items/query **Filter, sort, count or sum the items of one list** · `Read-only` · MCP tool `query_items` Filter, sort, count or sum the items of ONE list by its properties — exact numbers instead of eyeballing a dump: "how many are unread", "expenses in March", "the wines rated 5". `where` clauses AND-combine on a property by id or name (on a list that keeps them, `status` and `dueDate` are properties too); a select value may be its label. mode 'list' (default) returns the matching items, paged with offset and limit; 'count' how many match; 'sum' the total of `sumPropertyId` across the matches. Archived items are left out unless includeArchived: true; each item reports its archivedAt. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `listId` | `string` | yes | The list to query: a list id (from list_lists or get_context), or the word "tasks" (the Tasks list, the unsorted pool) or "notes" (the Notes list). | | `where` | `object[] \| null` | no | Filter clauses, AND-combined. Omit for every item. | | `sort` | `object \| null` | no | Sort order. Omit for the list's default (newest first). | | `mode` | `"list" \| "count" \| "sum" \| null` | no | 'list' (default) returns matching items; 'count' how many match; 'sum' totals `sumPropertyId` across matches. | | `sumPropertyId` | `string \| null` | no | For mode 'sum': the numeric property to total (its stable id or name). | | `createdAfter` | `string \| null` | no | ISO 8601 instant — items added on/after this. | | `createdBefore` | `string \| null` | no | ISO 8601 instant — items added before this (exclusive). | | `updatedAfter` | `string \| null` | no | ISO 8601 instant — items last edited on/after this. A read that repeats on a schedule passes the instant of its previous read here, or uses list_items' `changedSince`, which also carries deletions. | | `updatedBefore` | `string \| null` | no | ISO 8601 instant — items last edited before this (exclusive). | | `includeArchived` | `boolean \| null` | no | true also includes archived items (hidden from every list by default), so one can be brought back with update_items. | | `limit` | `integer \| null` | no | mode 'list': max items per page (default 50). | | `offset` | `integer \| null` | no | mode 'list': items to skip — page through a big list with offset + limit until hasMore is false. | | `includeImageUrls` | `boolean \| null` | no | mode 'list': true additionally returns a short-lived signed `url` per attachment. | **Returns** `200` - `mode` (`"list" | "count" | "sum"`) - `listId` (`string`) - `listName` (`string`) - `listIcon` (`string | null`): The list's own icon, an emoji, when it has one. - `count` (`number`): How many items match. - `sum` (`number`) - `sumPropertyId` (`string`) - `properties` (`object[]`) - `items` (`object[]`) - `offset` (`number`) - `hasMore` (`boolean`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items/query" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"listId":""}' ``` ### POST /items/move **Move items onto another list** · `Updates or removes existing data` · MCP tool `move_items` Move items onto another list: a task out to the Tasks list ("tasks"), a note onto the Notes list ("notes"), anything onto a list by id. Each item keeps its id, body, chat and history and takes the destination list's ID (`identifier`), the ID it had still naming it; its values follow their properties by id, then by name and type, select values by label. A value the destination list has no place for would be DROPPED: a first call that would drop values answers a preview (preview: true, droppedValues) and moves nothing; the same call with acknowledgeDataLoss: true then moves. The status and due date ride along unseen onto a list that keeps neither and show again on the way back. An item inside a list shared with the user moves as far as the app lets them: out onto one of their own lists (it becomes theirs, and everyone in the shared list loses it), or into another shared list they are in; such a move changes who can reach the item, so the first call answers a preview (accessChanges, the app's own question) and moves nothing until the repeat with acknowledgeDataLoss: true. An item shared with the user one item at a time stays its owner's to move: it is reported under `refused` with the reason, never moved. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `itemIds` | `string[]` | yes | Ids of the items to move. (up to 100 items) | | `listId` | `string` | yes | The destination list: a list id (from list_lists or get_context), or the word "tasks" (the Tasks list, the unsorted pool) or "notes" (the Notes list). | | `acknowledgeDataLoss` | `boolean \| null` | no | true ONLY on a repeat call, after a preview reported values the destination list has no place for, or people who will gain or lose access, and you told the user what will happen. | **Returns** `200` - `preview` (`boolean`) - `listId` (`string`) - `listName` (`string | null`) - `items` (`object[]`) - `droppedValues` (`object[]`) - `accessChanges` (`object[]`) - `refused` (`string[]`) - `refusals` (`object[]`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items/move" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"itemIds":[""],"listId":""}' ``` ### GET /items/{id} **One item with its body, values and list** · `Read-only` · MCP tool `get_item` Read one item in full by its id — the thing to read before working on it, the call when the person asks to see, open or show one item (search and list_items find it; this shows it), and the companion to search, which returns only the matched passage. Returns the item with `body` (the body as Markdown with a short handle in front of every block; update_items edits target those handles), `bodyVersion` (what a whole-body rewrite is pinned to), its status and due date where its list keeps them, `values` by property id with `cells` by property name beside them, its list (`list.instructions` where the list has standing instructions; they apply to the item), `guidance` (a line about working this item: its status, what the person wrote in its chat since an agent last posted, where the work goes) and, for an item a meeting was recorded into, the attributed transcript once its recording is done, with `summary` and `taskCandidates`. **Path** - `id`: The item's id (from list_items, query_items, search or get_context), or a Roma link to the item (roma.app/artifacts/, roma://task/): a link the person pasted names one item, and this reads it. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `includeImageUrls` | `boolean` | no | true additionally returns a short-lived signed `url` per attachment so the images can be viewed. Off by default. | | `includeImages` | `boolean` | no | true additionally returns the body's pictures themselves as image content blocks (up to ten, in body order, each under a line naming it) so they can be looked at — the way to read a screenshot or a receipt pasted into the body. Off by default. | | `includeFiles` | `boolean` | no | true additionally returns the words of the files in the body — the `[name](roma://attachment/…)` lines: a PDF's text, a scanned PDF transcribed, a text file as it is — as text blocks after the item (up to five files and 30,000 characters, in body order, each under a line naming it). The way to read a lease or a schedule attached to the item. Off by default. | **Returns** `200` - `id` (`string`) - `identifier` (`string | null`): The item's ID — its list's prefix and a number, TASK-1601 — which every item tool takes as its id too. A move onto another list gives the item that list's ID; an ID it had before still names it. - `title` (`string | null`) - `body` (`string | null`): The body as Markdown; with a short handle in front of every block on a read made for editing. - `bodyVersion` (`string`): A fingerprint of the body as read; a whole-body `rewrite` names it as `baseVersion`. - `taskStatus` (`string | null`): On a list that keeps a status. - `dueAt` (`string | null`): On a list that keeps a due date: the instant stored; a day when hasDueTime is false. - `hasDueTime` (`boolean | null`): Whether dueAt's time of day is meant; false for a day. - `reminderAt` (`string | null`): When the reminder rings, as an instant; null for none. - `completedAt` (`string | null`) - `values` (`object`): The item's values keyed by property id; a select value is an option id. - `cells` (`object of string`): The item's values by property NAME, as text, where its list has properties of its own. - `isSharedWithMe` (`boolean`): Shared with the person by its owner; `editable` says what update_items admits on it. - `editable` (`"all" | "titleAndBody"`): On a row shared with the person: `all` — every field but the owner's own reminder, repeat and favorite, whether the item was shared with them one by one or through a list; update_items refuses the owner's own fields by name. - `listId` (`string | null`) - `listName` (`string | null`) - `listIcon` (`string | null`): The list's own icon, an emoji, when it has one. - `expertId` (`string | null`): The id of the item's standing expert (one of the user's experts, list_experts), when the user's own item carries one: that expert answers by default in the item's chat in Roma. Absent on a row shared with the user. - `summary` (`string | object`) - `summarySeq` (`number | null`): The number of the log line the summary rests on, so a reader of the item in Roma can tell a summary that lags its log from one that is current. - `synthesizedAt` (`string | null`): When Roma last wrote the summary. - `createdAt` (`string | null`) - `updatedAt` (`string | null`) - `editedAt` (`string | null`) - `archivedAt` (`string | null`) - `recordingStatus` (`string`) - `attachments` (`object[]`) - `bodyImages` (`object[]`): The pictures the body shows (`![…](roma://attachment/)`), whether or not they are attachments, with the size each was stored at (null when unknown) and its alt text; with includeImageUrls, a short-lived signed url on each; with includeImages on get_item, the pictures themselves as image content blocks. - `guidance` (`string`): How to work this item right now: its status, what the person wrote in its chat since an agent last posted, where the work goes. - `expert` (`object | null`): The item's standing expert, when the user's own item carries one: that expert answers by default in the item's chat in Roma, and get_expert reads its instructions. Null on a row shared with the user. - `list` (`object`): Present when the item's list carries standing instructions: they apply to every item on it, this one included. - `label` (`string`): For an item with no title: its first non-empty value, else its list's name. - `properties` (`object[]`): The list's own properties, so a value can be written back by id. - `webUrl` (`string`): The item's page in Roma, to open in a browser. - `appUrl` (`string`): The item in the Roma Mac app: the app's own link scheme (yamo://artifacts/:id; yamo-staging:// against staging). - `transcript` (`string`) - `recording` (`object`) - `taskCandidates` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items/" \ -H "Authorization: Bearer roma_…" ``` ### GET /items/{id}/versions **The version history of an item, newest first** · `Read-only` · MCP tool `list_versions` List the version history of one item or expert, newest first: one entry per write, each with who made it (user, ai or system, and the name it was signed with when there is one) and the cause (an edit in the app, an edit over this connection, a restore, Roma's own passes). Each entry is the body as it was BEFORE that write, so the entry naming an edit is the state that undoes it; restore_version puts one back. Use it to undo an edit, or to see how a body or an expert's instructions changed over time. Versions are kept for the item's life; a long history pages by `before`. **Path** - `id`: The item's or the expert's id (from list_items, search, get_item or list_experts). **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `limit` | `integer \| null` | no | Entries per page, newest first (default 50, at most 200). | | `before` | `string \| null` | no | Only the entries from before this instant (ISO 8601): the `createdAt` of the last entry seen, for the page before it. | **Returns** `200` - `id` (`string`) - `hint` (`string`) - `versions` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//versions" \ -H "Authorization: Bearer roma_…" ``` ### GET /items/{id}/versions/{versionId} **One earlier version of an item's body, with the line changes to the next state** · `Read-only` · MCP tool `get_version` Read one version of an item's or expert's body from list_versions or from a body line of read_log (its `versionId`): the body as it was at that snapshot, as Markdown, with its cells, and the line changes from it to the next state — `diffAgainst` "current" (the default) for the body as it is now, or another version id (the next body line's `versionId` in the log) for the edit that one line made. The diff is hunks of removed, added and context lines, so a long body that changed in three places answers those three places; a line that is a picture or a file carries `media` beside its Markdown, and a hunk whose words did not change is `kind: "formatting"`; `includeBody: false` answers the diff alone. **Path** - `id`: The item's or the expert's id. - `versionId`: The version to read, from list_versions or a log line's versionId. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `diffAgainst` | `string \| null` | no | "current" (default) or another version id of the same item: what the snapshot is compared with. | | `includeBody` | `boolean \| null` | no | false leaves the body out and answers the entry and the diff alone (default true). | **Returns** `200` - `id` (`string`) - `version` (`object`) - `markdown` (`string`) - `values` (`object | null`) - `diff` (`object`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//versions/" \ -H "Authorization: Bearer roma_…" ``` ### GET /items/{id}/blame **Who wrote each line of an item's body as it stands, newest writer per line** · `Read-only` · MCP tool `get_blame` Who wrote each line of an item's body as it stands now: the body as numbered lines and runs of lines, each run with its writer (a person, their agent over this connection, the operator, an expert, an automation), the time, and the `versionId` of the snapshot that write replaced — the body line read_log names and get_version reads as a diff. A line belongs to the newest write that introduced or last changed its text; a line that only moved keeps its writer; a blank line joins the run above it. Lines older than the first snapshot are the item's creator's. The walk reads up to 500 snapshots back and says when it was cut (`truncated`, those runs with no writer). `fromLine` and `toLine` (1-based, inclusive) answer a window of the body. **Path** - `id`: The item's id (from list_items, search or get_item). **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `fromLine` | `integer \| null` | no | The first line of the window (default 1). | | `toLine` | `integer \| null` | no | The last line of the window (default the body's last line). | **Returns** `200` - `id` (`string`) - `bodyVersion` (`string`): The stamp of the body the runs describe; update_items' rewrite takes it as baseVersion. - `lines` (`string[]`) - `ranges` (`object[]`) - `versionsWalked` (`number`) - `truncated` (`boolean`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//blame" \ -H "Authorization: Bearer roma_…" ``` ### POST /items/{id}/versions/{versionId}/restore **Restore an item's body to an earlier version** · `Updates or removes existing data` · MCP tool `restore_version` Restore one item's or expert's body to an earlier version from list_versions (its cells too, where the snapshot kept them). The current body is snapshotted first, so a restore is itself undoable. When the person, or a collaborator, edited the body in Roma after that version, the call answers `needsConfirmation` and names those later edits instead of restoring; the same call with acceptLaterEdits: true, after the person agreed to lose them, restores. Writes made over this connection never ask: undoing them is what the tool is for. **Path** - `id`: The item's or the expert's id. - `versionId`: The version to restore, from list_versions. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `acceptLaterEdits` | `boolean \| null` | no | true only after the person said yes to losing the edits made in Roma after that version, the ones the needsConfirmation answer named. Omit on the first call. | **Returns** `200` - `restored` (`boolean`) - `id` (`string`) - `title` (`string | null`) - `needsConfirmation` (`boolean`) - `laterEdits` (`object[]`) - `hint` (`string`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items//versions//restore" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### POST /uploads **Pre-signed slots for image bytes** · `Adds data` · MCP tool `create_image_upload` Get pre-signed URLs to upload images DIRECTLY into Roma storage — the reliable alternative to passing third-party links in imageUrls (those must stay fetchable until the server downloads them; short-lived signed links often expire first). For each slot: HTTP PUT the raw image bytes to uploadUrl with the matching Content-Type header (valid ~2 hours), then pass its bucketPath as an imageUrls entry in create_items / update_items. Keep images at or under 10 MB (maxBytes). Up to 10 slots per call. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `mimeType` | `"image/png" \| "image/jpeg" \| "image/heic" \| "image/webp"` | yes | The image type you will upload (all slots in one call share it). | | `count` | `integer` | no | How many upload slots (default 1). (1 to 10) | **Returns** `201` - `uploads` (`object[]`) - `maxBytes` (`number`) - `validForSeconds` (`number`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/uploads" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"mimeType":"image/png"}' ``` ### GET /jobs/{id} **The progress of a queued bulk write: how many entries landed, which failed and why** · `Read-only` · MCP tool `get_job` Read the progress of a queued bulk write: a create_items, update_items, delete_items or delete_list call of more than 20 entries (or 2 MB) is accepted and answers a `job` instead of writing at once; the entries land in the background a few at a time. Returns the job's state (queued, running, done, failed), how many entries landed and how many failed, and each entry's outcome with the item it made or changed, or the reason it failed. Poll every few seconds until `status` is done or failed; the items appear on the list as they land. **Path** - `id`: The job's id, from the `job` block a bulk write answered with. **Returns** `200` - `id` (`string`) - `tool` (`string`) - `status` (`"queued" | "running" | "done" | "failed"`) - `total` (`number`) - `done` (`number`): Entries that landed (an entry matched to an existing item counts here). - `failed` (`number`) - `listId` (`string | null`) - `error` (`string | null`): Why the whole job stopped, when it failed. - `createdAt` (`string`) - `startedAt` (`string | null`) - `finishedAt` (`string | null`) - `entries` (`object[]`): The entries that have run so far, in order, up to the first 500. - `links` (`object`): The roots of a row's links: `/artifacts/` is the item's page in Roma, `://artifacts/` the same item in the Roma Mac app. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/jobs/" \ -H "Authorization: Bearer roma_…" ``` ## Chats ### GET /items/{id}/messages **Recent messages in an item's chat** · `Read-only` · MCP tool `read_chat_messages` Read the recent messages in an item's chat: what the user said there, what Roma replied, and what any agent posted with post_chat_message. On a shared item (shared on its own or through its list) the chat is its Thread, the one conversation the owner and every member see, so you read what the members said too. Pass `since` to read only what arrived after a moment you already saw; a read that repeats on a schedule passes the `createdAt` of the last message it saw every time. Empty when the item has no chat yet. A message from an agent may carry `agentDetail`, the part meant for agents — what the edit itself does not say: the why, what was considered and rejected, the sources, the doubts — and `edit`, the body edit it accompanies (the log line, its seq and the snapshot); a person's message carries neither, and Roma's own replies carry no `agentDetail`. The edit's text itself is the log's: read_log. A conversation bound to no item (the person's main chat, a list's chat) is read by `conversationId`, the id a mention's delivery carried. **Path** - `id`: The item's id, or a Roma link to it (roma.app/artifacts/). One of artifactId / conversationId. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `conversationId` | `string` | no | The conversation's id, for a chat bound to no item (the main chat, a list's chat): the `conversation.id` a mention's delivery carried. One of artifactId / conversationId. | | `since` | `string` | no | ISO 8601 instant. Only messages created after it are returned, oldest first: the `createdAt` of the last message you saw. | | `limit` | `integer` | no | Max messages (default 20). (1 to 50) | **Returns** `200` - `sessionId` (`string | null`) - `messages` (`object[]`) - `truncated` (`boolean`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//messages" \ -H "Authorization: Bearer roma_…" ``` ### POST /items/{id}/messages **Post a message into an item's chat as an agent** · `Updates or removes existing data` · MCP tool `post_chat_message` Post a message into an item's thread as the calling agent: a post for an action taken outside Roma with its link, the one question the work is blocked on, a question to another of the user's agents, or your one answer when you are addressed and the body does not change (a body change's message is the post for the work itself), at most 420 characters, saying what changed and what is needed from the person. To wake another of the user's own agents, name it in `mentions` beside the message (its name or id from `list_agents`); a name in the text alone wakes nobody. The delegate does not move, and the wake-up counts in the limit on hand-offs between agents. The answer's `woke` and `notWoken` say who was woken and who was not. `agentDetail`, the part for agents behind the message, is for what the message does not say — the why, what was considered and rejected, the sources, the doubts — never the message again (a detail that mostly repeats it is dropped and `warning` says so). A body change posts its own message through update_items (`message` on the item), never here. On a shared item (shared on its own or through its list) the post lands in its Thread, where the owner and every member read it. The user sees it on every device as an unread reply on the item and as an Updates row under your name, and the agent cannot take it back, so a post per step reads as noise; a post the item's own body asks you for is the person's ask and is wanted. When you cannot go on, ask the person with `needsInput: true` and end your turn: they are told at once, and a task handed to you then reads Waiting for the person and stays with you. On a task handed to you, you can give it back instead, with a message that says what blocked you: a returned task reads Done, so only the message says it is not. A plain message leaves the person thinking you are still working. Every message has a `messageKey`, yours or the one Roma makes, and the answer says it: the same call sent again under it lands on the same message, never a second one. The person is offered Reply on your post only when you will read it: a live trigger wakes you by this `agentName` (manage_triggers, action create, with `agentName`), or you pass `readsReplies: true` because you read this chat again on your next run (read_chat_messages with `since`). Otherwise the post is a notification they cannot answer, so do not ask a question in it. The answer's `listening` says whether a reply would wake you at once. An agent with a record (a connected app, or the record register_agent bound) posts under the record's name whatever `agentName` says, and the person's Reply wakes it through its own door; only where one sign-in or key carries several agents does `agentName` say which of them posts. A mention in a chat bound to no item (the person's main chat, a list's chat) is answered there: pass the `conversation.id` the delivery carried as `conversationId` instead of an item. `mentions` names who the message is for, by name or id: members of the item (or of the list a list room belongs to), and the user's own agents. A mentioned member gets a mention notification even when they muted the chat, so mention only who the message is for; a name nobody answers to is refused naming who does. A member not already written into the message as a `[@Name](roma://person/)` link is appended to its end so every client shows who was addressed, and the length cap counts the appended chips (tooLong); an agent's chip is never counted. "Operator" in `mentions` names Roma's own Operator: one Operator turn starts in the item's chat with your message as the ask. It answers there, and you are woken with the answer only when it names you. What needs the person's approval still waits for the person. The Delegate cell does not move, and it counts in the same limit as waking an agent. No turn starts in a chat bound to no item, on an item shared with other people, for a call under no agent record, or past the limits: `notWoken` says which. To wake another of the user's own agents, name it in `mentions`; a name in the text alone wakes nobody. `mentions` takes the agent's name as `list_agents` gives it, in any case, or its id; the name of its kind (ChatGPT, Codex, Claude Code) names it too when the user has one agent of that kind. It wakes the agent when the call is made as one of the user's agents (`register_agent`); made under none of them, the message is posted, nobody is woken and `warning` says so. That agent gets your words with your name on them and answers in the item's chat. When you need an answer back, ask for it plainly. Write the message as you would say it to that agent: Roma puts its name in front, as its chip when it was woken. Write `@Name` yourself only where you want the name somewhere else; it becomes the chip there. `@Name` written in the text for an agent that is not in `mentions` stays plain text, and `notWoken` says so with notInMentions: nothing more is needed, and only if you meant to wake it, send the same post_chat_message call again with the `messageKey` its answer gave and the agent in `mentions`: the message stays one and the name becomes the chip. A message update_items or create_items posted cannot be corrected in place: there, post one short new message with the agent in `mentions`. Always answer when you are addressed, in one short line, even if only to say nothing is left to do. Never a second post to say you are finished. Answer another agent's mention too, in one line, also when it answers your question, thanks you or closes. Your answer wakes it only by its name in `mentions`: name it when your answer is what it asked for, or when you need something from it. A closing answer (you have it, nothing is left to do) names nobody: that ends the exchange. A name that a member and one of the user's agents both answer to is refused with both ids: pass the id of the one you mean. The Delegate cell does not move. Work with another agent (ask, review, take turns) by naming it in `mentions`; change the Delegate only when the person asked for a hand-off, or your part is done and the rest is that agent's. A hand-off is `delegate` on `update_items`. The answer's `woke` names who was woken. `notWoken` names an agent that was not, and the message landed all the same, so its words are never posted a second time: agentNotConnected is an agent Roma cannot reach right now: until `list_agents` shows it connected a second try changes nothing, and once it does the same second try as for wakeFailed wakes it; handoffLimitReached is an agent that agents woke five times on this item, or twenty wake-ups by agents in all, hand-offs and mentions counted together, since the person last stepped in. Only the person lifts that limit: tell them to write in the item's chat in Roma, or to set Delegate themselves. wakeFailed and handoffUnread are Roma's own miss: ask once more in a moment, by sending the same post_chat_message call again with the `messageKey` its answer gave (the message stays one and only the wake-up is tried again); after update_items or create_items, by one short new message with the agent in `mentions`. Your own name in `mentions` wakes nobody (mentionedSelf). An agent the same call's `delegate` hands the item to is woken once, by the hand-off, which carries this message. A message whose `mentions` hold an agent and no person, that asks the person nothing (`needsInput`) and comes with no hand-off, is in the thread only: the person is not notified of it. Only in an item's chat. **Path** - `id`: The item's id, or a Roma link to it (roma.app/artifacts/). One of artifactId / conversationId. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `conversationId` | `string` | no | The conversation's id, for a post into a chat bound to no item (the main chat, a list's chat): the `conversation.id` a mention's delivery carried. One of artifactId / conversationId. | | `mentions` | `string[]` | no | Who the message is for, by name (no @ needed) or id, at most 10: members of the item (or of the list a list room belongs to), each of whom gets a mention notification even when they muted the chat, and the user's own agents (name or id from `list_agents`), each of whom is woken with the message. A name in the text alone notifies and wakes nobody. Write the message as you would say it to them: Roma puts an agent's name in front of it. Write `@Name` yourself only where you want the name somewhere else. A name nobody answers to is refused, and so is a name a member and an agent both answer to (pass the id). "Operator" in `mentions` names Roma's own Operator: one Operator turn starts in the item's chat with your message as the ask. It answers there, and you are woken with the answer only when it names you. What needs the person's approval still waits for the person. The Delegate cell does not move, and it counts in the same limit as waking an agent. No turn starts in a chat bound to no item, on an item shared with other people, for a call under no agent record, or past the limits: `notWoken` says which. Only who the message is for. (up to 10 items) | | `message` | `string` | yes | The message for the person, as Markdown, at most 420 characters including the chips appended for the members in `mentions`; what does not fit goes to agentDetail. The message is plain sentences, as a chat is: Markdown for a link, inline code or a short list, and bold only on a phrase inside a sentence; never a heading and never a whole line in bold: a message this short is one section, and the thread draws either as a title. (up to 420 characters) | | `agentDetail` | `string` | no | Optional: the part for agents — only what the message does not say: the why, what you considered and rejected, the sources, the doubts, what is left — any style, up to 20000 characters, read by the next agent behind the message in Roma. Never the message again: a detail that mostly repeats it is dropped and `warning` says so. (up to 20000 characters) | | `agentName` | `string` | no | How a caller with no record is named in the chat (default "Your agent"). For an agent record: which of the agents on this sign-in or key is posting, when it carries several (ChatGPT and a Dot share one sign-in; several records on one key): pass your own record's name on every call. A sign-in or key with one record posts as that record whatever this says. (up to 60 characters) | | `needsInput` | `boolean` | no | True when the message is a question the work waits on. When you cannot go on, ask the person with `needsInput: true` and end your turn: they are told at once, and a task handed to you then reads Waiting for the person and stays with you. On a task handed to you, you can give it back instead, with a message that says what blocked you: a returned task reads Done, so only the message says it is not. A plain message leaves the person thinking you are still working. | | `readsReplies` | `boolean` | no | True when you read this chat again on your next run, so the person may answer here even with no trigger waking you. | | `messageKey` | `string` | no | Idempotency key: a retry with the same key updates the same message, and tries once more to wake an agent in `mentions` that Roma could not wake (`notWoken` with wakeFailed or handoffUnread, or with agentNotConnected once `list_agents` shows that agent connected). An agent the retry names in `mentions` for the first time is woken as by a first mention, and its @Name in the text becomes its chip. Leave it out on a first call and Roma makes one; the answer's `messageKey` is the key to send a second try under. (up to 120 characters) | **Returns** `201` - `id` (`string`) - `sessionId` (`string`) - `createdAt` (`string`) - `messageKey` (`string`): The key this message was posted under: the one the call gave, or the one Roma made. Send the same call again with it to correct this message in place (an agent to add to `mentions`, a wake-up to try again): the thread keeps one message. - `listening` (`boolean`): Whether a reply from the person would wake this agent through a trigger. False: the reply waits for the agent's next run. - `mentioned` (`object[]`): The members `mentions` addressed, as resolved. - `woke` (`object[]`): The user's other agents named in `mentions` that the message woke: each got the message with your name on it. The Delegate cell did not move. The Operator (id `roma`) is among them when the message started its turn. - `notWoken` (`object[]`): The agents the message did NOT wake. The message landed in every case, so its words are never posted a second time; `message` says why and what to do. handoffLimitReached, mentionNeedsItem, mentionedSelf, operatorNotOnSharedItem (the Operator starts for no agent on an item shared with other people) and operatorLimitReached (agents started the Operator as often as Roma allows in an hour or a day): do nothing more, a second try changes nothing. agentNotConnected: a second try changes nothing until `list_agents` shows the agent connected; once it does, ask once more. bridgeTooOld: the same. handoffUnread and wakeFailed: Roma missed the wake-up, so ask once more in a moment. notInMentions: a name in the text alone wakes nobody, and nothing more is needed; only if you meant to wake that agent, ask once more with it in `mentions`. To ask once more about a message post_chat_message posted: send the same call again with the `messageKey` its answer gave and the agent in `mentions`. The message stays one: its text is corrected in place and only the wake-up is tried. A message update_items or create_items posted cannot be corrected in place: post one short new message with post_chat_message and the agent in `mentions`, never the same words again. - `warning` (`string`): The message landed and something beside it did not: agentDetail dropped as a copy of the message (detailDropped), or an agent was not woken (`notWoken`). **Example** ```bash curl -X POST "https://api.roma.app/api/v1/items//messages" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"message":""}' ``` ### GET /items/{id}/log **The item's log, Roma's own record: every change and post, with who made it** · `Read-only` · MCP tool `read_log` Read an item's (or a list's) log, Roma's own record of everything that happened to it: every change with who made it and when — a person, Roma's operator, an expert, an agent, an automation — every body change with what it did and the text it added (`change` and `body`) and the snapshot it replaced (`versionId`), every post in its thread (`messageId`), the summary's own writes. No agent writes into it; read it to see what changed before you and why, before continuing another agent's work. Pass `since` (the seq of the last line you saw) to read only what landed after it, oldest first; without it the newest lines, newest first, with `nextBeforeSeq` for the page before. The body itself is get_item's; the thread's words are read_chat_messages'. **Path** - `id`: The item's id, its ID (TASK-12) or a Roma link. One of itemId / listId. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `listId` | `string` | no | The list's id, for the list's own log. One of itemId / listId. | | `since` | `integer` | no | The seq of the last line you saw: only lines after it, oldest first. (-9007199254740991 to 9007199254740991) | | `beforeSeq` | `integer` | no | Paging backwards without `since`: lines with a seq below this one. (-9007199254740991 to 9007199254740991) | | `limit` | `integer` | no | Max lines (default 50). (1 to 200) | | `kinds` | `string[]` | no | Only these kinds: created, updated, moved, deleted, undeleted, restored, rewritten, posted, noted, joined, left, handoff, returned, released. | **Returns** `200` - `entries` (`object[]`) - `nextBeforeSeq` (`number | null`) - `truncated` (`boolean`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//log" \ -H "Authorization: Bearer roma_…" ``` ### GET /items/{id}/wait **Hold until something new lands on the item's log, at most 25 seconds** · `Read-only` · MCP tool `wait_for_item` Hold until something new lands on this item, at most 25 seconds; call again to keep waiting. For the agent that handed a task to another agent and waits for the answer in the same conversation. Answers the new log lines (the read_log shape) that were not written by you, the task's `agentState` at that moment, and `nextSince`, the seq to pass as `since` on the next call. `until` says what ends the wait: "return" (a returned or released line: the other agent gave the task back, or its hold ended another way: Roma released it (silent for four hours, the chain stopped, a failed run), the person reassigned it, or a person stopped it on the item; the line says which, and a stopped agent gives nothing back until the person starts it again), "post" (a post by someone else), or "any" (default: any new line by someone else). `timedOut: true` means nothing came in time; call again. One wait per item at a time: a second call while one waits answers at once with `busy: true`. **Path** - `id`: The item's id, its ID (TASK-12) or a Roma link. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `since` | `integer` | no | The seq of the last log line you saw: only lines after it count. Default: the newest seq when the call starts, so only what lands from now on. (-9007199254740991 to 9007199254740991) | | `timeoutSeconds` | `integer` | no | How long to hold, 1 to 25 seconds (default 25). (1 to 25) | | `until` | `"any" \| "return" \| "post"` | no | What ends the wait: "any" (default), "return", or "post". | | `agentName` | `string \| null` | no | Who is calling, when this sign-in carries several agents (several Grok Bots of one account; ChatGPT and a Dot): your own agent's name, or its agentId. Pass it on every call. A sign-in or key with one agent is that agent whatever this says. | **Returns** `200` - `lines` (`object[]`) - `agentState` (`any | null`): The task's hand-off state at that moment (as get_item answers it), null when no agent holds it. - `nextSince` (`number`): Pass as `since` on the next call. - `timedOut` (`boolean`) - `busy` (`boolean`): True when another wait of yours on this item was already running: this call answered at once. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/items//wait" \ -H "Authorization: Bearer roma_…" ``` ## Search ### GET /search **Search items and lists** · `Read-only` · MCP tool `search` Search the user's Roma workspace — their items (tasks, notes, the rows of every list they keep) and their lists, and what others shared with them (an item shared on its own, a list they joined and every item on it, each marked `isSharedWithMe`) — by meaning or keyword (hybrid semantic + keyword retrieval). Use this when the user asks about their own information, plans or anything they may have saved, and before adding something that may already exist. Their wording often won't match their notes' wording; the semantic arm bridges that gap (and across languages). Returns the best-matching passage per item, each with its list; get_item returns an item in full. An empty result means nothing relevant is saved. Not for general web knowledge. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `q` | `string` | yes | Natural-language query — what the user is trying to find, in their words. | | `limit` | `integer` | no | Max results (default 10). (1 to 20) | | `after` | `string` | no | Only items CREATED on/after this ISO 8601 timestamp. Use when scoping by when it was saved ("last week", "in March"). | | `before` | `string` | no | Only items CREATED before this ISO 8601 timestamp (exclusive). Pair with `after` to bound a window. | **Returns** `200` - `count` (`number`) - `results` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/search" \ -H "Authorization: Bearer roma_…" ``` ### GET /lists/{id}/grep **Find the lines of a list's item bodies that match a pattern, with their block handles** · `Read-only` · MCP tool `grep_items` Find the lines of one list's item bodies that match a pattern — a literal by default, a regular expression with `regex: true` — the way grep does, when the words are known: a function or flag name, a heading, an exact phrase. search finds by meaning and answers a passage; this answers every matching line with the block handle it sits in, the handle update_items' edits take, and a line of context each side, newest item first. The person's own list, or one shared with them. Case-folded unless `caseSensitive`; a regular expression is the database's grammar (POSIX), tested line by line. **Path** - `id`: The list to grep: a list id (from list_lists or get_context), or the word "tasks" (the Tasks list, the unsorted pool) or "notes" (the Notes list). **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `pattern` | `string` | yes | What to find: a literal, or a regular expression with regex: true. (up to 200 characters) | | `regex` | `boolean \| null` | no | true reads the pattern as a regular expression (default false: a literal). | | `caseSensitive` | `boolean \| null` | no | true matches case exactly (default false). | | `context` | `integer \| null` | no | Lines of context on each side of a hit (default 1, at most 3). | | `limit` | `integer \| null` | no | Items answered at most (default 20); hasMore says when the list holds more matching items. | | `matchesPerItem` | `integer \| null` | no | Lines answered per item at most (default 5); moreMatches says when the body holds more. | **Returns** `200` - `listId` (`string`) - `listName` (`string`) - `count` (`number`): Items answered. - `hasMore` (`boolean`) - `items` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/lists//grep" \ -H "Authorization: Bearer roma_…" ``` ## Trash ### GET /trash **What is in the trash** · `Read-only` · MCP tool `list_deleted` The trash: everything soft-deleted in the last ~30 days — items and lists — newest first, each with the moment it is purged forever (purgesAt). Anything listed here can be brought back with restore_deleted. Filter by type, or omit `type` for both. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `type` | `"item" \| "list"` | no | Only this kind. Omit for both. | | `limit` | `integer` | no | Max entries per kind (default 25). (1 to 100) | **Returns** `200` - `count` (`number`) - `items` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/trash" \ -H "Authorization: Bearer roma_…" ``` ### POST /trash/restore **Restore one item or list from the trash** · `Adds data` · MCP tool `restore_deleted` Bring back one soft-deleted item or list from the trash (see list_deleted). Restoring a list also brings back the items deleted with it; an item whose list is still in the trash can't come back alone (restore the list first). An item whose list is gone for good lands on the hub's default list for what it was (movedToDefaultList: true). Restores one thing per call. If it is already live the call succeeds with alreadyLive: true. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `type` | `"item" \| "list"` | yes | The entry's type, as list_deleted reported it. | | `id` | `string` | yes | The deleted item's or list's id. | **Returns** `200` - `restored` (`boolean`) - `alreadyLive` (`boolean`) - `type` (`string`) - `id` (`string`) - `title` (`string | null`) - `restoredItems` (`number`) - `movedToDefaultList` (`boolean`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/trash/restore" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"type":"item","id":""}' ``` ## Automations ### GET /automations **List automations** · `Read-only` · MCP tool `list_automations` List the user's automations — standing orders Roma runs on its own, on a schedule or on demand. Returns each one's id, name, what it does, status (active / paused / draft), when it runs, the next run, and how the last run ended. Use it when the user asks what runs on its own, when something runs next, or before reading or starting a run. **Returns** `200` - `count` (`number`) - `automations` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/automations" \ -H "Authorization: Bearer roma_…" ``` ### GET /automations/{id} **One automation in full, its steps included** · `Read-only` · MCP tool `get_automation` Read one of the signed-in user's own automations: its name, what it does, when it runs, its status, the next run, its steps as the user wrote them, and how the last run ended. A read only: it starts nothing and changes nothing; run_automation starts one, list_automations lists them all, get_automation_runs reads the runs. **Path** - `id`: The automation's id (from list_automations or get_context). **Returns** `200` - `id` (`string`) - `name` (`string`) - `status` (`string`) - `when` (`string`) - `nextRunAt` (`string | null`) - `steps` (`string`): The steps as written, Markdown; empty when there are none. - `webUrl` (`string`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/automations/" \ -H "Authorization: Bearer roma_…" ``` ### GET /automations/{id}/runs **Recent runs of an automation** · `Read-only` · MCP tool `get_automation_runs` Read one automation's recent runs, newest first: when each ran, how it ended, what it wrote (one line per action), the message it left for the user, and any error. Use it for "what did my morning brief find", "why did it fail", or to read the result of a run started with run_automation once it has finished. **Path** - `id`: The automation's id (from list_automations or get_context). **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `limit` | `integer` | no | How many runs, newest first (default 5, max 20). (1 to 20) | **Returns** `200` - `automation` (`object`) - `runs` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/automations//runs" \ -H "Authorization: Bearer roma_…" ``` ### POST /automations/{id}/run **Start an automation now** · `Updates or removes existing data` · MCP tool `run_automation` Start one of the user's automations now — the same as Run now on its page in Roma. Use it only when the user asks to run a specific automation. The run happens inside Roma with the user's connected apps and can take a minute; its result lands in the user's Roma chat, not in this conversation. Read the outcome afterwards with get_automation_runs. Refused for a draft, while the same automation is already running, or once the daily run limit is reached. **Path** - `id`: The automation's id (from list_automations or get_context). **Returns** `200` - `id` (`string`) - `name` (`string`) - `runId` (`string`) - `status` (`string`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/automations//run" \ -H "Authorization: Bearer roma_…" ``` ## Triggers ### GET /triggers **The triggers with their last delivery, and the catalogue of events** · `Updates or removes existing data` · MCP tool `manage_triggers` The signed-in user's own triggers, in one tool: `action` list, create, update or delete. A trigger says which Roma events (an item created, changed or delegated, a reply posted, a list changed) are delivered to the user's own agent, and how: transport `webhook` POSTs each delivery to the https address the user's agent names in `url`, signed with the trigger's secret (Standard Webhooks); transport `poll` has no address, the agent reads its deliveries from Roma's deliveries route with its own key. Each delivery carries the item as get_item returns it, what changed, and who changed it. A failing address is retried five times over about seven hours, sooner at first; then that delivery gave up. The trigger pauses once five deliveries in a row gave up, or at once on a 410; `update` resumes it or gives it a new address. `agentName` ties the trigger to the agent that calls, so the user's replies to its posts are delivered too. A trigger you make for an agent is made for your own agent: naming another agent, by agentId or by agentName, is refused, and one agent has one trigger (a second create is refused with the triggerId to update). The transport never changes on update; delete and create again. Twenty per account. A trigger that belongs to another of the user's agents is theirs alone: you can list it, and only that agent or the user changes or deletes it. Delete removes the trigger and its delivery history, and the chat confirms first. `list` answers the triggers, each one's last delivery, and the catalogue of events: item.created (an item was created on one of the person's lists: a task, a note, a row); item.updated (an item's title, due date, reminder, a property value or its archived flag changed); item.statusUpdated (a task's status changed (todo, inprogress, completed)); item.moved (an item moved onto another list); item.deleted (an item was deleted into the trash (recoverable for 30 days)); item.restored (an item came back from the trash); list.created (a list was created); list.updated (a list's name, icon, instructions, properties or archived flag changed); list.deleted (a list was deleted into the trash); list.restored (a list came back from the trash); item.delegated (the person delegated an item to an agent: the item's delegate cell gained the agent's record (`data); message.posted (the person replied to an agent's post in an item's chat (reply on its row; `data); automation.completed (an automation's run finished (`data). **Returns** `200` - `triggers` (`object[]`): For list. - `events` (`object[]`): For list: the catalogue. - `trigger` (`object`): For create and update. - `secret` (`string | null`): For create: the signing secret, this once; null for a poll trigger. - `deleted` (`boolean`): For delete. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/triggers" \ -H "Authorization: Bearer roma_…" ``` ### POST /triggers **Make a trigger: which events fire it, a filter, where the event goes** · `Updates or removes existing data` · MCP tool `manage_triggers` The signed-in user's own triggers, in one tool: `action` list, create, update or delete. A trigger says which Roma events (an item created, changed or delegated, a reply posted, a list changed) are delivered to the user's own agent, and how: transport `webhook` POSTs each delivery to the https address the user's agent names in `url`, signed with the trigger's secret (Standard Webhooks); transport `poll` has no address, the agent reads its deliveries from Roma's deliveries route with its own key. Each delivery carries the item as get_item returns it, what changed, and who changed it. A failing address is retried five times over about seven hours, sooner at first; then that delivery gave up. The trigger pauses once five deliveries in a row gave up, or at once on a 410; `update` resumes it or gives it a new address. `agentName` ties the trigger to the agent that calls, so the user's replies to its posts are delivered too. A trigger you make for an agent is made for your own agent: naming another agent, by agentId or by agentName, is refused, and one agent has one trigger (a second create is refused with the triggerId to update). The transport never changes on update; delete and create again. Twenty per account. A trigger that belongs to another of the user's agents is theirs alone: you can list it, and only that agent or the user changes or deletes it. Delete removes the trigger and its delivery history, and the chat confirms first. `list` answers the triggers, each one's last delivery, and the catalogue of events: item.created (an item was created on one of the person's lists: a task, a note, a row); item.updated (an item's title, due date, reminder, a property value or its archived flag changed); item.statusUpdated (a task's status changed (todo, inprogress, completed)); item.moved (an item moved onto another list); item.deleted (an item was deleted into the trash (recoverable for 30 days)); item.restored (an item came back from the trash); list.created (a list was created); list.updated (a list's name, icon, instructions, properties or archived flag changed); list.deleted (a list was deleted into the trash); list.restored (a list came back from the trash); item.delegated (the person delegated an item to an agent: the item's delegate cell gained the agent's record (`data); message.posted (the person replied to an agent's post in an item's chat (reply on its row; `data); automation.completed (an automation's run finished (`data). **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `triggerId` | `string` | no | For update and delete: the trigger's id (from list). | | `name` | `string` | no | For create (required) or update: what it wakes: "Claude Code on the Mac", "Codex for testing". (up to 80 characters) | | `events` | `"item.created" \| "item.updated" \| "item.statusUpdated" \| "item.moved" \| "item.deleted" \| "item.restored" \| "list.created" \| "list.updated" \| "list.deleted" \| "list.restored" \| "item.delegated" \| "message.posted" \| "automation.completed"[]` | no | For create (required) or update: which events fire it. | | `filter` | `object \| null` | no | For create or update: what narrows an event to this trigger; on update null clears it. | | `transport` | `"webhook" \| "poll"` | no | For create: webhook (default, needs url) or poll (no address; read with the deliveries route). | | `url` | `string (uri)` | no | For a webhook: the https address Roma POSTs to (create), or the new one (update). | | `secret` | `string` | no | For a webhook on create: your own whsec_ secret (base64, 32 bytes); minted when absent. (up to 200 characters) | | `headers` | `object of string` | no | For a webhook: extra request headers Roma sends on every POST to the user's agent, as the agent's own address requires. Stored, never read back; on update they replace the old ones. | | `agentName` | `string` | no | The agent this trigger wakes: yourself, exactly as you name yourself in post_chat_message ("Claude Code"). The trigger is then made for your own agent, and the person's replies to your posts fire it too. Another agent's name is refused. On update, empty clears it. Where several agents share one sign-in (every Grok Bot of one account) it says who is calling: your own name, or your own agentId. You change and delete only your own. (up to 60 characters) | | `agentId` | `string` | no | The agent RECORD this trigger wakes: your own. The items delegated to it (item.delegated) and the replies to its posts fire it. Leave it out or pass your own: another agent's id is refused. A trigger on item.delegated or message.posted that names no agent is made for your own agent; when your sign-in carries several agents, say which one. On update, empty clears it. (up to 60 characters) | | `paused` | `boolean` | no | For update: true pauses, false resumes. | **Returns** `201` - `triggers` (`object[]`): For list. - `events` (`object[]`): For list: the catalogue. - `trigger` (`object`): For create and update. - `secret` (`string | null`): For create: the signing secret, this once; null for a poll trigger. - `deleted` (`boolean`): For delete. **Example** ```bash curl -X POST "https://api.roma.app/api/v1/triggers" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### PATCH /triggers/{id} **Rename a trigger, change its events, filter, address or headers, pause or resume it** · `Updates or removes existing data` · MCP tool `manage_triggers` The signed-in user's own triggers, in one tool: `action` list, create, update or delete. A trigger says which Roma events (an item created, changed or delegated, a reply posted, a list changed) are delivered to the user's own agent, and how: transport `webhook` POSTs each delivery to the https address the user's agent names in `url`, signed with the trigger's secret (Standard Webhooks); transport `poll` has no address, the agent reads its deliveries from Roma's deliveries route with its own key. Each delivery carries the item as get_item returns it, what changed, and who changed it. A failing address is retried five times over about seven hours, sooner at first; then that delivery gave up. The trigger pauses once five deliveries in a row gave up, or at once on a 410; `update` resumes it or gives it a new address. `agentName` ties the trigger to the agent that calls, so the user's replies to its posts are delivered too. A trigger you make for an agent is made for your own agent: naming another agent, by agentId or by agentName, is refused, and one agent has one trigger (a second create is refused with the triggerId to update). The transport never changes on update; delete and create again. Twenty per account. A trigger that belongs to another of the user's agents is theirs alone: you can list it, and only that agent or the user changes or deletes it. Delete removes the trigger and its delivery history, and the chat confirms first. `list` answers the triggers, each one's last delivery, and the catalogue of events: item.created (an item was created on one of the person's lists: a task, a note, a row); item.updated (an item's title, due date, reminder, a property value or its archived flag changed); item.statusUpdated (a task's status changed (todo, inprogress, completed)); item.moved (an item moved onto another list); item.deleted (an item was deleted into the trash (recoverable for 30 days)); item.restored (an item came back from the trash); list.created (a list was created); list.updated (a list's name, icon, instructions, properties or archived flag changed); list.deleted (a list was deleted into the trash); list.restored (a list came back from the trash); item.delegated (the person delegated an item to an agent: the item's delegate cell gained the agent's record (`data); message.posted (the person replied to an agent's post in an item's chat (reply on its row; `data); automation.completed (an automation's run finished (`data). **Path** - `id`: For update and delete: the trigger's id (from list). **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `name` | `string` | no | For create (required) or update: what it wakes: "Claude Code on the Mac", "Codex for testing". (up to 80 characters) | | `events` | `"item.created" \| "item.updated" \| "item.statusUpdated" \| "item.moved" \| "item.deleted" \| "item.restored" \| "list.created" \| "list.updated" \| "list.deleted" \| "list.restored" \| "item.delegated" \| "message.posted" \| "automation.completed"[]` | no | For create (required) or update: which events fire it. | | `filter` | `object \| null` | no | For create or update: what narrows an event to this trigger; on update null clears it. | | `transport` | `"webhook" \| "poll"` | no | For create: webhook (default, needs url) or poll (no address; read with the deliveries route). | | `url` | `string (uri)` | no | For a webhook: the https address Roma POSTs to (create), or the new one (update). | | `secret` | `string` | no | For a webhook on create: your own whsec_ secret (base64, 32 bytes); minted when absent. (up to 200 characters) | | `headers` | `object of string` | no | For a webhook: extra request headers Roma sends on every POST to the user's agent, as the agent's own address requires. Stored, never read back; on update they replace the old ones. | | `agentName` | `string` | no | The agent this trigger wakes: yourself, exactly as you name yourself in post_chat_message ("Claude Code"). The trigger is then made for your own agent, and the person's replies to your posts fire it too. Another agent's name is refused. On update, empty clears it. Where several agents share one sign-in (every Grok Bot of one account) it says who is calling: your own name, or your own agentId. You change and delete only your own. (up to 60 characters) | | `agentId` | `string` | no | The agent RECORD this trigger wakes: your own. The items delegated to it (item.delegated) and the replies to its posts fire it. Leave it out or pass your own: another agent's id is refused. A trigger on item.delegated or message.posted that names no agent is made for your own agent; when your sign-in carries several agents, say which one. On update, empty clears it. (up to 60 characters) | | `paused` | `boolean` | no | For update: true pauses, false resumes. | **Returns** `200` - `triggers` (`object[]`): For list. - `events` (`object[]`): For list: the catalogue. - `trigger` (`object`): For create and update. - `secret` (`string | null`): For create: the signing secret, this once; null for a poll trigger. - `deleted` (`boolean`): For delete. **Example** ```bash curl -X PATCH "https://api.roma.app/api/v1/triggers/" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### DELETE /triggers/{id} **Delete a trigger** · `Updates or removes existing data` · MCP tool `manage_triggers` The signed-in user's own triggers, in one tool: `action` list, create, update or delete. A trigger says which Roma events (an item created, changed or delegated, a reply posted, a list changed) are delivered to the user's own agent, and how: transport `webhook` POSTs each delivery to the https address the user's agent names in `url`, signed with the trigger's secret (Standard Webhooks); transport `poll` has no address, the agent reads its deliveries from Roma's deliveries route with its own key. Each delivery carries the item as get_item returns it, what changed, and who changed it. A failing address is retried five times over about seven hours, sooner at first; then that delivery gave up. The trigger pauses once five deliveries in a row gave up, or at once on a 410; `update` resumes it or gives it a new address. `agentName` ties the trigger to the agent that calls, so the user's replies to its posts are delivered too. A trigger you make for an agent is made for your own agent: naming another agent, by agentId or by agentName, is refused, and one agent has one trigger (a second create is refused with the triggerId to update). The transport never changes on update; delete and create again. Twenty per account. A trigger that belongs to another of the user's agents is theirs alone: you can list it, and only that agent or the user changes or deletes it. Delete removes the trigger and its delivery history, and the chat confirms first. `list` answers the triggers, each one's last delivery, and the catalogue of events: item.created (an item was created on one of the person's lists: a task, a note, a row); item.updated (an item's title, due date, reminder, a property value or its archived flag changed); item.statusUpdated (a task's status changed (todo, inprogress, completed)); item.moved (an item moved onto another list); item.deleted (an item was deleted into the trash (recoverable for 30 days)); item.restored (an item came back from the trash); list.created (a list was created); list.updated (a list's name, icon, instructions, properties or archived flag changed); list.deleted (a list was deleted into the trash); list.restored (a list came back from the trash); item.delegated (the person delegated an item to an agent: the item's delegate cell gained the agent's record (`data); message.posted (the person replied to an agent's post in an item's chat (reply on its row; `data); automation.completed (an automation's run finished (`data). **Path** - `id`: For update and delete: the trigger's id (from list). **Returns** `200` - `triggers` (`object[]`): For list. - `events` (`object[]`): For list: the catalogue. - `trigger` (`object`): For create and update. - `secret` (`string | null`): For create: the signing secret, this once; null for a poll trigger. - `deleted` (`boolean`): For delete. **Example** ```bash curl -X DELETE "https://api.roma.app/api/v1/triggers/" \ -H "Authorization: Bearer roma_…" ``` ## Experts ### GET /experts **The user's experts, each with the opening line of its instructions** · `Read-only` · MCP tool `list_experts` List the user's experts: each a named body of standing instructions they wrote in Roma for a kind of work (an editor, a reviewer, a coach), private to them. Returns every expert's id, name and the opening line of its instructions. Use it when the user asks which experts they have, names one, or asks for work done the way one of their experts does it; get_expert reads one in full. **Returns** `200` - `count` (`number`) - `experts` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/experts" \ -H "Authorization: Bearer roma_…" ``` ### POST /experts **Create an expert** · `Adds data` · MCP tool `create_expert` Create an expert for the user: a name and its whole standing instructions as Markdown (second person, present tense, what to do; the shape the user's other experts have). Use it on the user's explicit ask to create one, never because they described how they want one answer written. A name the user already has is refused. The new expert shows in Settings → Experts in Roma, where it answers in the user's chats when mentioned by name. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `name` | `string` | yes | The expert's name, how the user will call it in (two or three words, the way a job title reads). (up to 120 characters) | | `instructions` | `string` | yes | The whole standing instructions, as Markdown. | | `icon` | `"experts" \| "writing" \| "editing" \| "review" \| "ideas" \| "creative" \| "humor" \| "language" \| "book" \| "business" \| "goal" \| "guidance" \| "launch" \| "winning" \| "teaching" \| "planning" \| "productivity" \| "pitch" \| "marketing" \| "people" \| "support" \| "like" \| "email" \| "voice" \| "money" \| "banking" \| "accounting" \| "investing" \| "data" \| "legal" \| "pricing" \| "shopping" \| "code" \| "databases" \| "computing" \| "science" \| "research" \| "vision" \| "design" \| "art" \| "fixing" \| "architecture" \| "product" \| "security" \| "health" \| "care" \| "love" \| "household" \| "city" \| "school" \| "travel" \| "maps" \| "world" \| "cars" \| "music" \| "photo" \| "film" \| "gaming" \| "events" \| "gift" \| "crafts" \| "sea" \| "sunshine" \| "night" \| null` | no | The icon it wears in Roma, from the set. Omit, or pass null, for the default. | **Returns** `201` - `id` (`string`) - `name` (`string`) - `firstLine` (`string`): The opening line of its instructions. - `icon` (`string | null`): The icon it wears in Roma — a name of the expert icon set, or null for the default. - `updatedAt` (`string`) - `webUrl` (`string`): The expert's page in Roma on the web. **Example** ```bash curl -X POST "https://api.roma.app/api/v1/experts" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{"name":"","instructions":""}' ``` ### GET /experts/{id} **One expert with its whole instructions** · `Read-only` · MCP tool `get_expert` Read one of the user's experts in full: its name and its standing instructions as Markdown, the way the user wrote them in Roma. Use it when the user names an expert for the work at hand ("use my Content Editor on this"), asks what one of them covers, or before updating one. By id (from list_experts or get_context) or by its exact name; a name that is none of theirs is not found. **Path** - `id`: The expert's id. Pass this or `name`. **Returns** `200` - `id` (`string`) - `name` (`string`) - `firstLine` (`string`): The opening line of its instructions. - `icon` (`string | null`): The icon it wears in Roma — a name of the expert icon set, or null for the default. - `updatedAt` (`string`) - `webUrl` (`string`): The expert's page in Roma on the web. - `instructions` (`string`): The whole standing instructions, as Markdown. **Example** ```bash curl -X GET "https://api.roma.app/api/v1/experts/" \ -H "Authorization: Bearer roma_…" ``` ### PATCH /experts/{id} **Rename an expert, pick its icon or replace its instructions** · `Updates or removes existing data` · MCP tool `update_expert` Update one of the user's experts: its name, its instructions, its icon, or any of them. `instructions` replaces the WHOLE body: read it with get_expert first and send the whole text with the change in it, a line that contradicts an existing one replacing that line rather than sitting beside it. A rename to a name the user already has is refused. The previous body stays in the expert's version history (list_versions, restore_version). Use it when the user says an expert missed something, should work differently, should be called something else, or should wear another icon. **Path** - `id`: The expert's id (from list_experts, get_expert or get_context). **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `name` | `string \| null` | no | A new name. Omit, or pass null, to keep it. | | `instructions` | `string \| null` | no | The whole standing instructions, as Markdown, replacing the body. Omit, or pass null, to keep it. | | `icon` | `"experts" \| "writing" \| "editing" \| "review" \| "ideas" \| "creative" \| "humor" \| "language" \| "book" \| "business" \| "goal" \| "guidance" \| "launch" \| "winning" \| "teaching" \| "planning" \| "productivity" \| "pitch" \| "marketing" \| "people" \| "support" \| "like" \| "email" \| "voice" \| "money" \| "banking" \| "accounting" \| "investing" \| "data" \| "legal" \| "pricing" \| "shopping" \| "code" \| "databases" \| "computing" \| "science" \| "research" \| "vision" \| "design" \| "art" \| "fixing" \| "architecture" \| "product" \| "security" \| "health" \| "care" \| "love" \| "household" \| "city" \| "school" \| "travel" \| "maps" \| "world" \| "cars" \| "music" \| "photo" \| "film" \| "gaming" \| "events" \| "gift" \| "crafts" \| "sea" \| "sunshine" \| "night" \| null` | no | A new icon from the set; `experts` is the default. Omit, or pass null, to keep it. | | `baseUpdatedAt` | `string \| null` | no | The `updatedAt` get_expert returned; when the expert changed since, the write is refused and the body is read again. | **Returns** `200` - `id` (`string`) - `name` (`string`) - `firstLine` (`string`): The opening line of its instructions. - `icon` (`string | null`): The icon it wears in Roma — a name of the expert icon set, or null for the default. - `updatedAt` (`string`) - `webUrl` (`string`): The expert's page in Roma on the web. - `changed` (`string[]`): Which of `name`, `instructions` and `icon` changed. **Example** ```bash curl -X PATCH "https://api.roma.app/api/v1/experts/" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ### GET /experts/{id}/versions **The version history of an expert's instructions, newest first** · `Read-only` · MCP tool `list_versions` List the version history of one item or expert, newest first: one entry per write, each with who made it (user, ai or system, and the name it was signed with when there is one) and the cause (an edit in the app, an edit over this connection, a restore, Roma's own passes). Each entry is the body as it was BEFORE that write, so the entry naming an edit is the state that undoes it; restore_version puts one back. Use it to undo an edit, or to see how a body or an expert's instructions changed over time. Versions are kept for the item's life; a long history pages by `before`. **Path** - `id`: The item's or the expert's id (from list_items, search, get_item or list_experts). **Returns** `200` - `id` (`string`) - `hint` (`string`) - `versions` (`object[]`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/experts//versions" \ -H "Authorization: Bearer roma_…" ``` ### POST /experts/{id}/versions/{versionId}/restore **Restore an expert's instructions to an earlier version** · `Updates or removes existing data` · MCP tool `restore_version` Restore one item's or expert's body to an earlier version from list_versions (its cells too, where the snapshot kept them). The current body is snapshotted first, so a restore is itself undoable. When the person, or a collaborator, edited the body in Roma after that version, the call answers `needsConfirmation` and names those later edits instead of restoring; the same call with acceptLaterEdits: true, after the person agreed to lose them, restores. Writes made over this connection never ask: undoing them is what the tool is for. **Path** - `id`: The item's or the expert's id. - `versionId`: The version to restore, from list_versions. **Body** (JSON) | Parameter | Type | Required | Description | |---|---|---|---| | `acceptLaterEdits` | `boolean \| null` | no | true only after the person said yes to losing the edits made in Roma after that version, the ones the needsConfirmation answer named. Omit on the first call. | **Returns** `200` - `restored` (`boolean`) - `id` (`string`) - `title` (`string | null`) - `needsConfirmation` (`boolean`) - `laterEdits` (`object[]`) - `hint` (`string`) **Example** ```bash curl -X POST "https://api.roma.app/api/v1/experts//versions//restore" \ -H "Authorization: Bearer roma_…" \ -H "Content-Type: application/json" \ -d '{}' ``` ## Memory ### GET /memory/lookup **Roma's journal of what happened, for a span and words** · `Read-only` · MCP tool `lookup_memories` Read Roma's journal of what happened: one entry per day, week or month, written by Roma from the user's tasks, notes, chats and connected apps (never the user's own words). Use it for "what did I do with the accountant in March", "what happened last week", or anything before the few days get_context carries. A span (from, to; 90 days back by default, up to yesterday) and, when given, two to five plain words an entry would contain; a long span without words answers headlines only, to narrow the next call. A day entry names the tasks and notes it touched with their links. Returns `entries` newest first and a `note` about what was searched; nothing is invented when the journal has nothing. **Query parameters** | Parameter | Type | Required | Description | |---|---|---|---| | `from` | `string` | no | First local day of the span, YYYY-MM-DD. Without it: 90 days back. | | `to` | `string` | no | Last local day of the span, YYYY-MM-DD, inclusive. Without it: yesterday. | | `query` | `string` | no | Two to five plain words a matching entry would contain — a person's name, a place, a thing. Any word matches. (up to 200 characters) | | `kind` | `"day" \| "week" \| "month"` | no | Only entries of this period. Leave out to get whatever fits. | **Returns** `200` - `span` (`object`) - `headlines` (`object[]`) - `entries` (`object[]`) - `note` (`string`) **Example** ```bash curl -X GET "https://api.roma.app/api/v1/memory/lookup" \ -H "Authorization: Bearer roma_…" ```