Appearance
Conversations
Endpoints of the public API tagged Conversations, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
List conversations (most recent first)
text
GET /api/v1/rest/conversations- Operation id:
listConversations - Scope:
conversations:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
limit | query | no | integer |
cursor | query | no | string |
contactId | query | no | string |
status | query | no | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
contactId | string | yes | |
channelGroup | string | yes | |
status | string | yes | |
unreadCount | number | yes | |
subject | string | yes | |
lastMessageAt | string | yes | |
lastMessagePreview | string | yes | |
lastMessageDirection | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Messages of a conversation
text
GET /api/v1/rest/conversations/{conversationId}/messages- Operation id:
listMessages - Scope:
conversations:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
conversationId | path | yes | string |
limit | query | no | integer |
cursor | query | no | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
conversationId | string | yes | |
contactId | string | yes | |
channel | string | yes | |
direction | string | yes | |
body | string | yes | |
subject | string | yes | |
status | string | yes | |
createdAt | string | yes |
Text or email a contact (consent, do-not-disturb and quiet hours apply)
text
POST /api/v1/rest/messages- Operation id:
sendMessage - Scope:
messages:send
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
contactId | string | yes | |
channel | string (sms, email) | yes | |
body | string | yes | |
subject | string | no | |
transactional | boolean | no |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
outcome | string | yes | |
message | object | yes |
Suggest a reply in a conversation (an internal note for your team to review and send; nothing is sent)
text
POST /api/v1/rest/conversations/{conversationId}/draft-replies- Operation id:
draftReply - Scope:
conversations:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
conversationId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
body | string | yes |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
conversationId | string | yes | |
body | string | yes | |
createdAt | string | yes |