How to get live messages or connect chat messages through the API?

Kirti Kumar
Kilo Contributor

Hi Everyone,

Greeting for the day!!!

Could anyone tell me how could i get connect chat messages through the means of the API.

I am using London  developer instance in which i am having chat between system administrator and Abel tuter(impersonate user). My requirement is to get the chat transcript by the means of the API(Rest or Table API).

Please suggest me on this so that i could move on with this development.

Regards

Kirti Kumar

9 REPLIES 9

what i mean to say , when you open the table "live_message"

by live_message.list , are you able to see the record for that user. ?

 

eg:

 

find_real_file.png

 

 

Thanks for quick responses.

yes i am getting data in live feed message as you shown in the above  image but i want to run a API in which i will get all messages.

Mainly i want to show one to one message in my sample application which will be like real time chat with user.

 

Regards

Kirti Kumar 

the sample which i had provided, that's working at my end .

i tested with one example:

 

scenario : admin and abel tuter chat conversation. 

so i passed the encoded query in "sysparm_query" parameter and then it has retrieved the chat details. 

 

EG: profile=e3949a5c0a0a3c6d01e089a708d3ebef^group=b8354357dbed0050e4d95740cf9619e8

 

find_real_file.png

 

Assuming you have an admin role. 

Thank you so much Finally i got it.

Really appreciate you help.

 

Have a great day.

Thanks again.

 

Regards,

Kirti kumar

glad i helped. 

 

Mark my answer as correct and helpful.