Close a Chat
This API can be used to close an ongoing conversation.
OAuth Scope:
SalesIQ.conversations.UPDATE
URL
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screen name}/conversations/{conversation_id}/close
Example
Copiedhttps://salesiq.zoho.com/api/v2/zylker/conversations/19000000033103/close
Sample Response
Copied{
"url": "/api/v2/zylker/conversations/19000000033103/close",
"object": "conversations",
"data": {
"reference_id": "151",
"owner": {
"image_key": "0_466756000000002001",
"email": "patricia@zylker.com",
"name": "Patricia",
"is_bot": false,
"id": "466756000000002001"
},
"chat_id": "LD_2242278138463036757_1690029162",
"attender": {
"image_key": "0_466756000000002001",
"email": "patricia@zylker.com",
"name": "Patricia",
"is_bot": false,
"id": "466756000000002001"
},
"type": "chat",
"participants": [
{
"image_key": "0_466756000000002001",
"email": "patricia@zylker.com",
"name": "Patricia",
"is_bot": false,
"id": "466756000000002001"
}
],
"unread_chats": false,
"chat_status": {
"status_code": 2,
"state": 4,
"label": "Attended Online"
},
"question": "Can you help me with your product?",
"end_time": "1612943810186",
"attended_time": "1612943681060",
"start_time": "1612943653720",
"id": "19000000033103",
"last_modified_time": "1612943810186",
"last_message_info": {
"sender": {
"name": "James",
"id": "$3403221679883552585"
},
"type": "text",
"message": {
"text": "Can you help me with your product?"
},
"time": "1612943653962"
},
"status": "Attended Online",
"app_id": "466756000000002043",
"department": {
"name": "Zylker",
"id": "466756000000002013"
},
"visitor": {
"phone": "9123337778",
"email": "james@zyker.com",
"name": "James",
"country_code": "IN",
"type": "contact",
"supported_operations": [
"bot_chat",
"file_share",
"audio_call",
"video_call",
"screen_share",
"remote_share",
"edit_message",
"delete_message",
"reply_message",
"block_ip",
"article_share"
],
"ip": "121.244.91.20",
"id": "466756000000969001"
}
}
}