Chats
List all chats data
Permission: superadmin
Parameter
page_no optional
Number
The requested page number.
Default value: 1
date_from optional
String
yyyy-mm-dd formatted date is the start date of the search criteria.
Default value: 1970-01-01
date_to optional
String
yyyy-mm-dd formatted date is end date of the search criteria.
Default value: today
agent_id optional
Number
Will return results involving this agent id only.
agent_email_id optional
String
Will return results involving this agent's email only.
Success 200
chat_id
Number
The chat id.
chat_request_time
Number
This is the chat request arrival time in epoch time in millisecond.
is_missed
Number
The status whether the requested chat is a successful chat or a missed chat.
chat_started_by
Number
The status whether the requested chat is visitor initiated or proactive knock from agent.
is_chat_transferred
Number
Indicates whether chat was transferred to some other agents or not.
conversation_start_time
Number
The start time of the conversation in epoch time in millisecond.
conversation_end_time
Number
The end time of the conversation in epoch time in millisecond.
chat_ended_by
Number
Indicates whether the chat was ended by visitor or agent.
visitor_id
Number
The id of the visitor.
visitor_email
String
The email address of the visitor.
visitor_name
String
The name of the visitor.
visitor_phone
String
The phone number of the visitor.
agent_id
Number
The id of the agent who handled the chat.
first_name
String
The first name of the agent.
last_name
String
The last name of the agent.
String
The email address of the agent.
rating
Number
The feedback value that the visitor gave based on the agent's performance.
Get a single chat details
Parameter
id
Number
The id of the chat.
Success 200
chat_id
Number
The chat id.
chat_request_time
Number
This is the chat request arrival time in epoch time in millisecond.
is_missed_chat
Number
The status whether the requested chat is a successful chat or a missed chat.
chat_started_by
Number
The status whether the requested chat is visitor initiated or proactive knock from agent.
is_chat_transferred
Number
Indicates whether chat was transferred to some other agents or not.
conversation_start_time
Number
The start time of the conversation in epoch time in millisecond.
conversation_end_time
Number
The end time of the conversation in epoch time in millisecond.
chat_ended_by
Number
The time when the visitor visited the site for the first time in epoch time in millisecond.
visitor_id
Number
The id of the visitor.
first_visit_time
Number
The time when the visitor visited the site for the first time in epoch time in millisecond.
ip_address
String
The ip address of the visitor.
platform
String
The platform of the visitor.
browser
String
The name of the browser through which the visitor requested the chat.
browser_version
String
The version of the browser.
country
String
The country of the visitor.
region
String
The region of the visitor.
latitude
String
The latitude of the visitor's location.
longitude
String
The longitude of the visitor's location.
isp
String
The name of the internet service provider of the visitor.
city
String
The city of the visitor.
referrer_link
String
The referrer address from which the visitor came into your website.
visitor_email
String
The email address of the visitor.
visitor_phone
String
The phone number of the visitor.
visitor_name
String
The name of the visitor.
agent_id
Number
The id of the agent who handled the chat.
agent_email
String
The email address of the agent.
first_name
String
The first name of the agent.
last_name
String
The last name of the agent.
rating
Number
The feedback value that the visitor gave based on the agent's performance.
messages
Object
All the messages in the chat session
Error 4xx
ChatNotFound
The id of the Chat was not found.
Forbidden
Not Permitted.
InvalidChatID
Invalid Chat id (if the input is not Valid number value, such as, -143 ).
Any questions? Please email us at support@revechat.com
Last updated