fb5873382d39

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-12186533836.1 KB
product:chat

Export channels

Exports channel data to a JSON or CSV file (CSV requires version=v2)

post/export_channels

Request body

clear_deleted_message_textboolean

Set if deleted message text should be cleared

export_usersboolean
format'json' | 'csv'

Output format: 'json' (default) or 'csv'. csv requires version=v2 and is incompatible with export_users

include_fieldsstring[]

For csv format: subset of message columns to include (defaults to a standard set)

include_soft_deleted_channelsboolean

Set if you want to include deleted channels

include_truncated_messagesboolean

Set if you want to include truncated messages

versionstring

Export version

Response

Successful response

durationstring required

Duration of the request in milliseconds

task_idstring required

ID of the task to export channels