Skip to content

Direct Conversations

Direct conversations are a special type of chat between only two users. Starting a direct conversation with a user creates a direct-conversation record as well as a chat record and two chat-membership records.

List of valid attributes:

AttributeDescriptionSpecifics
user_idID of the user to start a conversation withMust be set
first_user_idID of the first user in the conversationCannot be set
second_user_idID of the second user in the conversationCannot be set

Create

Example request:

{
"data": {
"type": "direct_conversation",
"attributes": {
...
}
}
}

Example response:

{
"data": {
"id": "d65305b3-9914-4929-9ebf-cbc9a4494ec5",
"type": "direct_conversation",
"attributes": {
...
}
}
}

This endpoint creates a direct conversation.

HTTP Request

POST api/v1/direct_conversations