Exporting Channels

LAST EDIT Nov 23 2021

This method allows you to request an export of one or many channels and download all messages and metadata. Channel exports are created asynchronously, you can use the Task ID returned by the APIs to keep track of the status and to download the final result when it is ready.

The data created by the export is following the same format as the regular APIs and is JSON encoded. By default the entire history is included in the export (excluding truncated messages), but you may optionally request the export to include only the messages in a specific interval using the messages_since and messages_until parameters. You can also include truncated messages, by using include_truncated_messages: true.

Requesting a channel export

Up to 25 channels can be exported with a single export request.

Retrieving the status of the export


You can check the status of an export request using the task ID returned when the task was created. The result of the task contains the URL to the JSON file.

The URL to the export file has an expiration of 24-hours. The link is generated every time you request the export status.

Timestamps will be returned in this format: "2021-02-17T08:17:49.745857Z" and are in UTC.