Message Thread Notification | Baack docs
Message Thread Notification
Endpoints
CreatePOST/n/v1/messagethreadnotification/
Baack allocates the URN and returns it in the response.
Request body: Message Thread Notification
Responses
- 201 Created
- returns Message Thread Notification
CREATE_SUCCESS - 400 Bad request
- returns Error
INVALID_REPRESENTATION
ReadGET/n/v1/messagethreadnotification/{urn}
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Responses
- 200 OK
- returns Message Thread Notification
READ_SUCCESS - 404 Not found
- returns Error
NOT_FOUND
curl -H "Authorization: Bearer $BAACK_API_TOKEN" \ https://api.baack.co/n/v1/messagethreadnotification/{urn}UpdatePUT/n/v1/messagethreadnotification/{urn}
Parameters
urn(path, required)String representation of a Unique Resource Name. Typically a UUID with 36 characters.
Request body: Message Thread Notification
Responses
- 202
- returns Message Thread Notification
UPDATE_SUCCESS - 400 Bad request
- returns Error
REPRESENTATION_MISSING_REQUIRED_FIELD
DeleteDELETE/n/v1/messagethreadnotification/{urn}
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: MESSAGE_THREAD_NOTIFICATION
Notification updates webhook with changes (creation / modification) to a single notification
Notifications are used to support creating rich inbox style experiences for users. Message threads can be associated with any type of concept on the platform. The platform automatically updates notifications based on state changes in the thread and further notifications can be managed via the MessageThreadNotification endpoint.
Body: Webhook Event
Your response
- 200
- Return 200 status to indicate that data was received successfully
Fields
| Field | Type | Description |
|---|---|---|
| urn | string (uuid) | |
| notificationCount | integer (int32) | |
| identity | Identity | |
| messageThread | Message Thread | |
| updatedTimestamp | string (date-time) | |
| url | string (uri) |
Used by: Identity Notification Inbox