cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Does /conversations API even work?

Former Member
0 Likes
381

Hi!

Was anybody able to retrieve conversations via API? I am using URL https://api.cai.tools.sap/connect/v1/conversations and always getting no result:

{ "results": [], "message": "No conversations" }

Accepted Solutions (0)

Answers (2)

Answers (2)

kpnair
Product and Topic Expert
Product and Topic Expert

Hi danylo.smirnov,

Hope you have tested the chat bot once so that some messages are logged in Monitor section. 🙂

Yes you need to try as follows.

Please refer Showing conversation & Indexing conversation session.

https://cai.tools.sap/docs/api-reference/?javascript#conversations

Get the id from the result set and pass the conversation ID.

Regards,
Kannan

Former Member
0 Likes

Hi Kannan,

Thank you for the feedback!

That is exactly what I did. I have tested chatbot to have some messages there. Then I have copied developer token from settings and sent GET request as on screenshot with developer token. Am I missing anything?