Shared conversations and access rules
Let teammates read or reply in a chat without assigning it, give a team a contact group's chats with an access rule, and handle the "your access is too low" refusal.
Two ways to let more people into a conversation without changing who owns it. The assignee stays the owner: the SLA, routing and "mine" reports do not move.
- Share one conversation with a teammate:
POST /v1/conversations/{conversation_id}/collaborators. - Set an access rule: a team (all its members) or one staff member gets every conversation whose contact is in a contact group, including contacts added to the group later:
PUT /v1/access-rules.
To hand a conversation over, assign it instead (Assign a conversation).
Both need the workspace's sharing switch to be on. While it is off, every write answers 403 forbidden and nobody gets access through a share or a rule. Rows already made are kept, so switching it on again restores them. These operations are beta.
Levels
level | They can |
|---|---|
view | open the conversation and read its messages, notes and files. No sending. |
reply | everything view can, plus reply, add notes and set reminders. |
manage | everything reply can, plus change who the conversation is shared with. Set in the app only: the API grants view or reply. |
What someone gets is the highest of their role (assignee, team lead, manager), their shares and their rules. Channel access still applies: sharing never opens a WhatsApp number (channel) a person is not allowed to use.
Who can use it
| Operation | Key permission | The key's user (checked by the platform) |
|---|---|---|
| Share a conversation | inbox:write | Someone with manage on it: the assignee, their team lead, a manager, or a manage collaborator. |
| Stop sharing | inbox:write | The same, or anyone taking themselves off. |
| List access rules | mcp:read | A manager (or someone allowed to manage teams). |
| Set or delete an access rule | crm:write | A manager (or someone allowed to manage teams). |
Every write needs an Idempotency-Key and its Api-Confirm header (share, unshare, or delete for a rule). Try any of them with ?dry_run=true first: every check runs and nothing changes. See Idempotency and Dry runs.
Share one conversation
POST /v1/conversations/77410/collaborators
Api-Confirm: share
Idempotency-Key: 7f9c2c1e-share-1207
{"staff_id": "1207", "level": "reply", "notify": true}notify: truemakes them follow it: they get a push for each new customer message. Leave it off unless they asked for it.- Sharing again with the same teammate changes the level or the follow setting (
change: level_changed/notify_changed); the same values change nothing (change: unchanged). - The teammate must be active, must not be you, and must be able to use the conversation's channel. Otherwise the answer is
400 invalid_input, namingstaff_id. - A conversation can be shared with a limited number of people; above it the answer is
409 conflict.
Stop sharing with DELETE /v1/conversations/{conversation_id}/collaborators/{staff_id} and Api-Confirm: unshare. Not shared with them: change: unchanged.
GET /v1/conversations/{conversation_id} tells you how the key's user can see a conversation in a workspace that uses sharing: access.source (role, collaborator or rule), access.level, and the collaborators list. In other workspaces these fields are absent.
Access rules
PUT /v1/access-rules
Api-Confirm: share
Idempotency-Key: 2d41-sales-north
{"subject_type": "team", "subject_id": "41", "group_id": "812", "level": "reply"}- One rule per team or staff member and group: setting it again updates the level (
change: updated), the same level changes nothing (unchanged). - A new group is copied in first. The rule answers
sync_status: syncingwhile the group's contacts are being added, and access grows as they are added; thenready(withmember_count).failedis retried nightly. - Contacts added to or removed from the group later are picked up automatically.
- A team rule follows the team: people who join the team get it, people who leave lose it.
GET /v1/access-ruleslists every rule, newest first.DELETE /v1/access-rules/{id}withApi-Confirm: deleteremoves one. They keep only what their role, their own conversations, other rules and one-conversation shares give them.
Example: a large organisation. 200 staff and 20,000 contacts, one contact group per region or branch ("North region", "South region", ...). A team rule for each regional sales team (team, reply) on its region's group, so the Sales team can read and reply to chats from contacts in "North region"; a rule for each branch team (team, reply) on its branch's group; and a rule for a supervisor (staff, view) on each group they keep an eye on. When a new customer joins "North region", the Sales team sees their chat at once; nothing has to be assigned.
A big group means many people see many chats: the app shows how many contacts and open chats a rule reaches before it is saved.
Strict access and ACCESS_LEVEL_TOO_LOW
By default, sharing only adds who can see and reply. A workspace can also ask for strict access, which makes the levels decide the other actions too:
| Needs at least | Actions |
|---|---|
reply | send messages, add notes and system messages, set reminders, mention, typing indicator |
manage | assign, transfer, assign a team, unassign, auto-assign, close, reopen, tags, chatbot on / off, star, block a contact, episode title |
Below the level, the action is refused and nothing changes. Through this API you get 403 forbidden with the platform's own sentence in detail, for example:
- "You can only view this conversation, so you can't close it."
- "You can reply in this conversation, but you can't close it. Ask the person it is assigned to, or a manager."
The platform's error code for this refusal is ACCESS_LEVEL_TOO_LOW. Do not retry: ask the assignee or a manager, or share the conversation with the key's user at a higher level. Strict access is switched on per workspace on request; outside it, these actions work exactly as before.
Errors
| Answer | When | What to do |
|---|---|---|
403 forbidden | Sharing is switched off for the workspace, the key's user may not share this conversation or manage rules, or (strict access) their level is too low. | Read detail. Ask a manager. |
400 invalid_input | The teammate, team or group is not in the workspace, the staff member is disabled or is you, the teammate cannot use the channel, or the level is not view / reply. | Fix the field named in errors[]. |
404 not_found | The conversation or rule does not exist, or the key's user cannot see it. | Check the id. |
409 conflict | The conversation has as many collaborators as allowed, or the workspace has as many rules as allowed. | Remove one first. |
503 upstream_unavailable | Sharing is busy. | Retry later with the same Idempotency-Key. |
All errors follow Errors.