Console API
Conversations
3 endpoints.
/api/v1/admin/conversationsList conversations
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
business_idrequired | query | string (uuid) | The business whose inbox this is: each item's `contact` is its contact. A business the caller does not belong to is 403. |
status | query | string | null | OPEN | CLOSED | SNOOZED |
assigned_to | query | integer | null | |
unread_only | query | boolean | default false |
needs_attention | query | boolean | null | Only conversations whose contact an open Needs you item is about (true), or not (false). |
q | query | string | null | Case-insensitive search over the contact's name, display name, emails and phones (digits alone also match a phone), the web-chat visitor's name and the last message preview, among `business_id`'s contacts. |
channel | query | InboxChannel | null | Only conversations with a message on this channel, each read as its newest message there: `last_message_at`, its preview, channel, direction and sender, and the order. |
cursor | query | string | null | |
limit | query | integer | default 50 |
Responses
200Successful Responseapplication/jsonSuccessResponse_list_ConversationListItem__| Field | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | ConversationListItem[] | ConversationListItem[] fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fields
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fields
|
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/conversations/{conversation_id}Get conversation
The conversation as its row in the business's inbox reads (`contact`), with where a reply can go.
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
conversation_idrequired | path | string (uuid) | |
business_idrequired | query | string (uuid) | The business whose conversation it is: `contact` is its contact. 403 unless the caller belongs to the business and the conversation is the business's; 404 when there is no such conversation. |
Responses
200Successful Responseapplication/jsonSuccessResponse_ConversationListItem_| Field | Type | Description |
|---|---|---|
request_idrequired | string | |
success | true | default true |
datarequired | ConversationListItem | ConversationListItem fieldsConversationListItem, expanded above. |
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. |
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.
/api/v1/admin/conversations/{conversation_id}/messagesList messages in a conversation
Authentication
Authorization: Bearer <token>.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
conversation_idrequired | path | string (uuid) | |
channel | query | InboxChannel | null | Only the messages on this channel. |
cursor | query | string | null | |
limit | query | integer | default 50 |
Responses
200Successful Responseapplication/jsonSuccessResponse_list_MessageData__| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request_idrequired | string | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
success | true | default true | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
datarequired | MessageData[] | MessageData[] fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
metadata | ResponseMetadata | null | ResponseMetadata fieldsResponseMetadata, expanded above. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
meta | ResponseMeta | null | ResponseMeta fieldsResponseMeta, expanded above. |
400Bad request401Unauthorized403Forbidden404Not found422Validation error500Internal server error503Service unavailable
Error bodies: ErrorResponse. See Errors.