Links

Conversation Messages APIs tips

Discover how to get conversation messages using APIs. Real time synch is supported through webhooks

Messages REST APIs

You can use the following APIs to get all messages relative to a conversation:
https://developer.tiledesk.com/apis/rest-api/messages#get-the-messages-of-a-request-by-id
You will get all the conversation messages.
NOTE: You must remove all the messages where sender: “system” (highlighted below) if you only need messages from end-users/humans/chatbot
If you need only the attributes setup during the conversation you can use the following endpoint:
https://api.tiledesk.com/v3/modules/tilebot/ext/parameters/requests/REQUEST-ID
Set in “Authentication” header’s field the JWT token of an Admin teammate of the project as in the following Postman example:

Real-time messages

You can also get messages in real-time (for synchronisation purposes) configuring the provided Webhook event “Message.create” in Project-> Developer zone