API Reference: Conversations
Threaded conversations between Team Users and constituents over chat, email, and SMS — list, get, send replies.
Overview
Conversations provide threaded messaging between Team Users and constituents. Each conversation is a sequence of messages exchanged over chat, email, SMS, or recorded as internal notes, often linked to a Data Record (the person). The core endpoints on this page are standard tier and require the DATA_CONVERSATIONS_VIEW feature permission; a much larger standard-tier surface covers the inbox workspace, chat assistants, routing rules, and analytics — summarized below.
Key Concepts
- Thread — A conversation is a thread of messages with a visitor or constituent, optionally linked to a data record.
- Channel — Message channels:
CHAT(embedded widget),FORM,EMAIL,SMS,WHATSAPP,FACEBOOK, andINTERNAL_NOTE(visible only to the team). A conversation also records its origin channel aschannel. - Status —
OPEN,PENDING,RESOLVED,CLOSED, orESCALATED. Priority isLOW,NORMAL,HIGH, orURGENT. - Author type — Each message has an
authorType:END_USER,AI,AGENT, orSYSTEM. Conversations withaiHandling: trueare currently answered by the AI assistant. - Assignment — Conversations may be assigned to a team user (
assignedUserId, a user Simply ID) for handling.
List Conversations
GET /v1/conversations supports status, channel, and assignedUserId filters plus limit (1–100, default 25) and offset, ordered by most recent message.
const conversations = await s360.conversations.list({
status: 'OPEN',
limit: 25,
});
for (const conv of conversations.data) {
console.log(`${conv.id}: ${conv.subject ?? '(no subject)'} [${conv.channel}]`);
}
curl -s "https://api.simply360.app/v1/conversations?status=OPEN&limit=25" \
-H "Authorization: Bearer $S360_API_KEY"
Get a Conversation
const conversation = await s360.conversations.get('CONV-1234-ABCD');
console.log(conversation.data);
curl -s "https://api.simply360.app/v1/conversations/CONV-1234-ABCD" \
-H "Authorization: Bearer $S360_API_KEY"
Create a Conversation
POST /v1/conversations accepts subject, channel (default CHAT), priority (default NORMAL), visitorName, and visitorEmail. New conversations start with status OPEN.
const created = await s360.conversations.create({
subject: 'Follow-up on event registration',
channel: 'EMAIL',
visitorName: 'Jane Doe',
visitorEmail: 'jane@example.com',
});
List Conversation Messages
Messages are returned oldest first; limit defaults to 50 (max 100).
const messages = await s360.conversations.listMessages('CONV-1234-ABCD', {
limit: 50,
});
for (const msg of messages.data) {
console.log(`[${msg.channel}] ${msg.authorType}: ${msg.content}`);
}
curl -s "https://api.simply360.app/v1/conversations/CONV-1234-ABCD/messages?limit=50" \
-H "Authorization: Bearer $S360_API_KEY"
Post a Message
Send a Team inbox reply with POST /v1/conversations/inbox/{conversationSimplyId}/messages. Persist a case-sensitive Idempotency-Key and reuse it with the exact request body after a timeout; a different payload under that key returns a conflict. The header remains optional for existing callers, but a request without it has no duplicate-safe retry guarantee. The body requires nonblank content or at least one attachment; content may be omitted for attachment-only sends. It accepts optional contentType (default TEXT), optional isInternalNote (default false), and up to five completed trusted File references in attachments. Constituent-visible attachments are supported on CHAT replies; internal notes may attach files on other channels. Create uploads with POST /v1/file-uploads using purpose CONVERSATION_ATTACHMENT, the conversation ID and a persisted uploadRequestKey; transfer the exact declared bytes with the returned upload instructions, then complete or poll the upload until it returns COMPLETED. Send only the resulting fileSimplyId values. Reuse the upload key with the same declaration to recover an interrupted operation; an expired original intent must be handled explicitly, not replaced with a new file under that key.
Inbox sending and CONVERSATION_ATTACHMENT uploads require a signed-in Team User identity through Cognito, first-party OAuth, or marketplace user delegation. API keys and session tokens cannot use these operations. The actor must still be an active Team member with access to the target conversation and permission to respond.
POST /v1/conversations/{conversationSimplyId}/messages (SDK conversations.sendMessage) is a deprecated alias of this send with the same identity, access, delivery, and Idempotency-Key rules. It accepts only content, contentType, and an optional channel: INTERNAL_NOTE records an internal note, and any other value must match the conversation's reply channel for a new message. It returns the message fields shown under List Conversation Messages plus delivery. Use the inbox send for new integrations.
TypeScript SDK
const reply = await s360.conversations.addAgentMessage('CONV-1234-ABCD', {
idempotencyKey: crypto.randomUUID(), // persist and reuse this key and payload if retrying
content: 'Thank you for reaching out. We will follow up shortly.',
contentType: 'TEXT',
});
console.log(`Message: ${reply.data.message.simplyId}; delivery: ${reply.data.delivery?.status}`);
The send response includes the persisted message and a delivery result. Only delivery.status === "SENT" with delivery.success === true and a nonempty message Simply ID confirms delivery; FAILED, UNCERTAIN, and PENDING remain distinct outcomes. A successful HTTP response alone does not confirm delivery.
cURL
curl -s -X POST "https://api.simply360.app/v1/conversations/inbox/CONV-1234-ABCD/messages" \
-H "Authorization: Bearer $S360_API_KEY" \
-H "Idempotency-Key: 2bd7857c-18f6-47be-8a41-4fceeb953d2d" \
-H "Content-Type: application/json" \
-d '{
"content": "Thank you for reaching out. We will follow up shortly.",
"contentType": "TEXT",
"isInternalNote": false,
"attachments": [{"fileSimplyId": "FILE-1234-ABCD"}]
}'
Update a Conversation
PUT /v1/conversations/{conversationSimplyId} updates status, priority, subject, and assignedUserId (a Team User's Simply ID, or null to unassign). Setting status to RESOLVED stamps resolvedAt.
await s360.conversations.update('CONV-1234-ABCD', {
status: 'RESOLVED',
});
Inbox, Widgets, Routing & Analytics
The full conversation workspace is also exposed as standard-tier endpoints. Highlights, grouped by area:
| Area | Representative Endpoints | Description |
|---|---|---|
| Inbox workspace | GET /v1/conversations/inbox, GET .../inbox/{id}, POST .../inbox/{id}/messages, POST .../inbox/{id}/read, GET .../inbox/unread-summary, GET .../inbox/by-record/{dataRecordSimplyId}, GET .../inbox/{id}/related | The agent inbox: filtered lists, rich detail, message send/edit/delete, read cursors, unread counts, and per-record threads. |
| Lifecycle | PUT .../inbox/{id}/takeover, PUT .../inbox/{id}/assign-ai, PUT .../inbox/{id}/snooze / unsnooze, POST .../inbox/{id}/merge, POST / DELETE .../inbox/{id}/follow | Take over from AI, hand back to AI, snooze, merge duplicate threads, follow conversations. |
| AI assistance | POST .../inbox/{id}/suggest-replies, POST .../inbox/{id}/messages/{messageSimplyId}/translate, POST .../inbox/{id}/translate-outgoing | Suggested replies and message translation. |
| Chat assistants | GET / POST /v1/conversations/widgets, GET / PUT / DELETE .../widgets/{widgetSimplyId}, POST .../widgets/{widgetSimplyId}/tokens, POST .../widgets/{widgetSimplyId}/simulate | Chat assistant configuration, embed tokens, and no-persist test messages. See Embedding Data Views, Wizards, and the chat assistant. |
| Routing & staffing | /v1/conversations/assignment-rules (+ /reorder), /v1/conversations/sla-policies, /v1/conversations/canned-responses (+ /{id}/use), GET /v1/conversations/assignable-team-users, GET / PUT /v1/conversations/presence | Assignment rules, SLA policies, saved responses, and agent presence. |
| Analytics | GET /v1/conversations/analytics, GET /v1/conversations/analytics/content-gaps | Conversation volume/response metrics and unanswered or low-grounding AI turns. |
Usage Notes
- Conversations are created automatically when a constituent starts a chat through the chat assistant or replies through a tracked channel; the API create endpoint is for programmatic or imported threads.
- Inbox detail and related-conversation summaries preserve assignment scope: users with
DATA_CONVERSATION_INBOX_VIEWcan read only their own and unassigned conversations, whileDATA_CONVERSATION_INBOX_VIEW_ALLgrants team-wide visibility. - To list the conversations linked to one constituent record, use
GET /v1/data-records/{dataRecordSimplyId}/conversations— see API Reference: Data Records. - Internal notes (
isInternalNote: trueon the inbox send) are never delivered to the constituent — they are recorded for your team only. - One-to-many campaign email/SMS is a different surface: see API Reference: Messages.