Get Messages

get
Get Messages

https://api.imber.live/message/?conversationId=[:ID]
This endpoint allows you to get messages
Request
Response
Request
Headers
Authentication
required
string
Authentication token
Query Parameters
conversationId
optional
string
ID of Conversation that you want to retrieve it's messages.
Response
200: OK
Message successfully retrieved.
{
"success": true,
"data": [
{
"type": 0,
"_id": "600eb0297d85be182a1aaba1",
"roomId": "600eacdf7d85be182a1a9af0",
"creator": {
"person": {
"name": "مهدی آقاجانی",
"phone": "09227112462",
"avatar": "https://upload.imber.live/preview/5fabd3d1967be139cea6b032/5f00a44d8e844b5a746f90b2",
"nickName": "مهدی آقاجانی",
"title": "فروش و پشتیبانی"
},
"_id": "5f00a44d8e844b5a746f90b2"
},
"creatorType": "operator",
"message": "تو تماس تلفنی مورد پیگیری شد، باز اگر موردی باشه بنده در خدمتتون هستم",
"workSpace": "5f00a44d8e844b5a746f90b3",
"organization": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T11:48:57.969Z",
"updatedAt": "2021-01-25T11:48:57.969Z",
"__v": 0
},
{
"type": 0,
"_id": "600ead5b7d85be182a1a9d86",
"creator": {
"person": {
"name": "imber-CW8881"
},
"_id": "5fec142af3ef387502f440e5"
},
"creatorType": "user",
"message": "یا باید از یک اکانت استفاده کنیم ",
"workSpace": "5f00a44d8e844b5a746f90b3",
"roomId": "600eacdf7d85be182a1a9af0",
"organization": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T11:36:59.890Z",
"updatedAt": "2021-01-25T11:36:59.890Z",
"__v": 0
},
]
}