Skip to main content
Documentation

Comms

comms.update_conversation

Mark a conversation read, done, pinned or assigned — not its messages
WritesWrite budget

REST

Shipping
POST /api/v1/comms/update_conversation

MCP tool

Live
comms.update_conversation

Exposed on: REST API · Shop MCP server · Claude connector · Dash (in-app copilot) · Zapier. Part of the Comms domain.

Operating contract

ONE CHANGE PER CALL, chosen by which parameter you provide: mark_read, mark_unread, mark_done, mark_open, snooze, pin, unpin, staff_id (hand it to that teammate) or unassign. To make several changes, call this once per change. Supplying none is refused, and so is supplying two — a single call that both closed a thread and reassigned it would be one audit row for two decisions.

THE MESSAGES ARE NOT TOUCHABLE AND NEVER WILL BE. This changes the SHOP'S state around a thread — its disposition, who owns it, whether it is pinned. A delivered text is history: there is no capability anywhere in this domain that edits or deletes one, and a request to 'fix' what a customer was told is a request to send another message.

mark_done is what Quo calls done and what this product stores as closed. It does not stop anything: a new inbound reopens the thread, which is the behaviour a shop wants and the reason closing a thread early is cheap.

ASSIGNING PINGS SOMEBODY. staff_id puts the thread in a real person's queue and notifies them, so it is not a bookkeeping change — assign when somebody is actually meant to act. The target must be a teammate whose role grants inbox access; anyone else is refused rather than silently parked, because a thread assigned to somebody who cannot open the inbox is work that never happens. tasks.assignees lists who qualifies.

Assigning a thread to whoever it is already assigned to is a no-op: no second activity line and, crucially, no second ping.

Who may call it

Permission
inbox.accessThe caller must hold Inbox at the ACT level. A read-only dashboard grant on the same section is refused.
Plan
Every planNo plan gate. Available on every Service VIN plan.
Retries
naturalNaturally idempotent — running it twice leaves the same world as running it once. A retrying integration needs no key.
Rate class
writeCounted against the write budget, which is tighter than a read.

Input

FieldTypeDescription
conversationrequiredstringuuid

The thread to change, as returned by comms.list_conversations.

mark_readboolean

True to mark the thread read. One change per call.

mark_unreadboolean

True to put it back to unread. One change per call.

mark_doneboolean

True to close the thread (Quo calls this done). One change per call.

mark_openboolean

True to reopen a closed or snoozed thread. One change per call.

snoozeboolean

True to park the thread until the next inbound. One change per call.

pinboolean

True to pin it to the top. One change per call.

unpinboolean

True to unpin it. One change per call.

staff_idstringuuid

Hand the thread to this teammate, as returned by tasks.assignees. One change per call.

unassignboolean

True to take the thread off whoever holds it. One change per call.

Output

FieldTypeDescription
idstring

customer_idstring | null

channelstring

statusstring

subjectstring | null

contact_numberstring | null

assigned_tostring | null

pinnedboolean

unreadboolean

is_ai_managedboolean

last_message_atstring | null

last_inbound_atstring | null

last_outbound_atstring | null

last_human_outbound_atstring | null

created_atstring

Examples

Built from this capability's own schema — required fields and the ones carrying a default, and nothing invented. Paste one and it validates.

curl
export SERVICEVIN_API_KEY=svk_live_…

curl -X POST https://www.servicevin.com/api/v1/comms/update_conversation \
  -H "Authorization: Bearer $SERVICEVIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"conversation":"…"}'

TypeScript (fetch)
const res = await fetch("https://www.servicevin.com/api/v1/comms/update_conversation", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SERVICEVIN_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "conversation": "…"
  }),
});

// Success and failure are both envelopes. Switch on error.code, never
// on error.message — the codes are stable, the messages are for people.
const payload = await res.json();
if (!res.ok) throw new Error(payload.error.code);
const data = payload.data;

Python (requests)
import os, requests

res = requests.post(
    "https://www.servicevin.com/api/v1/comms/update_conversation",
    headers={"Authorization": f"Bearer {os.environ['SERVICEVIN_API_KEY']}"},
    json={
    "conversation": "…"
},
    timeout=30,
)
payload = res.json()
if not res.ok:
    raise RuntimeError(payload["error"]["code"])
data = payload["data"]

MCP tools/call — https://www.servicevin.com/api/mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "comms.update_conversation",
    "arguments": {
      "conversation": "…"
    }
  }
}

Refusals

The four gates run in this order on every surface, and the order is not arbitrary — see Authentication.

StatusCodeWhen
404not_foundThe id is unknown, or the feature is not enabled for this account. Deliberately the same answer for both.
403forbiddenThis login does not hold inbox.access.
403insufficient_scopeThe credential is read-only and this capability writes.
422validation_errorAn argument was wrong. The message names the field.
429rate_limitedToo many write calls. Back off and retry.
500internal_errorSomething failed on our side. Nothing was changed.