Thread post | Baack docs
Thread post
Endpoints
CreatePOST/n/v1/threadpost/
Endpoint for managing thread posts in a message or chat thread
Baack allocates the URN and returns it in the response.
Request body: Thread post
Responses
- 201 Created
- returns Thread post
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/threadpost/{urn}
Endpoint for managing thread posts in a message or chat thread
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Thread post
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/threadpost/{urn}UpdatePUT/n/v1/threadpost/{urn}
Endpoint for managing thread posts in a message or chat thread
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Thread post
Responses
- 202
- returns Thread post
UPDATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
DeleteDELETE/n/v1/threadpost/{urn}
Endpoint for managing thread posts in a message or chat thread
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 202
DELETE_SUCCESS
Webhook
POSTyour destination URL
Subject: THREAD_POST
Webhook events related to the creation of a message thread (AKA chat or messaging) post.
Use the message thread post webhook to receive notifications when ever a message is updated in a message thread.
Integrate chat bots or AI assistants via the message thread post webhook to trigger rich experiences
Automatically moderate message posts or even update the group membership based on the activity of the message poster
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| createdTimestamp | string (date-time) | |
| replyTo | Thread post | |
| messageThread | Message Thread | Required on create.Ignored on update. . |
| url | string (uri) | |
| authorIdentity | Identity | Required on create.Ignored on update. . |
| content | string | Required on create. . Up to 1024 characters. |
Used by: Message Thread