Getting inconsistent responses using the unstable API version for the export endpoints. I also can't seem to parse the gzip response using any python library? What I am aiming towards is retrieving the chats between clients and admins up to 6 years in the past per client for compliance reasons. Is that possible?
Hey @marko​, Magnus from Intercom here!
Â
Messages are how you reach out to contacts in Intercom. They are created when an admin sends an outbound message to a contact.
Â
Conversations are how you can communicate with users in Intercom. They are created when a contact replies to an outbound message, or when one admin directly sends a message to a single contact.
Â
Worth noting that from version 2.4 and up, our REST API allows you to create conversations from Messages automatically. See the "Create a message endpoint" for more details.
Â
As for the export endpoint, it includes all outbound content types such as Posts, Custom Bots, Emails, Surveys and more. It does not contain any conversations, but it may contain Messages that were later replied to and became conversations.
Â
If you want to view chats between an end-user and admin, you should look at retrieving specific users conversations instead of Messages. You can search for all conversations for a specific user by using our Conversation search endpoint, here. Use the "contact_ids" property and set it to equal to the end-users Intercom id when you search.
Â
As for Python libraries handling gzip, I'm afraid I can't provide much guidance. If you run into a specific error indicating there's something weird with our zipped data, please reach out to us through the Messenger with more details.
Â
I also have to note that any endpoint that is used in the unstable version is subject to change, and should not be treated as a stable endpoint!
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.