curl --request GET \
--url http://localhost:8091/api/search \
--header 'Authorization: Bearer <token>'{
"data": {
"results": [
{
"message": {
"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"
}
]
},
"channel": {
"id": "<string>",
"name": "<string>",
"displayName": "<string>",
"topic": "<string>",
"isDm": true,
"isPrivate": true,
"archived": true,
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"position": 123,
"serverId": "<string>",
"memberCount": 123,
"groupId": "<string>"
},
"headline": "<string>",
"serverName": "<string>"
}
],
"hasMore": true
}
}Full-text search across messages the user has access to. Uses PostgreSQL ts_headline for highlighted snippets.
curl --request GET \
--url http://localhost:8091/api/search \
--header 'Authorization: Bearer <token>'{
"data": {
"results": [
{
"message": {
"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"
}
]
},
"channel": {
"id": "<string>",
"name": "<string>",
"displayName": "<string>",
"topic": "<string>",
"isDm": true,
"isPrivate": true,
"archived": true,
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"position": 123,
"serverId": "<string>",
"memberCount": 123,
"groupId": "<string>"
},
"headline": "<string>",
"serverName": "<string>"
}
],
"hasMore": true
}
}Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer
Search query string
Filter results to a specific server ID
Maximum number of results to return
x <= 50Number of results to skip for pagination
Search results
Show child attributes