Search messages

get
Search Messages

https://api.imber.live/message/?workSpace=[:ID]&roomId=[:ID]&term=سلام
This endpoint allows you to search messages inside a conversation.
Request
Response
Request
Path Parameters
id
optional
string
ID of the cake to get, for free of course.
Headers
Authentication
required
string
Authentication token to track down who is emptying our stocks.
Query Parameters
workSpaceId
required
string
ID of The id the workspace which the contact belongs to.
conversationId
required
string
ID of parent conversation that you want to search inside it's messages
Response
200: OK
Messages successfully retrieved.
{
"success": true,
"count": 3,
"data": [
{
"type": 0,
"_id": "600ead39ca15e7180850630e",
"roomId": "600eacdf7d85be182a1a9af0",
"creator": "5f00a44d8e844b5a746f90b2",
"creatorType": "operator",
"message": "سلام وقت شمام بخیر",
"workSpace": "5f00a44d8e844b5a746f90b3",
"organization": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T11:36:25.652Z",
"updatedAt": "2021-01-25T11:36:25.652Z",
"__v": 0
},
{
"type": 11,
"_id": "600eace277adfaf421a1cdac",
"message": "{\"time\":1603269145715,\"blocks\":[{\"type\":\"paragraph\",\"data\":{\"text\":\"<b>سلام وقت بخیر</b>\"}},{\"type\":\"paragraph\",\"data\":{\"text\":\"<b></b>هر سوالی داشتید بنده در خدمتم!\"}}],\"version\":\"2.18.0\"}",
"roomId": "600eacdf7d85be182a1a9af0",
"creatorType": "workSpace",
"creator": "5f00a44d8e844b5a746f90b3",
"workSpace": "5f00a44d8e844b5a746f90b3",
"organization": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T11:34:58.013Z",
"updatedAt": "2021-01-25T11:34:58.013Z",
"__v": 0
},
{
"type": 0,
"_id": "600eace0ca15e7180850615b",
"creator": "5fec142af3ef387502f440e5",
"creatorType": "user",
"message": "سلام ",
"workSpace": "5f00a44d8e844b5a746f90b3",
"roomId": "600eacdf7d85be182a1a9af0",
"organization": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T11:34:56.059Z",
"updatedAt": "2021-01-25T11:34:56.059Z",
"__v": 0
}
]
}