Message Thread | Baack docs
Message Thread
Endpoints
CreatePOST/n/v1/messagethread/
Message Thread endpoint allows integrations to create a chat thread with messages for discussion. They are message threads rather than chat threads because they are used for purposes beyond regular SMS style message threads. Message threads can be associated with almost any of the core concepts on the platform, e.g. a task discussion, a group for members to discuss subjects or the history of an invoice. Message threads for chats don't need to be associated with other concepts for example if using them for customer chat on your website for generating leads, you can create an anonymous identity for the session user and assign one of your sales team as a member of the group for notifications.
Baack allocates the URN and returns it in the response.
Request body: Message Thread
Responses
- 201 Created
- returns Message Thread
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/messagethread/{urn}
Message Thread endpoint allows integrations to create a chat thread with messages for discussion. They are message threads rather than chat threads because they are used for purposes beyond regular SMS style message threads. Message threads can be associated with almost any of the core concepts on the platform, e.g. a task discussion, a group for members to discuss subjects or the history of an invoice. Message threads for chats don't need to be associated with other concepts for example if using them for customer chat on your website for generating leads, you can create an anonymous identity for the session user and assign one of your sales team as a member of the group for notifications.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Message Thread
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/messagethread/{urn}UpdatePUT/n/v1/messagethread/{urn}
Message Thread endpoint allows integrations to create a chat thread with messages for discussion. They are message threads rather than chat threads because they are used for purposes beyond regular SMS style message threads. Message threads can be associated with almost any of the core concepts on the platform, e.g. a task discussion, a group for members to discuss subjects or the history of an invoice. Message threads for chats don't need to be associated with other concepts for example if using them for customer chat on your website for generating leads, you can create an anonymous identity for the session user and assign one of your sales team as a member of the group for notifications.
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Message Thread
Responses
- 202
- returns Message Thread
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
Webhook
POSTyour destination URL
Subject: MESSAGE_THREAD
Message threads (AKA chat or messaging) events allow your integration to be notified on thread update
Use the chat message thread updates to automate experiences like automatically adding members to the associated membership group for the message thread based on the purpose of the thread.
Message thread updates can also be used for experiences like when they are associated with an external customer conversation or task, adding members to ensure that the conversation is effective.
Message thread updates are also helpful for scenarios around moderation e.g. in a scenario like when building an intranet site with chat capabilities for employees, to moderate the usage.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| companies | array of Company | Ignored on update. |
| projects | array of Project | Ignored on update. |
| pagination | Pagination | |
| invoices | array of Payment Invoice | Ignored on update. |
| purpose | string | One of: |
| entities | array of Entity | Ignored on update. |
| name | string | |
| posts | array of Thread post | Ignored on update. |
| url | string (uri) | |
| tasks | array of Task | Ignored on update. |
| group | Group | Required on create.Ignored on update. . |
Used by: Group, Message Thread Notification, Thread post