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:
Attribute | Description | Specifics |
---|---|---|
user_id | ID of the user to start a conversation with | Must be set |
first_user_id | ID of the first user in the conversation | Cannot be set |
second_user_id | ID of the second user in the conversation | Cannot 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