Conversation Messages APIs tips

1

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 the Authentication header field the JWT token of an Admin teammate of the project (as shown in the Postman example below).

Authentication: <JWT token>
2

Real-time messages

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

Related:

  • https://developer.tiledesk.com/apis/webhooks/subscriptions

  • https://developer.tiledesk.com/apis/realtime-api