Get a Conversation

get
Get a Conversation

https://api.imber.live/conversation/:ID
This endpoint allows you to get a conversation.
Request
Response
Request
Path Parameters
id
optional
string
ID of the conversation to get
Headers
Authentication
required
string
Authentication token to track down who is emptying our stocks.
Response
200: OK
Conversation successfully retrieved.
{
"success": true,
"data": {
"unread": {
"user": 0,
"operator": 0
},
"assigned": [
{
"person": {
"name": "حامد قلیزاده",
"phone": "09354140661",
"avatar": "https://upload.imber.live/preview/5fc60396967be139cea6b9d9/5f00bca8f25cee0466768fa0",
"nickName": "Hamed",
"title": "کارشناس پشتیبانی"
},
"workSpaceIds": [
"5fbb7399d0222a70a8fece80",
"5f00a44d8e844b5a746f90b3"
],
"status": false,
"_id": "5f00bca8f25cee0466768fa0",
"isJoined": true,
"email": "[email protected]",
"containerId": "5f00a44d8e844b5a746f90b1",
"type": 2,
"createdAt": "2020-07-14T07:24:20.931Z",
"updatedAt": "2020-07-14T07:24:20.931Z",
"__v": 1
}
],
"isLocked": false,
"mentions": [],
"_id": "600f03d5c289fd0c5752e4a0",
"workSpaceId": "5f00a44d8e844b5a746f90b3",
"user": {
"pages": {
"last": "https://help.imber.live/",
"referrer": "https://app.imber.live/"
},
"person": {
"name": "عماد حمیدی",
"phone": "09029797985",
"email": "[email protected]"
},
"device": {
"OS": "Windows",
"browser": "Chrome",
"browserVer": "88.0.4324.104",
"screenSize": "",
"isMobile": false
},
"conversations": [
"600f03d5c289fd0c5752e4a0"
],
"tags": [],
"segments": [],
"isBlocked": false,
"status": true,
"type": 1,
"_id": "600f03c6ca15e718085205c2",
"workSpaceId": "5f00a44d8e844b5a746f90b3",
"containerId": "5f00a44d8e844b5a746f90b1",
"note": [],
"createdAt": "2021-01-25T17:45:42.677Z",
"updatedAt": "2021-01-25T17:45:42.677Z",
"__v": 1
},
"status": 2,
"type": 0,
"containerId": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T17:45:57.848Z",
"updatedAt": "2021-01-25T17:45:57.848Z",
"__v": 1,
"lastMessage": {
"type": 0,
"_id": "600f047bf84fd50ccfaf7ab9",
"creator": "600f03c6ca15e718085205c2",
"creatorType": "user",
"message": "یاعلی",
"workSpaceId": "5f00a44d8e844b5a746f90b3",
"conversationId": "600f03d5c289fd0c5752e4a0",
"containerId": "5f00a44d8e844b5a746f90b1",
"createdAt": "2021-01-25T17:48:43.573Z",
"updatedAt": "2021-01-25T17:48:43.573Z",
"__v": 0
},
"lastMessageTime": "2021-01-25T17:48:43.573Z"
}
}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}