# Dora REST API

> About Dora: Dora is the AI account manager for teams that do client work. An agentic client portal: Dora briefs every request and gets it signed off, and your team or your own AI agents do the work.

Everything you can do in Dora, from your own scripts and agents: read what needs you, create and update requests, comment, hand work over. It's at `https://dora.work/api/v1` and speaks JSON. The [OpenAPI spec](https://dora.work/openapi.json) describes every endpoint. AI tools that support MCP can use the [MCP server](https://dora.work/docs/mcp) instead, with the same operations.

## Get a key

In Dora, open Settings, then Connect your AI, and choose New key. A key acts as you, with the access you have. You can limit it to one client, or to reading only. It's shown once; revoke it there anytime.

## Make a call

```bash
curl https://dora.work/api/v1/me -H "Authorization: Bearer $DORA_API_KEY"
```

- Path params go in the URL. GET and DELETE take the rest in the query string; POST and PATCH take a JSON body.
- Errors come back as `{ "error": "..." }` with 400 (invalid input), 401 (missing or invalid key), 403 (not allowed for this key), 404 (not found), or 405 (wrong method).
- Clients of a company only reach their own workspaces. Endpoints marked staff only are for a company's team.
- Webhooks send events (new requests, comments, submitted work, approvals, and changes to a client's library) to a URL you choose, signed with a secret: see `create_webhook` below.

## Endpoints

### GET /me

`get_me` (read-only). Who you are, and what this connection can do.

No parameters.

### PATCH /me

`update_me`. Change your display name, profile photo, timezone, or whether you get the weekly and monthly summary emails.

- `name` (string): Display name.
- `avatarFileId` (string): Image file ID from upload_file, under 5 MB. null removes the photo.
- `summaryEmails` (boolean): Summary emails: weekly (and Dora's monthly recap) for client teams, weekly across all clients for company staff.
- `timeZone` (string): Your timezone as an IANA name, like "Europe/Skopje" or "America/New_York". Dora sends reminders and summaries in your morning there, and reads "today" and "Friday" by it.

### PATCH /me/notifications

`set_notifications`. Choose where each kind of update reaches you: email, push (phone and desktop), and Slack (if linked). Everything always shows in your inbox in Dora. Leave out what stays the same. Defaults: everything by email and push, only mentions and assignments in Slack.

- `mentions` (object): Someone mentions you. As { email, push, slack }, each true or false.
- `assigned` (object): Someone puts you on a request (company staff). As { email, push, slack }, each true or false.
- `newRequests` (object): A new request. As { email, push, slack }, each true or false.
- `comments` (object): A comment on a request. As { email, push, slack }, each true or false.
- `internalNotes` (object): An internal note (company staff). As { email, push, slack }, each true or false.
- `statusChanges` (object): A request changes status. As { email, push, slack }, each true or false.
- `followUps` (object): Dora's follow-ups: reminders to clients, and word to staff when clients don't answer. As { email, push, slack }, each true or false.
- `onlyRequestsImOn` (boolean): Comments, internal notes, and status changes only for requests you opened or are assigned to. The rest still shows in your inbox.

### GET /notifications

`list_notifications` (read-only). Your 50 most recent notifications, newest first.

No parameters.

### POST /notifications/read

`mark_notifications_read`. Mark notifications read. Leave out IDs to mark all read.

- `notificationIds` (array): Notification IDs.

### GET /workspaces

`list_workspaces` (read-only). List the client workspaces you can access.

No parameters.

### GET /config

`get_config` (read-only). A company's setup: services, request types, library categories, client profile fields, and timing (autoApproveDays, followUpDays), with the keys other tools take. Pass a workspace for its company, or a company ID from get_me.

- `workspaceId` (string): Workspace ID.
- `orgId` (string): Company ID from get_me.

### POST /orgs

`create_company`. Create a company portal from its website: Dora reads the site and drafts the setup (request types, library, client profile) and logo. You become its owner. If the site can't be read, it asks for an answer: call again with what clients usually ask for. If you already have a company for that site, returns it with existing: true instead of making another.

- `website` (string, required): The company's website, e.g. acme.com.
- `answer` (string): What clients usually ask the company for, when asked.

### POST /orgs/:orgId/config/proposals

`propose_config_change` (staff only). Describe a change to your company's setup and get a proposed setup and summary. Apply it separately with update_config. Generating the proposal records model usage and can consume prepaid Dora credits. Admins only.

- `orgId` (string, required): Company ID from get_me.
- `instruction` (string, required): The change, e.g. "Add an onboarding request type".

### POST /orgs/:orgId/clients

`add_clients` (staff only). Add clients from a list, one per line: websites, emails, or company names. Each company gets a workspace; people at the same company share it and get an invite. Admins only.

- `orgId` (string, required): Company ID from get_me.
- `text` (string, required): The list, one client per line.

### GET /orgs/:orgId/webhooks

`list_webhooks` (staff only) (read-only). A company's webhooks and how their last delivery went.

- `orgId` (string, required): Company ID.

### POST /orgs/:orgId/webhooks

`create_webhook` (staff only). Add a webhook: Dora POSTs every event to the URL. Request events: request.created, request.status_changed, request.approved, request.changes_requested, comment.created, work.submitted, estimate.proposed, estimate.answered. Client library events (never the company library): library.item_added, library.item_updated, library.item_replaced, library.item_deleted (with the item's id, kind, title, tags, teamOnly, replacedBy, editedAt, revision; updates to one item go out at most every 5 minutes, with the item as it is then) and library.rule_changed (an active rule or decision added, edited, retired, or deleted, with its id, kind, status, teamOnly). Returns the signing secret once. Each POST has a Dora-Event header and Dora-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<body>">.

- `orgId` (string, required): Company ID.
- `url` (string, required): An https:// URL.

### DELETE /webhooks/:webhookId

`delete_webhook` (staff only). Remove a webhook.

- `webhookId` (string, required): Webhook ID from list_webhooks.

### PATCH /orgs/:orgId

`update_company` (staff only). Change your company's name, the name its emails come from, or its logo. Admins only.

- `orgId` (string, required): Company ID from get_me.
- `name` (string): Company name.
- `emailFromName` (string): Name emails come from. Empty uses the company name.
- `logoFileId` (string): Image file ID from upload_file. null removes the logo.

### PATCH /orgs/:orgId/config

`update_config` (staff only). Replace sections of your company's setup (services, requestTypes, libraryName, libraryCategories, profileFields, assetChecklist, autoApproveDays: days until a request in review approves itself, 0 for never, default 7; followUpDays: days a client can leave a question, review or estimate before Dora nudges them by email, twice at most, 0 for never, default 2). Send whole sections; omitted ones stay. Read the current setup with get_config first. Admins only.

- `orgId` (string, required): Company ID from get_me.
- `config` (object, required): Sections to replace, same shape as get_config returns plus each item's key. requestTypes items need key, label, description, placeholder, include, icon, services. To pause a request type (clients can't open new ones), add paused: { until?: "2026-11-04" (the day it reopens; omit to pause until resumed), note?: "shown to clients" }; remove paused to resume.

### GET /orgs/:orgId/people

`list_company_people` (staff only) (read-only). Your company's staff with their roles, plus pending invites.

- `orgId` (string, required): Company ID from get_me.

### POST /orgs/:orgId/people

`invite_company_member` (staff only). Invite someone to your company's team. Roles: owner, admin, member. Admins only; only owners invite owners.

- `orgId` (string, required): Company ID from get_me.
- `email` (string, required): Their email.
- `role` (string, required): Role. One of: owner, admin, member.

### PATCH /orgs/:orgId/people/:userId

`set_company_member_role` (staff only). Change a teammate's role. Admins only; only owners touch owners.

- `orgId` (string, required): Company ID from get_me.
- `userId` (string, required): User ID from list_company_people.
- `role` (string, required): Role. One of: owner, admin, member.

### DELETE /orgs/:orgId/people/:userId

`remove_company_member` (staff only). Remove someone from your company's team. Admins only.

- `orgId` (string, required): Company ID from get_me.
- `userId` (string, required): User ID from list_company_people.

### DELETE /org-invites/:inviteId

`revoke_company_invite` (staff only). Cancel a pending invite to your company's team.

- `inviteId` (string, required): Invite ID from list_company_people.

### POST /workspaces

`create_workspace` (staff only). Create a client workspace. The website pre-fills the brand profile, and emails get invites.

- `orgId` (string): Company (from get_me) the client belongs to. Optional if you admin one.
- `name` (string, required): Client name.
- `website` (string): Client website, e.g. acme.com.
- `services` (array, required): Service keys from get_config: what the contract covers.
- `emails` (array): Client teammates to invite.

### PATCH /workspaces/:workspaceId

`update_workspace` (staff only). Rename a workspace, change its services, or archive it.

- `workspaceId` (string, required): Workspace ID.
- `name` (string): New name.
- `services` (array): Service keys from get_config: what the contract covers.
- `archived` (boolean): Archive or restore.
- `allowance` (object): Monthly allowance: { requestsPerMonth: number, overLimit: "warn" | "queue" }. Over it, a client's new request is marked over allowance; with queue, it waits for next month. null removes the allowance.
- `agreement` (object): What the client's agreement covers, shown to them as "What's included": notes (plain text), startsOn and endsOn (YYYY-MM-DD). Empty strings clear a field.
- `approvers` (object): Who signs off work: { userIds: client people IDs from list_members, rule: "all" | "any" }. With "all" every one of them must approve; with "any" one is enough. null goes back to anyone on the client team.
- `time` (string): Time tracking for this client, when the company has it on: off, internal (the team's own numbers, never shown to the client), or billable (the client sees their hours). One of: off, internal, billable.
- `billing` (object): Invoicing for this client, when the company invoices: { on: boolean, billTo?: name and address, email?: where invoices go, retainerCents?: monthly retainer, rateCents?: hourly rate, currency?: ISO code, taxRate?: percent, paymentNote?: how they pay }. Amounts are in cents. null turns it off and clears it.

### GET /workspaces/:workspaceId/people

`list_people` (read-only). Everyone on a workspace: the client team and the company's staff. Use staff IDs for assignees.

- `workspaceId` (string, required): Workspace ID.

### GET /workspaces/:workspaceId/members

`list_members` (read-only). The client team on a workspace, plus pending invites.

- `workspaceId` (string, required): Workspace ID.

### POST /workspaces/:workspaceId/members

`invite_member`. Invite someone to a workspace by email.

- `workspaceId` (string, required): Workspace ID.
- `email` (string, required): Their email.

### DELETE /workspaces/:workspaceId/members/:userId

`remove_member` (staff only). Remove someone from a workspace.

- `workspaceId` (string, required): Workspace ID.
- `userId` (string, required): User ID.

### DELETE /invites/:inviteId

`revoke_invite` (staff only). Cancel a pending invite.

- `inviteId` (string, required): Invite ID from list_members.

### GET /workspaces/:workspaceId/requests

`list_requests` (read-only). List requests in a workspace, newest activity first. Optionally filter by status.

- `workspaceId` (string, required): Workspace ID.
- `status` (string): Only this status. One of: backlog, todo, in_progress, needs_input, in_review, done, cancelled.

### GET /requests/:requestId/suggested-assignee

`suggest_assignee` (staff only) (read-only). Who should take a request, and why: weighs the client's account team, who's done this kind of work before, what each person says they do, who's away, and how much each has open. When the work also needs a skill the first person doesn't have, "also" names a second person. Use it to assign or to explain a choice.

- `requestId` (string, required): Request ID.

### GET /orgs/:orgId/team-load

`team_load` (staff only) (read-only). Everyone on a company's team with how many open requests they have, hours logged this month (when the company tracks time), what they do, and when they're back if away. Use it to spot who's overloaded and to rebalance.

- `orgId` (string, required): Company ID.

### POST /orgs/:orgId/auto-assign

`set_auto_assign` (staff only). Turn Dora's auto-assign on or off for a company. When it's on and a client's request has no account lead (or the lead is away), she assigns it to whoever fits best and leaves a note saying why. Admins only.

- `orgId` (string, required): Company ID.
- `on` (boolean, required): On or off.

### GET /me/work

`get_my_work` (staff only) (read-only). Your work profile at each company you're on the team of: what you focus on (Dora uses it to suggest who should take a request) and the day you're away until, if any.

No parameters.

### PATCH /me/work

`update_my_work` (staff only). Change your work profile at a company: what you focus on (a short phrase, like 'web builds and SEO'), or the day you're away until (Dora won't assign you work until then; null means you're back).

- `orgId` (string, required): Company ID.
- `focus` (string): What you focus on. Empty clears it.
- `awayUntil` (string): Away until this day. null means you're back. Date like 2026-10-30. null clears it.

### POST /requests/:requestId/files

`attach_request_files`. Attach files to a request's details (not a comment). Upload them with upload_file first.

- `requestId` (string, required): Request ID.
- `files` (array, required): Files from upload_file, as { fileId, name }.

### DELETE /request-files/:attachmentId

`remove_request_file`. Remove a file from a request's details. The file IDs are in get_request's attachments.

- `attachmentId` (string, required): File ID from get_request.

### GET /briefing

`get_briefing` (read-only). Where things stand for the person you're helping, in Dora's words. For the team: their next requests in the order to do them, what's past due, what's waiting on clients, and what's up for grabs. For a client: what needs them. Call it first when someone starts a conversation about their work.

No parameters.

### GET /inbox

`inbox` (staff only) (read-only). Requests across every client of your company, for staff.

- `view` (string, required): Which requests to show. One of: mine, unassigned, waiting, open.
- `clients` (string): mine: clients whose account team you're on, plus anything assigned to you. Default all. Doesn't apply to view mine. One of: mine, all.

### GET /requests/:requestId

`get_request` (read-only). One request with its full timeline of comments and changes, files, and Brand Library references.

- `requestId` (string, required): Request ID.

### GET /requests/:requestId/context

`get_request_context` (read-only). Everything needed to do a request, in one call: the request and its thread, files, the kind of request and what it needs, the client's rules and decisions (follow them), the client's agreement and brand profile, related Brand Library items, and similar requests already delivered with what was handed over. Start here before working on a request.

- `requestId` (string, required): Request ID.

### POST /requests/:requestId/work

`submit_work` (staff only). Hand over finished work for the client to review: a note, a preview link, and files. Moves the request to In review, notifies the client, and sends events to any configured company webhooks.

- `requestId` (string, required): Request ID.
- `note` (string, required): What was done and anything the client should check, plain text.
- `previewUrl` (string): Where to see the work, an https:// link.
- `files` (array): Files from upload_file, as { fileId, name }.
- `minutes` (number): How long the work took, in minutes. Logged as time when the client's time is tracked.

### POST /requests/:requestId/time

`log_time` (staff only). Log time someone on the team spent on a request, in minutes. Only works when the company tracks time and this client's time is on (update_workspace time).

- `requestId` (string, required): Request ID.
- `minutes` (number, required): Minutes spent, from 1 to 960.
- `note` (string): What the time was for, short.

### GET /requests/:requestId/time

`get_request_time` (read-only). Time logged on a request: the total, and for the team each entry with who and when. Clients see only the total, and only when their hours are billed. null when time isn't tracked there.

- `requestId` (string, required): Request ID.

### GET /workspaces/:workspaceId/invoices

`list_invoices` (read-only). A client's invoices, newest month first, with lines, totals in cents, status (draft, issued, overdue, paid, void) and a PDF link once issued. Clients see only issued and paid ones. null when invoicing is off for the client.

- `workspaceId` (string, required): Workspace ID.

### GET /invoices/:invoiceId

`get_invoice` (read-only). One invoice: its lines, totals in cents, dates, status and PDF link.

- `invoiceId` (string, required): Invoice ID.

### POST /workspaces/:workspaceId/invoices

`draft_invoice` (staff only). Draft a client's invoice for a month from the work: the monthly retainer, change orders approved that month, and billable hours. Returns the existing draft when there is one; refresh fills it in again. Admins only, and only when the company and the client both have invoicing on (update_workspace billing).

- `workspaceId` (string, required): Workspace ID.
- `month` (string): The month, YYYY-MM. Defaults to this month.
- `refresh` (boolean): Fill an existing draft in again from the work.

### POST /requests/:requestId/price

`set_request_price` (staff only). Give a request a fixed price, in cents of the client's invoice currency, so it's invoiced on its own (invoice_request) instead of by the hour; its hours stay off the monthly invoice. null removes the price, only while it has no invoices. Admins only, when the client is invoiced.

- `requestId` (string, required): Request ID.
- `priceCents` (number, required): The price in cents, or null to remove it.

### GET /requests/:requestId/billing

`get_request_billing` (staff only) (read-only). A fixed-price request's price, what's been invoiced for it so far and what's left, in cents, with its invoices. null for clients or when the client isn't invoiced.

- `requestId` (string, required): Request ID.

### POST /requests/:requestId/invoices

`invoice_request` (staff only). Draft an invoice for a fixed-price request, separate from the monthly one: a deposit (a percent of the price, only before any other invoice for it) or the rest (everything not yet invoiced). Returns the open draft if there is one. Issue it with issue_invoice.

- `requestId` (string, required): Request ID.
- `part` (string): A deposit, or the rest of the price. One of: deposit, rest.
- `percent` (number): For a deposit: the percent of the price, 1 to 99. Defaults to 50.

### POST /invoices/:invoiceId/issue

`issue_invoice` (staff only). Issue a draft invoice: it gets its number, due date and PDF, and can't change after. With send it's also emailed to the client's billing contact. Confirm with the person before issuing or sending.

- `invoiceId` (string, required): Invoice ID.
- `send` (boolean): Email it to the client now. Defaults to false.

### POST /invoices/:invoiceId/paid

`mark_invoice_paid` (staff only). Mark an issued invoice paid (or unpaid again). Payment itself happens outside Dora.

- `invoiceId` (string, required): Invoice ID.
- `paid` (boolean, required): Paid or not.

### POST /workspaces/:workspaceId/requests

`create_request`. Open a new request in a workspace. Can notify the company team and send a request-created event to configured webhooks.

- `workspaceId` (string, required): Workspace ID.
- `title` (string, required): Short title.
- `body` (string): Details, plain text.
- `type` (string): Request type key from get_config.
- `neededBy` (string): When the client needs it. Date like 2026-10-30. null clears it.
- `files` (array): Files from upload_file, as { fileId, name }.

### PATCH /requests/:requestId

`update_request`. Edit a request. Anyone who can see it can change title, body, type, and neededBy. Status, assignees, priority, due date, and waitingOnClient are staff only. Status and assignment changes can send notifications, and status changes can reach company webhooks.

- `requestId` (string, required): Request ID.
- `title` (string): New title.
- `body` (string): New body, plain text.
- `type` (string): Request type key from get_config.
- `neededBy` (string): When the client needs it. Date like 2026-10-30. null clears it.
- `status` (string): Workflow status. One of: backlog, todo, in_progress, needs_input, in_review, done, cancelled.
- `assigneeIds` (array): Everyone who should be on it: staff user IDs from list_people. Replaces who's on it; [] unassigns everyone. To add someone, send the current assignees plus them.
- `assigneeId` (string): One staff user ID, the same as assigneeIds with just them. null unassigns everyone.
- `priority` (string): Priority. One of: none, low, medium, high, urgent.
- `dueDate` (string): The team's due date. Date like 2026-10-30. null clears it.
- `waitingOnClient` (boolean): false: the team isn't waiting on the client for this request (it stops showing as waiting until someone asks them something new). true undoes that.

### POST /comments/:commentId/reactions

`react_to_comment`. React to a comment with an emoji, or take your reaction back if it's already there (it toggles). Reactions show under the comment with who left them; get_request's timeline lists them. Use it to acknowledge something without a reply. Nobody is notified.

- `commentId` (string, required): Comment ID, from get_request's timeline.
- `emoji` (string, required): The reaction. One of: 👍, ❤️, 🎉, 😄, 👀, 🙏.

### POST /requests/:requestId/brief

`fix_brief`. Correct Dora's brief on a request (get_request's "brief") when it got something wrong or missed something. Give the correction in one plain sentence, like "The deadline is Friday, not Thursday" or "It's the pricing page, not the homepage". Dora rewrites the brief with it in a few seconds, replacing the current one (the earlier version isn't kept; the request, its details and comments aren't changed), and later rewrites keep the correction. The brief is visible to the client.

- `requestId` (string, required): Request ID.
- `correction` (string, required): What the brief should say instead.

### POST /requests/:requestId/brief/rewrite

`rewrite_brief` (staff only). Have Dora rewrite a request's brief now, from the request and its client-visible thread: after editing the details, or to brief a request the team opened (requests from clients get one on their own). It replaces the current brief; the earlier version isn't kept, and the request, its details and comments aren't changed. Team only.

- `requestId` (string, required): Request ID.

### POST /requests/:requestId/follow-ups

`set_follow_ups` (staff only). Pause or resume Dora's follow-ups on one request. While a request waits on the client (a question, a review, an estimate), Dora nudges them by email after the company's followUpDays, twice at most, then tells the team. get_request's "followUp" says when she nudges next. Team only.

- `requestId` (string, required): Request ID.
- `paused` (boolean, required): true to pause her nudges on this request, false to resume.

### DELETE /requests/:requestId/team-flag

`clear_team_flag` (staff only). Clear Dora's flag on a request: the team has it in hand. Dora flags a request when a client asks for a person, raises money or the contract, or is unhappy; get_request's "teamFlag" has her reason. It also clears on its own when someone on the team replies to the client on the request. While it's open, her follow-ups wait. Team only.

- `requestId` (string, required): Request ID.

### POST /requests/:requestId/answer

`answer_request`. Hand a request waiting for client input back to the team after the client has answered. Restores the previous working status, can notify assignees, and sends a status event to any configured company webhooks.

- `requestId` (string, required): Request ID.

### POST /requests/:requestId/sign-off

`sign_off_request`. Answer a request that's In review: approve it (it becomes Done) or ask for changes (back to In progress, with a comment saying what). Clients normally do this; staff can record an approval they got elsewhere.

- `requestId` (string, required): Request ID.
- `decision` (string, required): Approve, or ask for changes. One of: approve, changes.
- `comment` (string): What should change. Required when asking for changes.
- `commentId` (string): Or the ID of a comment of yours on this request that says what should change, from get_request.

### POST /requests/:requestId/change-order

`propose_change_order` (staff only). Mark a request as outside the client's agreement and send them an estimate to approve or decline. It doesn't count toward their monthly allowance. Pass estimate null to withdraw an unanswered estimate.

- `requestId` (string, required): Request ID.
- `estimate` (string, required): The price or effort, as the client should read it, like "$450" or "6 hours". null withdraws it.
- `note` (string): Why it's extra, or what the estimate covers.

### POST /requests/:requestId/change-order/answer

`answer_change_order`. Approve or decline the estimate on a request that's outside the agreement. Clients do this.

- `requestId` (string, required): Request ID.
- `approve` (boolean, required): True to approve, false to decline.

### DELETE /requests/:requestId

`delete_request`. Delete a request and its comments and files. Staff can delete any request; clients only their own, before it's picked up.

- `requestId` (string, required): Request ID.

### GET /workspaces/:workspaceId/recurring

`list_recurring_requests` (staff only) (read-only). A client's recurring requests: what each opens, its schedule, the next day it opens, and whether it's paused.

- `workspaceId` (string, required): Workspace ID.

### POST /workspaces/:workspaceId/recurring

`create_recurring_request` (staff only). Set up a request that opens on a schedule, like a monthly report. Give fromRequestId to copy an existing request, or a title and body. A schedule due today can open a request immediately, notifying staff and configured company webhooks. The repeat is { unit: "week" | "month", every: 1-12, day }, where day is 1-7 for weeks (Monday to Sunday) or 1-31 for months (31 means the last day). Team only.

- `workspaceId` (string, required): Workspace ID.
- `fromRequestId` (string): Copy this request's title, text, type, assignees, and priority.
- `title` (string): Title for each request it opens.
- `body` (string): Text for each request, in Markdown.
- `type` (string): Request type key from get_config.
- `assigneeIds` (array): Who each request is assigned to (team user IDs).
- `assigneeId` (string): One assignee, the same as assigneeIds with just them.
- `priority` (string): Priority for each request. One of: none, low, medium, high, urgent.
- `repeat` (object, required): { unit: "week" | "month", every: number, day: number }, for example { unit: "month", every: 1, day: 1 } for the 1st of every month.
- `startOn` (string): The first day it can open; it opens on the first scheduled day from then. Date like 2026-10-30. null clears it.
- `dueAfterDays` (number): Each request is due this many days after it opens.

### PATCH /recurring/:recurringId

`update_recurring_request` (staff only). Change a recurring request's content or schedule, or pause or resume it. If the updated schedule is due today, it can open a request immediately and notify staff and configured company webhooks. Team only.

- `recurringId` (string, required): Recurring request ID.
- `fromRequestId` (string): Future ones copy this request's title, text, type, assignees, and priority.
- `title` (string): New title.
- `body` (string): New text, in Markdown.
- `type` (string): Request type key. null clears it.
- `assigneeIds` (array): Who each request is assigned to. [] clears it.
- `assigneeId` (string): One assignee, the same as assigneeIds with just them. null clears it.
- `priority` (string): Priority. One of: none, low, medium, high, urgent.
- `repeat` (object): New schedule: { unit: "week" | "month", every, day }.
- `startOn` (string): Restart the schedule from this day. Date like 2026-10-30. null clears it.
- `dueAfterDays` (number): Days after opening that each is due. null clears it.
- `active` (boolean): false pauses, true resumes.

### POST /recurring/:recurringId/run

`run_recurring_request` (staff only). Open a request from a recurring schedule now. The regular schedule carries on. This can notify staff and send an event to configured company webhooks. Team only.

- `recurringId` (string, required): Recurring request ID.

### DELETE /recurring/:recurringId

`delete_recurring_request` (staff only). Stop a recurring request for good. Requests it already opened stay. Team only.

- `recurringId` (string, required): Recurring request ID.

### POST /requests/:requestId/comments

`add_comment`. Comment on a request or reply in a thread using parentId. Replies inherit the thread's visibility in Dora. The comment can notify eligible participants and be sent to company-configured webhooks.

- `requestId` (string, required): Request ID.
- `body` (string, required): Comment, plain text.
- `internal` (boolean): Staff only.
- `parentId` (string): Comment ID to reply to, from get_request.
- `files` (array): Files from upload_file, as { fileId, name }.

### PATCH /comments/:commentId

`edit_comment`. Edit one of your comments.

- `commentId` (string, required): Comment ID from get_request.
- `body` (string, required): New text.

### DELETE /comments/:commentId

`delete_comment`. Delete one of your comments.

- `commentId` (string, required): Comment ID from get_request.

### POST /comments/:commentId/share

`share_comment` (staff only). Share one of your internal notes with the client: it and its replies, files included, become comments the client sees, and the client is notified like a new comment. Only the note a thread starts with.

- `commentId` (string, required): Internal note ID from get_request.

### POST /files

`upload_file`. Upload a file (up to 10 MB), then attach it with create_request, add_comment, or add_library_files.

- `name` (string, required): File name, e.g. logo.svg.
- `contentType` (string, required): MIME type, e.g. image/svg+xml.
- `data` (string, required): File contents, base64-encoded.

### GET /workspaces/:workspaceId/library

`search_library` (read-only). List or search a client's library: files, links, notes, docs, and work delivered on finished requests. Searching includes each item's text. Old versions are left out unless includeOld is true. Each item has a link to cite it with.

- `workspaceId` (string, required): Workspace ID.
- `query` (string): Search text.
- `category` (string): Only this category key, from get_config.
- `includeOld` (boolean): Include versions a newer one has replaced.

### GET /orgs/:orgId/library

`search_company_library` (staff only) (read-only). List or search the company library: the team's own docs, templates, and files for every client. Team only.

- `orgId` (string, required): Company ID.
- `query` (string): Search text.
- `category` (string): Only this category key, from get_config.
- `includeOld` (boolean): Include versions a newer one has replaced.

### GET /library/:itemId

`get_library_item` (read-only). One library item with its text (a doc's full text, a file's extracted text), its link, its versions, and comments on it (on a spot of a file, a stretch of a doc, or the whole thing). Text comes up to 20,000 characters at a time: textLength is the whole length, and truncated is true when there's more, read from offset + the text's length.

- `itemId` (string, required): Library item ID.
- `offset` (number): Where the text starts, in characters. Default 0.
- `limit` (number): Most characters of text to return, up to 20000 (the default).

### POST /workspaces/:workspaceId/library

`add_to_library`. Add a link or a note to a client's library. It's read and sorted automatically.

- `workspaceId` (string, required): Workspace ID.
- `url` (string): A link to add.
- `text` (string): Or a note to add.
- `title` (string): Title for a note.
- `teamOnly` (boolean): Only the company's team sees it. Team only.

### POST /orgs/:orgId/library

`add_to_company_library` (staff only). Add a link or a note to the company library. Team only.

- `orgId` (string, required): Company ID.
- `url` (string): A link to add.
- `text` (string): Or a note to add.
- `title` (string): Title for a note.

### POST /workspaces/:workspaceId/library/files

`add_library_files`. Add uploaded files to a client's library. With replaces (one file), it's a new version of that item and the old one is kept as an earlier version.

- `workspaceId` (string, required): Workspace ID.
- `files` (array, required): Files from upload_file, as { fileId, name }.
- `replaces` (string): Library item ID this file is a new version of.
- `teamOnly` (boolean): Only the company's team sees them. Team only.

### POST /orgs/:orgId/library/files

`add_company_library_files` (staff only). Add uploaded files to the company library. Team only.

- `orgId` (string, required): Company ID.
- `files` (array, required): Files from upload_file, as { fileId, name }.

### POST /library-docs

`create_library_doc`. Write a doc in a client's library (workspaceId) or the company library (orgId): a brand voice, kickoff notes, how you work together. The body is Markdown (headings, lists, bold, links); don't repeat the title as a heading.

- `workspaceId` (string): Workspace ID, for a client's library.
- `orgId` (string): Or the company ID, for the company library.
- `title` (string, required): Doc title.
- `body` (string): The doc, in Markdown.
- `teamOnly` (boolean): In a client's library, only the company's team sees it. Team only.

### PATCH /library-docs/:itemId

`update_library_doc`. Rename a library doc or replace its text (Markdown). Read it first with get_library_item and send the whole doc back. Don't repeat the title as a heading.

- `itemId` (string, required): Library item ID of the doc.
- `title` (string): New title.
- `body` (string): The whole doc, in Markdown.

### PATCH /library/:itemId

`update_library_item`. Rename, recategorize, or retag a library item, change who sees it, or mark it as the newer version of another item (replaces; null undoes it and turns down Dora's suggestion).

- `itemId` (string, required): Library item ID.
- `title` (string): New title.
- `category` (string): Category key from get_config.
- `tags` (array): Tags.
- `teamOnly` (boolean): Only the company's team sees it. Team only.
- `replaces` (string): Library item ID this is the newer version of. null undoes it.

### DELETE /library/:itemId

`delete_library_item`. Remove an item from a library.

- `itemId` (string, required): Library item ID.

### POST /library/:itemId/retry

`retry_library_item`. Have Dora read a library item again: after it failed to process, or after the file or linked page changed. For a link, Dora fetches the page again. Replaces what Dora wrote about it, and hands its category back to Dora even if someone set it by hand.

- `itemId` (string, required): Library item ID.

### GET /library-rules

`list_library_rules` (read-only). A client's rules (standing preferences, like "Never use orange") and decisions (choices made on past requests), or the company's own rules (orgId). Follow them in any work for the client. The team also gets Dora's suggestions waiting for review, and kept ones she flagged as clashing, repeated, or out of date.

- `workspaceId` (string): Workspace ID, for a client's rules.
- `orgId` (string): Or the company ID, for the company's own rules.

### POST /library-rules

`add_library_rule`. Keep a rule or decision for a client (workspaceId) or the company (orgId). One short sentence. Link the request it came from if there is one.

- `workspaceId` (string): Workspace ID, for a client's rule.
- `orgId` (string): Or the company ID, for a company rule.
- `kind` (string): Rule (default) or decision. One of: rule, decision.
- `text` (string, required): The rule, in one short sentence.
- `teamOnly` (boolean): Only the company's team sees it. Team only.
- `requestId` (string): The request it came from.

### PATCH /library-rules/:ruleId

`update_library_rule`. Reword a rule, switch rule and decision, or change who sees it.

- `ruleId` (string, required): Rule ID.
- `text` (string): New wording.
- `kind` (string): Rule or decision. One of: rule, decision.
- `teamOnly` (boolean): Only the company's team sees it. Team only.

### POST /library-rules/:ruleId/resolve

`resolve_library_rule` (staff only). Keep (optionally reworded) or skip one of Dora's suggested rules, or answer her flag on a kept one: accept does what the flag proposes (retire it, or reword it to her text or yours), otherwise the rule stays as it is. Team only.

- `ruleId` (string, required): Rule ID.
- `accept` (boolean, required): Keep it.
- `text` (string): Reworded, if keeping it.

### POST /library-rules/check

`check_library_rules` (staff only). Have Dora check a client's rules and decisions for conflicts, duplicates, and outdated entries. Updates the review flags in list_library_rules and records model usage. Runs in the background, at most once an hour. Team only.

- `workspaceId` (string, required): Workspace ID.

### DELETE /library-rules/:ruleId

`delete_library_rule`. Delete a rule or decision.

- `ruleId` (string, required): Rule ID.

### GET /workspaces/:workspaceId/brand-profile

`get_brand_profile` (read-only). A workspace's brand profile, its rules and decisions, what's still missing, and details found in uploads waiting for review.

- `workspaceId` (string, required): Workspace ID.

### GET /workspaces/:workspaceId/delivery

`get_delivery_record` (read-only). What a client got in a month: requests delivered and how they were approved, average turnaround, use of the monthly allowance, approved estimates, and Dora's recap once the month is over.

- `workspaceId` (string, required): Workspace ID.
- `month` (string): Month like 2026-10. Defaults to this month.

### PATCH /workspaces/:workspaceId/brand-profile

`update_brand_profile`. Set brand profile fields. An empty value clears a field. Setting a new website can queue a fetch of that website to fill in the brand profile.

- `workspaceId` (string, required): Workspace ID.
- `fields` (array, required): Fields to set, as { field, value }.

### POST /brand-profile/suggestions/:suggestionId

`resolve_suggestion`. Accept or skip a brand profile detail found in an upload (from get_brand_profile).

- `suggestionId` (string, required): Suggestion ID.
- `accept` (boolean, required): true to use it, false to skip it.

## Discovery

- [OpenAPI spec](https://dora.work/openapi.json)
- [API catalog](https://dora.work/.well-known/api-catalog)
- [MCP docs](https://dora.work/docs/mcp)
- [auth.md](https://dora.work/auth.md)
