curl --request GET \
--url http://localhost:8091/api/messages/{messageID}/thread \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"channelId": "<string>",
"userId": "<string>",
"content": "<string>",
"edited": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"user": {
"id": "<string>",
"username": "<string>",
"displayName": "<string>",
"status": "<string>",
"bot": true,
"createdAt": "2023-11-07T05:31:56Z",
"avatarPath": "<string>"
},
"replyCount": 123,
"reactions": [
{
"emoji": "<string>",
"count": 123,
"users": [
"<string>"
]
}
],
"attachments": [
{
"id": "<string>",
"messageId": "<string>",
"filename": "<string>",
"storedPath": "<string>",
"mimeType": "<string>",
"sizeBytes": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]
}Returns replies to a message thread, ordered newest first. Supports cursor-based pagination.
curl --request GET \
--url http://localhost:8091/api/messages/{messageID}/thread \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "<string>",
"channelId": "<string>",
"userId": "<string>",
"content": "<string>",
"edited": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"threadId": "<string>",
"user": {
"id": "<string>",
"username": "<string>",
"displayName": "<string>",
"status": "<string>",
"bot": true,
"createdAt": "2023-11-07T05:31:56Z",
"avatarPath": "<string>"
},
"replyCount": 123,
"reactions": [
{
"emoji": "<string>",
"count": 123,
"users": [
"<string>"
]
}
],
"attachments": [
{
"id": "<string>",
"messageId": "<string>",
"filename": "<string>",
"storedPath": "<string>",
"mimeType": "<string>",
"sizeBytes": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
]
}Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Parent message ID
Cursor: return replies before this message ID
Maximum number of replies to return
Thread replies
Show child attributes