REST API: Conversations
Replace {subdomain}
in the endpoints below with your Vitally subdomain.
You can find your subdomain in the URL used to log into Vitally (i.e., https://yoursubdomain.vitally.io
The Conversation object
Attribute | Description | Editable? |
id | Vitally's unique ID for the Conversation | No |
externalId | Your unique ID for the Conversation | Only on create |
subject | The subject of the Conversation. | Yes |
name | An array of Message objects. | Yes |
traits | Set of key-value pairs to attach to the User | Yes |
accounts | An array of Account objects. Associated implicitly via Message to and from. | No |
users | An array of User objects. Associated implicitly via Message to and from. | No |
admins | An array of Admin objects. Associated implicitly via Message to and from. | No |
source | The name of the integration your conversation originated in (eg | No |
List Conversations GET
GET
Paginated list of Conversations, ordered by updatedAt
.
updatedAt
. US Data Center (default):
EU Data Center:
Paginated list of Conversations for a single Account, ordered by updatedAt
.
updatedAt
.US Data Center (default):
EU Data Center:
Paginated list of Conversations for a single Organization, ordered by updatedAt
.
updatedAt
.US Data Center (default):
EU Data Center:
Note: The above Conversations GET requests do not include Messages. Messages for a Conversation are retrieved separately.
Params (see Pagination)
Example Request
Example Response
Create A Conversation POST
POST
Create a new conversation with associated Messages.
US Data Center (default):
EU Data Center:
Request Body
Property | Type | Description |
externalId |
| The unique ID of this Conversation in your system |
subject |
| The subject of the Conversation |
messages |
| An array of Message objects |
Example
Update A Conversation PUT
PUT
Update an existing conversation with associated Messages. New messages can be inserted and existing ones will be updated by externalId
.
US Data Center (default):
EU Data Center:
Request Body
Property | Type | Description |
subject |
| The subject of the conversation |
messages |
| An array of Message objects |
Example
Get A Conversation GET
GET
Retrieves a Conversation including all Messages.
US Data Center (default):
EU Data Center:
Example Request
Example Response
Last updated