Skip to content

Client requests API

This page describes how an integration reads and drives client requests: ask for files or answers on a project, follow what the recipient sends back, accept or ask for a correction, manage contacts, links between projects and the history.

The examples come from real calls against the API, on example data. Routes that send an e-mail are described from the code and marked “not run”.

Overview

Two surfaces expose this journey. MCP tools accept a personal token or an OAuth connection: that is the path for an integration. The REST routes are the app’s own; they need a session and refuse personal tokens.

CredentialHowWhat it opens
Personal token (sl_…) on MCPPOST /mcp, scope projects:read to read, projects:write to writeThe read and write tools of the journey, except those that touch mailboxes, branding, templates, fields and the sidebar.
OAuth connection on MCPStellary consent; the workspace is chosen at consentThe same tools, under the same scopes.
Workspace agentAgent token, running missionThe tools its role and tool policy allow; every write of this journey waits for a member’s approval.
App session (JWT)Authorization: Bearer <jwt> from /auth/login, or the session cookieEvery REST route on this page.
Personal token on REST—Refused: 403 “PAT scope unsupported for this route” on every route of this journey.

The model

  • A client is a project. Its record is a facet of the project: a kind (company or person), the values of the configured fields, and the project’s name as the client’s name. Taking the record off leaves the whole project: board, documents, requests, files, links and history. Any project can receive requests, with or without a record.
  • A request is made on a project, addressed to a person (recipientEmail), for one client or none (clientId), followed by a member (reviewerId). It carries a deadline (dueOn), public links valid for days days (30 by default) and a fingerprint of its links, linkRevision, sent back as revision so you never act on links that changed.
  • Its items are pieces (kind file, up to 10 files each), questions (text) or choices (choice). Each item has an integer revision that grows with every change: a decision sends it back, or it is refused.
  • Contacts are a project’s people. id is their place on this project (the linkId of the routes), contactId the person, who may be on several projects (alsoOn). role says which side they are on (client by default), title their function, isPrimary the main contact.
  • Links join two projects: a client and its folders (attaches, attached_to), a prerequisite and what waits for it (blocks, depends_on). A folder may belong to several clients; a request made there then names clientId.
  • The journal is one history per project, including the projects it gathers directly, except what they addressed to another client. Requests, answers, decisions, contacts, links and recorded exchanges appear there.

Item states

statusMeaningWhat can follow
waitingAwaited, nothing received.The recipient sends: received.
receivedReceived, to review.review: accepted, replace or waived.
replaceCorrection asked; the reason is in replacementReason.The recipient sends again: received.
acceptedAccepted. With unavailable: true, accepted without the piece (decision waived).reopen: received; review replace.

unavailable: true means the recipient says they do not have the piece; their reason is in note. A request is complete when all its items are accepted.

Access and tokens

Create a personal token from the API tokens section with projects:read to read and projects:write to write (a token created without scopes is read-only: projects:read and pilotage:read). Then call the MCP endpoint:

curl https://api.stellary.co/mcp \
-H "Authorization: Bearer sl_..." \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_requests","arguments":{"projectId":"<projectId>","status":"open"}}}'
  • A personal token is bound to no workspace: MCP acts in your default workspace (that of your personal organization, else of the oldest organization you own). To target another workspace, use an OAuth connection: the workspace is chosen at consent. stellary_init returns the workspaceId in use.
  • The scope required follows the tool’s permissions: project.read needs projects:read; project.create, project.update or document.create need projects:write. A tool requiring a plugin.* or workspace.* permission is refused to a personal or human OAuth token: “PAT scope unsupported for tool”.
  • Your workspace rights apply on top: a restricted project you cannot read is neither listed nor opened.

The REST routes of this journey refuse personal tokens. Real response to a call with a projects:read + projects:write token:

GET /orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/requests
Authorization: Bearer sl_...
403
{
"statusCode": 403,
"message": "PAT scope unsupported for this route",
"error": "Forbidden"
}

Exception: PATCH /orgs/:orgSlug/workspaces/:wsSlug/projects/:id (projects route) accepts a projects:write token.

E-mails and approvals

Stellary emails the recipient in the following cases. When you request an email on creation, renewal, or a manual reminder, check the sent field. If it is false, the request exists and you can share the link returned in url.

  • the request, when created with sendEmail: true (create_client_request, POST requests);
  • a new link, with renew and sendEmail: true;
  • a manual reminder with remind, when the recipient has an address and items are still outstanding. A repeat reminder sent too soon returns CLIENT_REMINDER_RECENT.
  • automatic reminders, when reminderEvery is 3 or 7: at each interval while an item is owed, up to reminderMax (3 by default), never on a switched-off or expired request;
  • a 6-digit code, when the request has requireCode and the recipient asks for it on their page.

Changing a request (update), deciding on an item, switching links off, managing contacts and links sends nothing. The member who follows the request is told in the app when the recipient sends a file or an answer, and when the follow-up is handed to them.

Approvals. Called with your own identity (personal token, OAuth “yourself”), the tools run at once, under your rights. Called by an agent, every write tool of this journey waits for a member’s approval, whatever its autonomy mode; the approved action goes back through the approver’s rights (else approver_permission_denied). Some inputs are checked before approval is asked (reminders, update, review, reopen): a refusal then reaches the agent with no approval card. For an MCP agent, project tools need the missionRunId of a running mission.

MCP tools

Names are stable: agents’ tool policies are stored under these names. Reading, scope projects:read:

  • list_client_recordsClient directory: what each one still owes, what awaits review, expired links.Inputs: query?, day?
  • get_client_recordA client project’s record: kind, fields, contacts, folders, requests and what came back.Inputs: clientId, day?
  • list_requestsA project’s requests (its Follow-up). scope own or all, status open, done or all.Inputs: projectId, scope?, status?, day?
  • list_received_filesFiles received, grouped by piece, a page at a time.Inputs: projectId, query?, project?, state?, after?
  • list_request_recipientsPossible recipients (name, email, title = their function; role repeats it, its former name), possible clients (clientId) and projects the request may be filed in.Inputs: projectId
  • list_contactsThe project’s people, main contact first, with their last exchange.Inputs: projectId
  • get_client_historyThe history of the project and of the projects it gathers, newest first.Inputs: projectId, cursor?, limit?, query?, actor?, project?, item?, kind?, from?, to?
  • list_project_linksThe project’s links: attachedTo, attaches, dependsOn, blocks.Inputs: projectId
  • list_client_followupsWhat waits for the member, or the whole team (team: true): pieces to review, late answers, expired links.Inputs: team?, day?
  • list_client_request_templatesThe team’s request templates and what it asks for most often.Inputs: —
  • list_client_fieldsThe configured record fields.Inputs: —
  • get_workspace_brandThe name, colour and logo the recipient sees.Inputs: —

Writing, scope projects:write:

  • create_client_recordCreates a client project, or gives an existing project a record (projectId).Inputs: name, recordType?, values?, contactName?, email?, phone?, contacts?, projectId?, accessMode?, memberIds?
  • update_client_recordRenames the client (owner only) or edits its fields. The record type is set at creation.Inputs: clientId, changes { name?, recordType?, values?, revision? }
  • remove_client_recordTakes the record off; the project keeps everything else. Owner, or a member who may change the workspace.Inputs: clientId
  • add_contactupdate_contactremove_contactThe project’s people.Inputs: projectId, contactId?, name?, email?, phone?, title?, role?, isPrimary?
  • log_client_contactRecords a call, a meeting or an internal note in the history.Inputs: projectId, kind, text, clientId?
  • create_client_requestAsks for files or answers. Returns requestId and the public link.Inputs: projectId, name, items, clientId?, reviewerId?, recipientEmail?, recipientName?, message?, dueOn?, days?, requireCode?, sendEmail?, reminderEvery?, reminderMax?, brandName?, brandColor?, brandLogo?, saveTemplate?
  • update_client_requestChanges a request already made. Sends nothing.Inputs: requestId, revision?, name?, message?, dueOn?, recipientEmail?, recipientName?, requireCode?, extendDays?, addItems?, removeItemIds?, reviewerId?
  • revoke_client_requestSwitches every public link off. Nothing is deleted.Inputs: requestId, revision?
  • renew_client_requestOne more link; reopens a switched-off request.Inputs: requestId, revision?, sendEmail?
  • remind_client_requestReminds the recipient now, by e-mail.Inputs: requestId, revision?
  • set_automatic_remindersTurns automatic reminders on, sets or stops them.Inputs: requestId, reminderEvery (3, 7 or null), reminderMax?
  • assign_client_reviewHands the follow-up to a member.Inputs: requestId, reviewerId
  • review_client_itemAccepts (accepted), asks for a correction (replace, reason required) or accepts without the piece (waived).Inputs: itemId, revision, status, reason?
  • reopen_client_itemTakes an acceptance back: the item is to review again.Inputs: itemId, revision
  • link_projectsunlink_projectsLinks or unlinks two projects.Inputs: projectId, otherProjectId, role
  • link_client_projectAttaches an existing project to a client (role attached_to).Inputs: clientId, projectId
  • create_linked_projectCreates a folder (case, the default) or a project already attached.Inputs: projectId, name, kindKey?

Kept for workspace agents and the app (refused to a personal or human OAuth token):

  • list_client_incoming_mailmatch_client_mailE-mail attachments to file (permission plugin.read).Inputs: —, threadId, attachmentId?
  • file_client_attachmentdismiss_client_attachmentFile or ignore an attachment (permission plugin.configure).Inputs: threadId, attachmentId, …
  • save_client_request_templateconfigure_client_fieldset_workspace_brandWorkspace settings (permission workspace.update).Inputs: …
  • get_sidebar_categoriesconfigure_personal_sidebarconfigure_shared_sidebarSidebar (workspace.* permissions).Inputs: revision, sections

Renaming a project that carries a client record follows one rule, whatever the door (update_project, update_client_record, PATCH projects/:id, PATCH record): only its owner renames it, or an agent working for them (CLIENT_RENAME_OWNER_ONLY otherwise); an agent always goes through approval, and the client’s history keeps “old name → new name”. add_project_member on a restricted project always goes through approval when an agent calls it, and only the owner may open it (PROJECT_OWNER_ONLY).

MCP examples

Real calls with a projects:read + projects:write personal token. Without reviewerId, you follow the request; without recipientEmail, the client’s main contact receives it.

// tools/call
{
"name": "create_client_request",
"arguments": {
"projectId": "5fc6e5a0-d473-4bb4-a8ff-a36542c5b2c9",
"name": "Pièces pour le bilan 2026",
"dueOn": "2026-12-15",
"items": [
{ "label": "Relevés bancaires de décembre", "kind": "file" },
{ "label": "Avez-vous changé de banque cette année ?", "kind": "choice", "choices": ["Oui", "Non"] }
]
}
}
// result.content[0].text
{
"requestId": "203f96c0-7a60-41dc-956a-8f72c6339ecc",
"id": "203f96c0-7a60-41dc-956a-8f72c6339ecc",
"url": "<public /r/… link, masked>"
}

An error of this journey’s tools comes back with isError: true, its stable code and its extra fields (choices, field, itemId…): in structuredContent.error, and in the text, “Error [CODE]: message” followed by the same object as JSON. The message is in French; the code does not depend on any language. On a folder that belongs to two clients:

{
"content": [
{
"type": "text",
"text": "Error [CLIENT_CHOICE_REQUIRED]: Plusieurs clients sont possibles : précise lequel (clientId).
{"code":"CLIENT_CHOICE_REQUIRED","message":"Plusieurs clients sont possibles : précise lequel (clientId).","choices":[…]}"
}
],
"structuredContent": {
"error": {
"code": "CLIENT_CHOICE_REQUIRED",
"message": "Plusieurs clients sont possibles : précise lequel (clientId).",
"choices": [
{ "id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79", "name": "Atelier Exemple" },
{ "id": "5e1d33e6-aaf8-48b6-be9d-fa2f05eceb5d", "name": "Studio Exemple" }
]
}
},
"isError": true
}

Call again with one of the clientId values in choices. An error with no code (missing identity, project out of reach) keeps the “Error: message” shape.

REST routes (session)

These routes serve the app. They need a session: Authorization: Bearer <jwt> from /auth/login (no CSRF header), or the session cookie with X-CSRF-Token. They go through the same guard chain as the rest of the API (authentication, organization, workspace, permission). Status codes: 201 for a successful POST, 200 otherwise.

/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/…

RoutePurposePermissionMatching tool
POSTrequestsCreate a requestproject.update, document.createcreate_client_request
GETrequestsThe project’s requests (day)project.readlist_requests
GETrecipientsPossible recipientsproject.readlist_request_recipients
GETrecordRead the record (day)project.readget_client_record
PATCHrecordChange name and fieldsproject.updateupdate_client_record
DELETErecordTake the record offproject.update + owner or workspace.updateremove_client_record
GETrecord/removalContacts the removal would detachproject.update—
GETcontactsThe project’s peopleproject.readlist_contacts
POSTcontactsAdd a personproject.updateadd_contact
PATCHcontacts/:linkIdChange a personproject.updateupdate_contact
DELETEcontacts/:linkIdTake a person offproject.updateremove_contact
GETlinksThe project’s links (day)project.readlist_project_links
POSTlinksLink two projectsproject.updatelink_projects
POSTlinks/newCreate an attached folderproject.create, project.updatecreate_linked_project
DELETElinks/:otherProjectIdRemove a link (?role= required)project.updateunlink_projects
GETfilesFiles received (query, project, state, after)project.readlist_received_files
GETfiles/archiveThe same files as a zipproject.read, document.read—
GEThistoryHistory (cursor, limit, query, actor, project, item, kind, from, to)project.readget_client_history
POSThistoryRecord an exchangeproject.updatelog_client_contact
POSTemailFile an unsolicited attachmentproject.update, plugin.configure, document.createfile_client_attachment

/orgs/:orgSlug/workspaces/:wsSlug/client-work/…

RoutePurposePermissionMatching tool
POSTclientsCreate a clientproject.create, project.updatecreate_client_record
PATCHrequests/:idChange a requestproject.update, document.createupdate_client_request
POSTrequests/:id/revokeSwitch the links offproject.updaterevoke_client_request
POSTrequests/:id/renewNew linkproject.update, document.createrenew_client_request
POSTrequests/:id/remindRemind (e-mail)project.update, document.createremind_client_request
PUTrequests/:id/remindersAutomatic remindersproject.update, document.createset_automatic_reminders
POSTrequests/:id/assignHand the follow-up overproject.updateassign_client_review
POSTitems/:id/reviewDecide on an itemproject.updatereview_client_item
POSTitems/:id/reopenTake an acceptance backproject.updatereopen_client_item
POSTitems/:id/emailFile an attachment on an itemproject.update, plugin.configure, document.createfile_client_attachment
GETdirectoryClient directory (query, day)project.readlist_client_records
GETfollowFollow-up (team=1, day)project.readlist_client_followups
GETfollow/countFollow-up count (day)project.readlist_client_followups
GETtemplatesRequest templatesproject.readlist_client_request_templates
GETcommon-itemsItems often askedproject.readlist_client_request_templates
POSTtemplatesSave a templateworkspace.updatesave_client_request_template
GETfieldsRecord fieldsproject.readlist_client_fields
POSTfieldsCreate a fieldworkspace.updateconfigure_client_field
PUTfields/:idChange a fieldworkspace.updateconfigure_client_field
GETbrandIdentity the recipient seesproject.readget_workspace_brand
PUTbrandChange that identityworkspace.updateset_workspace_brand
GETnavigationSidebarworkspace.readget_sidebar_categories
PUTnavigationMy sidebarworkspace.readconfigure_personal_sidebar
PUTnavigation/sharedThe team’s sidebarworkspace.updateconfigure_shared_sidebar
GETincomingAttachments received, to fileproject.read, plugin.readlist_client_incoming_mail
GETmail/:threadId/matchesItems an attachment may be filed onproject.read, plugin.readmatch_client_mail
GETmail/:threadId/attachments/:attachmentId/contentAn attachment’s bytesproject.read, plugin.read—
GETmail/:threadId/attachments/:attachmentId/dismissalIgnored? by whomproject.read, plugin.readmatch_client_mail
POSTmail/:threadId/attachments/:attachmentId/dismissDismiss an attachmentproject.update, plugin.configuredismiss_client_attachment
DELETEmail/:threadId/attachments/:attachmentId/dismissRestore a dismissed attachmentproject.update, plugin.configure—

Requests and items

POST
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/requests

Creates a request on the project. The recipient is the client’s main contact when recipientEmail is left out. Without sendEmail nothing leaves: you pass the link on yourself. Real response, link masked.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
namestringrequiredRequest name
reviewerIdstringMember who follows it; left out: you
itemsarrayrequired1 to 30: { label, kind: file | text | choice, choices? }
Complex type — edit in code
messagestringWords to the recipient (1000 max)
dueOnstringYYYY-MM-DD
clientIdstringClient concerned; null: none
Complex type — edit in code
recipientEmailstringRecipient
Complex type — edit in code
sendEmailbooleanRequests email delivery of the link
Complex type — edit in code
reminderEverynumber3 or 7: automatic reminders
Complex type — edit in code
daysnumberLink lifetime, 30 by default
Complex type — edit in code
requireCodebooleanCode e-mailed to the recipient
Complex type — edit in code
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/requests' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Pièces pour le bilan 2026",
"reviewerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"message": "Bonjour, voici ce qu'\''il nous faut pour préparer le bilan.",
"dueOn": "2026-12-15",
"items": [
{
"label": "Relevés bancaires de décembre",
"kind": "file"
},
{
"label": "Kbis de moins de trois mois",
"kind": "file"
},
{
"label": "Avez-vous changé de banque cette année ?",
"kind": "choice",
"choices": [
"Oui",
"Non"
]
}
]
}'

Response201
{
"id": "f8481479-76e0-4686-ad9e-1db692e5d25b",
"url": "<public /r/… link, masked>"
}

GET
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/requests?day=2026-11-23

Lists requests for the project, requests addressed to it as a client, and requests from its linked folders. The response also includes the record, its fields, the linked folders, and available clients. The day parameter sets the calendar date used to determine whether a request is overdue.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
curl 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/requests?day=2026-11-23' \
-H "Authorization: Bearer YOUR_TOKEN"

Response200
{
"clients": [
{
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"recordType": "company",
"name": "Atelier Exemple",
"contact": { "name": "Camille Martin", "email": "camille@atelier.example", "phone": "+33 1 00 00 00 00" }
}
],
"record": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"recordType": "company",
"values": {},
"project": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"name": "Atelier Exemple",
"kindKey": "project",
"ownerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"lifecycleState": "active"
},
"revision": "099937e4c4dbcbc00eb9f20955ab7ece3775001efd1d0a8bdc28aba3eeb0f11a"
},
"fields": [],
"attached": [],
"requests": [
{
"id": "f8481479-76e0-4686-ad9e-1db692e5d25b",
"name": "Pièces pour le bilan 2026",
"createdAt": "2026-11-23T00:34:04.077Z",
"projectId": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"project": { "name": "Atelier Exemple" },
"clientId": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"client": { "name": "Atelier Exemple" },
"reviewerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"createdById": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"recipientEmail": "camille@atelier.example",
"recipientName": "Camille Martin",
"requireCode": false,
"unsolicited": false,
"message": "",
"expiresAt": "2026-12-23T00:34:04.077Z",
"revokedAt": null,
"dueOn": "2026-12-15",
"remindOn": null,
"reminderEvery": null,
"reminderMax": 3,
"remindersSent": 0,
"lastRemindedAt": null,
"nextReminderAt": null,
"items": [
{
"id": "9bfe610d-3468-471d-b457-7fa6eb19b37a",
"label": "Relevés bancaires de décembre",
"kind": "file",
"status": "waiting",
"revision": 0,
"unavailable": false,
"note": null,
"documentId": null,
"receivedName": null,
"sender": null,
"sourceThreadId": null,
"source": null,
"choices": [],
"answer": null,
"replacementReason": null,
"receivedAt": null,
"reviewedAt": null,
"files": []
}
],
"needs": 0,
"chase": null,
"linkRevision": "1182f7168446692f0f8eed1f07657b182829f28d50987cba38f4fbb07ac3ab8e"
}
]
}

PATCH
/orgs/:orgSlug/workspaces/:wsSlug/client-work/requests/:id

Changes only what is given, in one step, and sends nothing. To tell the recipient, remind them afterwards. changed lists what moved. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
Body parameters
revisionstringlinkRevision as read
dueOnstringYYYY-MM-DD, null removes it
addItemsarrayItems added
Complex type — edit in code
removeItemIdsarrayItems still awaited, nothing received
Complex type — edit in code
extendDaysnumberDays added to the links
Complex type — edit in code
reviewerIdstringNew follower
Complex type — edit in code
curl -X PATCH 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/requests/ID' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revision": "1182f7168446692f0f8eed1f07657b182829f28d50987cba38f4fbb07ac3ab8e",
"dueOn": "2027-01-08",
"addItems": [
{
"label": "Attestation de vigilance URSSAF",
"kind": "file"
}
]
}'

Response200
{
"id": "f8481479-76e0-4686-ad9e-1db692e5d25b",
"name": "Pièces pour le bilan 2026",
"message": "Bonjour, voici ce qu'il nous faut pour préparer le bilan.",
"recipientEmail": "camille@atelier.example",
"recipientName": "Camille Martin",
"requireCode": false,
"expiresAt": "2026-12-23T00:34:04.077Z",
"reviewerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"items": [
{ "id": "9bfe610d-3468-471d-b457-7fa6eb19b37a", "label": "Relevés bancaires de décembre", "kind": "file", "status": "replace", "revision": 2 },
{ "id": "c977aacd-8461-489c-8286-ccd93c895d78", "label": "Kbis de moins de trois mois", "kind": "file", "status": "accepted", "revision": 2 },
{ "id": "c936d2b6-cd61-4995-ae47-606e217a1d7f", "label": "Avez-vous changé de banque cette année ?", "kind": "choice", "status": "accepted", "revision": 4 },
{ "id": "7f9e152a-611a-4735-ba5f-8c6c76cfd3da", "label": "Attestation de vigilance URSSAF", "kind": "file", "status": "waiting", "revision": 0 }
],
"dueOn": "2027-01-08",
"linkRevision": "1182f7168446692f0f8eed1f07657b182829f28d50987cba38f4fbb07ac3ab8e",
"changed": ["dueOn", "+Attestation de vigilance URSSAF"]
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/requests/:id/revoke

Switches every public link off: the recipient can no longer answer, reminders and the code stop. Nothing is deleted. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
Body parameters
revisionstringlinkRevision as read
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/requests/ID/revoke' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revision": "1182f7168446692f0f8eed1f07657b182829f28d50987cba38f4fbb07ac3ab8e"
}'

Response201
{
"id": "f8481479-76e0-4686-ad9e-1db692e5d25b"
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/requests/:id/renew

One more public link (earlier ones keep working); on a switched-off request, reopens it with this link alone. With sendEmail: true, Stellary attempts delivery. The sent and recipient fields identify the outcome and recipient. Called here without sendEmail. Real response, link masked.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/requests/ID/renew' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'

Response201
{
"id": "f8481479-76e0-4686-ad9e-1db692e5d25b",
"url": "<public /r/… link, masked>"
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/requests/:id/remind

Example not run: this route sends an e-mail. Reminds the recipient with what is missing and a new link. Response: { id, url, sent, recipient }, plus lastRemindedAt once the e-mail left; without an address, sent: false and the link to pass on. Refused with CLIENT_NOTHING_DUE, CLIENT_LINK_DEACTIVATED or CLIENT_REMINDER_RECENT.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
Body parameters
revisionstringlinkRevision as read
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/requests/ID/remind' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revision": "1182f7168446692f0f8eed1f07657b182829f28d50987cba38f4fbb07ac3ab8e"
}'

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/items/:id/review

Decides on an item received: accepted, replace (reason required) or waived (accept without the piece the recipient says they lack). revision is the one you read; the response gives the new one. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
Body parameters
statusstringrequiredaccepted | replace | waived
revisionnumberrequiredRevision as read
reasonstringRequired with replace (500 max)
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/items/ID/review' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"status": "replace",
"reason": "Il manque la deuxième page du relevé.",
"revision": 1
}'

Response201
{
"id": "9bfe610d-3468-471d-b457-7fa6eb19b37a",
"revision": 2,
"status": "replace"
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/items/:id/reopen

Takes an acceptance back: the accepted item returns to received. revision is the one the decision left. A correction asked for is not reopened. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
idstringrequired
Body parameters
revisionnumberrequiredRevision after the decision
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/items/ID/reopen' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revision": 2
}'

Response201
{
"id": "c936d2b6-cd61-4995-ae47-606e217a1d7f",
"revision": 3,
"status": "received"
}

Record, contacts, links

POST
/orgs/:orgSlug/workspaces/:wsSlug/client-work/clients

Creates a project carrying a record, or gives an existing project a record (projectId). contactName, email and phone give the main contact; contacts the others (title there is their function, as everywhere; role, its former name, is still read). Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
Body parameters
namestringrequiredClient (= project) name
recordTypestringcompany | person
projectIdstringExisting project to enrich
Complex type — edit in code
accessModestringworkspace | restricted
Complex type — edit in code
contactsarray20 at most
Complex type — edit in code
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/client-work/clients' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Atelier Exemple",
"recordType": "company",
"contactName": "Camille Martin",
"email": "camille@atelier.example",
"phone": "+33 1 00 00 00 00",
"contacts": [
{
"name": "Lou Bernard",
"title": "Comptable",
"email": "lou@atelier.example"
}
]
}'

Response201
{
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79"
}

GET
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/record?day=2026-11-23

The project’s record: kind, field values, contacts, gathered folders, requests. revision is for PATCH record. Real response, read right after creation.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
curl 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/record?day=2026-11-23' \
-H "Authorization: Bearer YOUR_TOKEN"

Response200
{
"record": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"recordType": "company",
"values": {},
"project": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"name": "Atelier Exemple",
"kindKey": "project",
"ownerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"lifecycleState": "active"
},
"revision": "099937e4c4dbcbc00eb9f20955ab7ece3775001efd1d0a8bdc28aba3eeb0f11a"
},
"contacts": [
{
"id": "ba24c618-d55d-4fe8-af18-1ff2777fe29b",
"contactId": "e9411217-cdbc-45ff-9df3-2895d91ac319",
"name": "Camille Martin",
"email": "camille@atelier.example",
"phone": "+33 1 00 00 00 00",
"role": "client",
"title": "",
"isPrimary": true,
"fromRecord": true,
"alsoOn": []
},
{
"id": "4cea4e49-9d03-4909-a8ab-840c348f7e59",
"contactId": "322d3307-6550-4ce9-82e8-cd34090ca7fa",
"name": "Lou Bernard",
"email": "lou@atelier.example",
"phone": "",
"role": "client",
"title": "Comptable",
"isPrimary": false,
"fromRecord": true,
"alsoOn": []
}
],
"dossiers": [],
"requests": [],
"fields": []
}

PATCH
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/record

Updates field values (fieldId → value) or renames the record. Only the owner can rename it, with the same history entry as PATCH projects/:id and update_project. The record type is set at creation. A stale revision returns 409 CLIENT_PROFILE_CHANGED. The response includes the full record.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
revisionstringrevision as read
namestringNew name
valuesobjectfieldId → value
Complex type — edit in code
curl -X PATCH 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/record' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"revision": "099937e4c4dbcbc00eb9f20955ab7ece3775001efd1d0a8bdc28aba3eeb0f11a",
"name": "Atelier Exemple Conseil"
}'

Response200
{
"record": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"recordType": "company",
"values": {},
"project": {
"id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"name": "Atelier Exemple Conseil",
"kindKey": "project",
"ownerId": "d4a13c42-00a4-4e99-9d9e-fffc699bd526",
"lifecycleState": "active"
},
"revision": "8f681e8a2b301edc153e867a95c3f25c794722173a67933fa3fe41056be8a16f"
},
"contacts": [
{
"id": "ba24c618-d55d-4fe8-af18-1ff2777fe29b",
"contactId": "e9411217-cdbc-45ff-9df3-2895d91ac319",
"name": "Camille Martin",
"email": "camille@atelier.example",
"phone": "+33 1 00 00 00 00",
"role": "client",
"title": "",
"isPrimary": true,
"fromRecord": true,
"alsoOn": []
},
{
"id": "4cea4e49-9d03-4909-a8ab-840c348f7e59",
"contactId": "322d3307-6550-4ce9-82e8-cd34090ca7fa",
"name": "Lou Bernard",
"email": "lou@atelier.example",
"phone": "",
"role": "client",
"title": "Comptable",
"isPrimary": false,
"fromRecord": true,
"alsoOn": []
}
],
"dossiers": [],
"requests": [],
"fields": []
}

DELETE
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/record

Takes the record off: its values are deleted, the contacts it brought are detached. The project keeps its board, documents, requests, files, links and history. Real response (on a second example client).

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
curl -X DELETE 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/record' \
-H "Authorization: Bearer YOUR_TOKEN"

Response200
{
"id": "5e1d33e6-aaf8-48b6-be9d-fa2f05eceb5d",
"removed": true,
"detachedContacts": 1
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/contacts

Adds a person: a name or an address at least (else CONTACT_EMPTY). Someone already visible under the same address and name is reused, not copied. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
namestringName
emailstringAddress
titlestringFunction
rolestringSide; client by default
Complex type — edit in code
isPrimarybooleanMain contact
Complex type — edit in code
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/contacts' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Sam Petit",
"email": "sam@atelier.example",
"title": "Gérant"
}'

Response201
{
"id": "b1cf1ee9-4768-4aa4-91ba-7f3addf1f3de",
"contactId": "0d82d273-c1ee-4f87-9df1-cda7ca79651a",
"name": "Sam Petit",
"email": "sam@atelier.example",
"phone": "",
"role": "client",
"title": "Gérant",
"isPrimary": false,
"fromRecord": true,
"alsoOn": []
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/links/new

Creates a project already gathered by this one: a folder (case) or a project. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
namestringrequiredFolder name
kindKeystringcase | project
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/links/new' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Bilan 2026",
"kindKey": "case"
}'

Response201
{
"id": "701f7882-b09c-447a-8794-51afa06e5f82",
"name": "Bilan 2026",
"kindKey": "case"
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/links

Links the project to another. role says how the project stands to the other: attached_to (it belongs to it), attaches (it gathers it), depends_on, blocks. Here the folder joins a second client. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
otherProjectIdstringrequiredThe other project
rolestringrequiredattached_to | attaches | depends_on | blocks
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/links' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"otherProjectId": "5e1d33e6-aaf8-48b6-be9d-fa2f05eceb5d",
"role": "attached_to"
}'

Response201
{
"projectId": "701f7882-b09c-447a-8794-51afa06e5f82",
"otherProjectId": "5e1d33e6-aaf8-48b6-be9d-fa2f05eceb5d",
"role": "attached_to",
"created": true
}

Files and history

GET
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/files

Files received, grouped by piece. Filters: query, project (one gathered project), state (accepted, received, replace), after (next page, the next value). hidden counts the files whose document you cannot open. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
curl 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/files' \
-H "Authorization: Bearer YOUR_TOKEN"

Response200
{
"pieces": [
{
"id": "9bfe610d-3468-471d-b457-7fa6eb19b37a",
"label": "Relevés bancaires de décembre",
"state": "replace",
"requestId": "f8481479-76e0-4686-ad9e-1db692e5d25b",
"requestName": "Pièces pour le bilan 2026",
"unsolicited": false,
"projectId": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"dossier": null,
"receivedAt": "2026-11-23T00:34:23.862Z",
"files": [
{
"id": "1483267a-7597-4b27-b176-8bf0d9538832",
"documentId": "db622960-ffe6-4d1d-9cd7-b9ee3b60e508",
"name": "releve-exemple.pdf",
"size": 45,
"source": "portal",
"receivedAt": "2026-11-23T00:34:23.862Z"
}
]
}
],
"total": 1,
"fileCount": 1,
"bytes": 45,
"hidden": 0,
"next": null,
"facets": {
"projects": { "3c706a2c-d18a-4d5c-9081-2b91896f7a79": 1 },
"states": { "replace": 1 },
"names": { "3c706a2c-d18a-4d5c-9081-2b91896f7a79": "Atelier Exemple" }
},
"archive": { "maxFiles": 300, "maxBytes": 314572800 }
}

GET
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/history?limit=4

The history of the project and of the projects it gathers, newest first. Pass next as cursor for the next page. Filters: query, actor, project, item, kind, from, to. Real response, cut to two entries.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
curl 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/history?limit=4' \
-H "Authorization: Bearer YOUR_TOKEN"

Response200
{
"events": [
{
"id": "cc50c75c-6277-4897-bd7b-320977369c5e",
"label": "Sam Petit",
"action": "contact.removed",
"actor": "Claire Dupont",
"createdAt": "2026-11-23T00:35:30.754Z",
"projectId": "3c706a2c-d18a-4d5c-9081-2b91896f7a79",
"project": { "id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79", "name": "Atelier Exemple" }
},
{
"id": "2a875a63-574f-46d1-ad61-9cae6acfda35",
"label": "Dossier ouvert pour le bilan.",
"action": "note",
"actor": "Claire Dupont",
"createdAt": "2026-11-23T00:35:22.312Z",
"projectId": "701f7882-b09c-447a-8794-51afa06e5f82",
"project": { "id": "701f7882-b09c-447a-8794-51afa06e5f82", "name": "Bilan 2026" }
}
],
"next": "1795394122312~2a875a63-574f-46d1-ad61-9cae6acfda35"
}

POST
/orgs/:orgSlug/workspaces/:wsSlug/projects/:projectId/history

Records a call, a meeting or a note. clientId: the client concerned, null for none; left out, the project’s only client when it has one. Real response.

Path parameters
orgSlugstringrequired
wsSlugstringrequired
projectIdstringrequired
Body parameters
kindstringrequiredcall | meeting | note
textstringrequired4000 characters max
clientIdstringClient concerned, or null
Complex type — edit in code
curl -X POST 'https://api.stellary.co/orgs/acme/workspaces/eng/projects/PROJ_ID/history' \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"kind": "call",
"text": "Appel avec Camille : le relevé complet arrive vendredi."
}'

Response201
{
"id": "a6cdbacd-3f43-4d62-9e35-68651c1bae6c"
}

Error codes

Over REST, a business error adds a stable code field to the usual shape; the message is in French. Real response:

{
"statusCode": 400,
"message": "Plusieurs clients sont possibles : précise lequel (clientId).",
"requestId": "0a7d6c42-753c-4847-ba5e-ab10d62ac156",
"code": "CLIENT_CHOICE_REQUIRED",
"choices": [
{ "id": "3c706a2c-d18a-4d5c-9081-2b91896f7a79", "name": "Atelier Exemple" },
{ "id": "5e1d33e6-aaf8-48b6-be9d-fa2f05eceb5d", "name": "Studio Exemple" }
]
}
codeHTTPWhen
CLIENT_CHOICE_REQUIRED400Several clients are possible and clientId is missing. The REST response lists choices (id, name).
CLIENT_PROJECT_NOT_LINKED400The given clientId is not a client of this project.
CLIENT_ITEM_CHANGED409The item’s revision is stale. The response gives decision and decidedBy.
CLIENT_REASON_REQUIRED400replace without a reason.
CLIENT_LINK_CHANGED409The request’s revision (linkRevision) changed: links switched off or back on since it was read.
CLIENT_ITEM_NOT_REMOVABLE400removeItemIds names an item that already received a file or an answer.
CLIENT_PROFILE_CHANGED409The record’s revision changed: read it again first.
CLIENT_RENAME_OWNER_ONLY403Renaming a client is for its owner only (or an agent working for them), whatever the door: PATCH record, update_client_record or update_project. PATCH projects/:id is already owner-only and answers a 403 without this code.
CLIENT_REMOVE_OWNER_ONLY403Taking the record off: owner, or a member who may change the workspace.
CLIENT_NOT_FOUND404The project carries no record (any more).
CLIENT_REQUEST_NOT_FOUND404Request not found, or not readable by you.
CLIENT_NOTHING_DUE400Reminder while nothing is owed any more.
CLIENT_LINK_DEACTIVATED409Reminder on a switched-off request: make a link first.
CLIENT_REMINDER_RECENT409A reminder has just left.
CLIENT_RECIPIENT_REQUIRED400Automatic reminders or sending without a recipient address.
CONTACT_EMPTY400A contact with neither name nor address.
PROJECT_LINK_SELF, PROJECT_LINK_EXISTS, PROJECT_LINK_CYCLE400, 409, 409A project linked to itself, a link already there, a loop.
CLIENT_REVIEWER_REQUIRED400A request made without reviewerId by an agent working for no member (a mission with nobody): name who follows it.
PROJECT_OWNER_ONLYtooladd_project_member, called by an agent on a restricted project, when the member it works for is not its owner.
approver_permission_denied, approver_project_access_deniedtoolAgent action approved by someone who lacks (or no longer has) the rights: nothing is done.

An invalid tool input is refused (invalid_input) with, for each field, the constraint it broke.

Compatibility

  • file_client_attachment still reads clientId as the former name of fromProjectId, and get_client_history reads clientId as the former name of projectId. Giving both with different values is refused (“Give fromProjectId only.”, “Give projectId only.”).
  • get_client_record, update_client_record, remove_client_record and link_client_project still name the client project clientId.
  • In the app, former addresses still work and redirect: …/clients/:id to the project page (?tab=files to Files, ?tab=history to History, item, file and request kept), …/clients to …/requests/clients, …/client-followup to …/requests.
  • The REST route client-work/clients/:id is gone (404): the record is read and changed under projects/:projectId/record. POST client-work/clients is still the creation.
  • remindOn is still accepted at creation: it shows a “to remind” day and sends nothing.

The recipient answers on a public page opened by the request’s link (/r/…), with no Stellary account. They see the workspace’s name and logo, the message, the deadline and what is asked; they send files, answer questions, add a note or say they do not have a piece. With requireCode, they first type a code received by e-mail. A switched-off or expired link no longer opens. These public routes serve that page and are not an integration API.


File requests user guide

For the other routes, see the API reference; to connect an AI client, the MCP guide.