Projects API: milestones, tasks, calendar, files and contracts
Milestones, deliverables, subtasks, labels, dependencies, calendar events, folders, file uploads, project links, delete previews and contracts over the API and MCP.
These routes cover the work of a project. Every MCP tool calls exactly one REST route, under the same scope check and the same member permissions. Every path below is under /api/v1/workspaces/{slug} and follows the usual rules: bearer credential, the workspace in the path, problem-details errors. A record of another workspace is always 404 not_found. Deletes exist only for milestones, deliverables, subtasks, timeline entries and calendar events.
Milestones, deliverables, subtasks, labels and dependencies
- GET …/projects/{id}/milestones (projects:read, tool list_milestones) returns both lists of the project, in order. Deliverables belong to the project, not to a milestone.
- POST …/projects/{id}/milestones and PATCH/DELETE …/milestones/{id} (projects:write, tools create_milestone, update_milestone, delete_milestone): name and an optional dueDate; completed: true completes a milestone and false reopens it; dueDate: null clears the date.
- POST …/projects/{id}/deliverables and PATCH/DELETE …/deliverables/{id} (projects:write, tools create_deliverable, update_deliverable, delete_deliverable): name and completed.
- POST …/tasks/{id}/subtasks and PATCH/DELETE …/subtasks/{id} (tasks:write, tools create_subtask, update_subtask, delete_subtask): title and completed; a new subtask goes after the task's last one.
- GET …/labels (tasks:read, tool list_labels) and POST …/labels (tasks:write, tool create_label): label names are not unique, so keep the id you need for PUT …/tasks/{id}/labels.
- PUT …/tasks/{id}/labels (tasks:write, tool set_task_labels) REPLACES a task's labels with exactly labelIds (at most 20; [] clears them). Every label you want to keep must be in the list.
- POST …/tasks/{id}/dependencies (tasks:write, tool add_task_dependency) marks the task as blocked by blockingTaskId, with an optional note. POST …/dependencies/{id}/resolve (tasks:write, tool resolve_task_dependency) clears the blocker once the blocking work is done; it stays as history with resolvedAt.
Deleting a milestone, deliverable or subtask that is already gone is 404. Adding a dependency has three refusals, all 409: dependency_self (a task cannot block itself), dependency_cycle (the new dependency would make tasks wait on each other, directly or through others) and dependency_chain_too_long (the check would walk past 500 tasks and fails closed). Adding the same unresolved pair again returns the existing dependency; resolving a resolved one returns it unchanged. A task of another workspace on either side is 404, before any 409.
PUT /api/v1/workspaces/acme/tasks/tsk_123/labels
Authorization: Bearer <token>
Content-Type: application/json
{ "labelIds": ["lbl_bug", "lbl_urgent"] }Calendar events and planned hours
POST …/calendar-events, PATCH …/calendar-events/{id} and DELETE …/calendar-events/{id} (calendar:write, tools create_calendar_event, update_calendar_event, delete_calendar_event) write stored events. Reading is described in Calendar, notifications and devices.
- Create takes a title and startTime, a type of meeting (the default) or other, and optionally endTime, allDay, location, description, clientId and projectId. An event for a client is also logged on that client's timeline.
- With a member's token the event is pushed to a connected Google or Microsoft calendar after it is saved: pushTo names one of the member's own connections, none pushes nowhere and leaving it out uses their default connection. Only the title, time and place are pushed: no attendees, and nothing is sent to anyone.
- ownerUserId assigns the event to another member of the workspace. Owner, admin and API keys may set it; another workspace's user is 404.
- An API key is no person, so it must name ownerUserId when it creates an event, and it never pushes to a connected calendar. Without it the request is 422 owner_required at ownerUserId.
- An event imported from a connected Google or Microsoft calendar (type: "external") belongs to the provider: updating or deleting it is 409 event_not_editable. Change it in the provider; a generated item (a task, invoice, milestone or renewal) is changed through its own resource.
POST …/allocations (capacity:write, tool upsert_allocation) replaces the planned minutes for one member, project and week; plannedMinutes: 0 deletes the row. It needs owner or admin, or a credential holding an unrestricted capacity:write.
POST /api/v1/workspaces/acme/calendar-events
Authorization: Bearer <api key>
Content-Type: application/json
{
"title": "Kick-off call",
"startTime": "2026-10-12T09:00:00+02:00",
"endTime": "2026-10-12T09:30:00+02:00",
"clientId": "cli_123",
"ownerUserId": "usr_456"
}Document folders and file uploads
Folders organise the Documents area. Listing documents and folders (GET …/documents, tool list_documents: type=folder for folders only, parent_id for a folder's contents, root=true for the top level) needs documents:read.
- POST …/documents/folders (documents:write, tool create_folder) creates a folder from a name (at most 255 characters) and, optionally, parentId (the folder to create it in; leave it out for the top level) and projectId. The folder goes on its parent's storage drive, or on the workspace's default drive at the top level. A parentId that is not a folder is 404; a parent that belongs to another project than projectId is 409 folder_project_mismatch.
- POST …/documents/{id}/move (documents:write, tool move_document) moves a document, or a folder with everything in it, into the folder parentId, or to the top level with parentId: null. A folder moved into itself or into one of its own subfolders is 409 folder_cycle, and a target folder on another storage drive is 409 storage_drive_mismatch; nothing moves. A contract's document moves as it does on the Documents screen; in a workspace without contract signing it is 403 feature_locked.
- Uploading a file is two calls. POST …/documents/uploads (tool start_document_upload) reserves storage and answers a presigned URL: PUT the bytes to that url with exactly the returned headers. Then POST …/documents/uploads/{uploadId}/complete (tool complete_document_upload) checks the stored bytes and creates the document, in the project or folder the start named (repeat projectId and folderId). A projectId without a folderId means that project's folder. The file is virus-scanned and readable only by its uploader until the scan clears it. Uploads act for a person, so they need an OAuth token: an API key is 403. Refusals include 409 storage_quota_exceeded, 409 upload_expired and 422 upload_size_mismatch or upload_type_mismatch.
The folder and move routes are open to the members who may edit documents (owner, admin and member); an accountant or a viewer is 403. A folder or project of another workspace is 404.
POST /api/v1/workspaces/acme/documents/folders
Authorization: Bearer <token>
Content-Type: application/json
{ "name": "Contracts" }
# 201 → { "id": "doc_folder_1", "type": "folder", "parentId": null, … }
POST /api/v1/workspaces/acme/documents/doc_123/move
Authorization: Bearer <token>
Content-Type: application/json
{ "parentId": "doc_folder_1" }Project links
A project's links are the addresses it lives at: its site, app, login, dashboards or hosting panel. They show on the project's Overview.
- GET …/projects/{id}/links (projects:read, tool list_project_links) returns the links in order. It is not paginated.
- PUT …/projects/{id}/links (projects:write, tool set_project_links) REPLACES the whole list with links, in the order given: at most 30, each a label of 1 to 60 characters and an absolute http(s) url without a username or password. The address is stored normalized. An empty list removes every link.
Because the write replaces the set, send every link you want to keep.
Delete preview
GET …/projects/{id}/delete-impact (projects:write, tool get_project_delete_impact) reads what a delete would do and changes nothing. It counts what the delete removes (deleted), what it detaches and keeps (unlinked) and what stops it (blocked, with the records in blockedRecords). It also gives signedContracts and crossProjectDependencies, the task dependencies on other projects that would be removed. blockedByPermission names the sections whose removed rows the caller may not delete. A delete moves the record to the recycle bin for 30 days, where owners and admins can restore it.
Contracts
- Contract operations need contracts:read or contracts:write. The documents scopes do not cover them: give a key that manages contracts the contracts scopes.
- A contract needs no client. A draft may be saved with no signers, and sending an empty roster is refused. A contact signer needs a client and is otherwise refused with contract_contact_needs_client.
- A draft whose document and project name different clients is 409 conflict with the reason contract_client_mismatch.
- Once a contract is sent it keeps its own client, even if its project changes.
Next: Billing and catalogue API. The screens behind these routes are in the guides Start a project and Work with tasks.