Reference / Sources and connections

Import a Slack export batch

import_slack_export_batchocmgr slack-export importPOST /v1/connections/{id}/slack-exportADMIN

Parse up to 250 Slack export user or public-channel message records and durably queue metadata-only history. Message text is discarded before storage. Retry with the same batch ID and observation time.

Parameters

idstring (uuid)REQUIRED

The Slack export connection.

batchIdstringREQUIRED

SHA-256 of archive, entry and batch position; stable across retries.

observedAtstring (date-time)REQUIRED

Stable archive observation time.

kind"users" | "messages"REQUIRED
usersCompletetrue

Set on the last users batch of an export. Message batches are refused until it has been accepted, because only users.json says which accounts are bots.

channelobject
idstringup to 64 charsREQUIRED
namestringup to 100 charsREQUIRED
recordsobject[]up to 250REQUIRED

Empty only on a users batch that sets usersComplete: an export whose users.json lists nobody.

CLI flags

--batch <file>REQUIRED

JSON batch with batchId, observedAt, kind and records; see the Slack export guide

Also in Sources and connections