Exporting all Messages for all threads

I would like to extract all messages for all threads for all inboxes. The goal is to do some analysis on the messages and downstream processing.

Currently I am thinking about the following procedure:

1. Get all threads via threads api: https://api.hubapi.com/conversations/v3/conversations/threads

2. Get all messages for each thread via messages api: https://api.hubapi.com/conversations/v3/conversations/threads{threadId}/messages

3. Store the result in a database, so that I can use it for downstream processing.

Is there a better way to do it? Specifically is there a way to get all messages for all threads for a given inbox in one request?

Hey, @alexoberneyer. Thanks for your questions. To your last question, there is not a unified endpoint or way to do this in a single call. We’ll leave this open in case other community members would like to share how they structure their requests.

Best,

Jaycee

We have a similar use case. Right now we’re doing something very similar to your procedure but it would be great @Jaycee_Lewis to have something like on this on the API. Like a `/conversations/threads/all` with a `count` so we know how many there are.