Getting started
The following example demonstrates how to use the Data Export API to retrieve messages from a specific time range. In this case, the code fetches all messages from the previous day, handling pagination until all data is retrieved.
The sample code is provided in both JavaScript and Python to help you get started quickly.
Replace placeholders like <YOUR-BOT-HANDLE>
and <YOUR-API-KEY>
with your own credentials to begin fetching data.