Baack

Message Thread

Browse the docs

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 ThreadCREATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_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 ThreadREAD_SUCCESS
    404 Not found
    returns ErrorNOT_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 ThreadUPDATE_SUCCESS
    400 Bad request
    returns ErrorINVALID_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

Message Thread fields
FieldTypeDescription
urnstring (uuid)
companiesarray of Company

Ignored on update.

projectsarray of Project

Ignored on update.

paginationPagination
invoicesarray of Payment Invoice

Ignored on update.

purposestring

One of: GENERAL, CHANGELOG, BAACK_CUSTOMER_SUPPORT, SUPPORT, PROJECT_DISCUSSION, TASK_DISCUSSION, COMPANY_DISCUSSION, PAYMENT_INVOICE_DISCUSSION, ENTITY_DISCUSSION

entitiesarray of Entity

Ignored on update.

namestring
postsarray of Thread post

Ignored on update.

urlstring (uri)
tasksarray of Task

Ignored on update.

groupGroup

Required on create.Ignored on update.

.

Used by: Group, Message Thread Notification, Thread post