Register and schedule a data export
Registers and schedules a message, channel, or user data export.
HTTP request
Parameters
The following table lists the parameters that this action supports.
Required
Parameter name | Type | Description |
---|---|---|
data_type | string | Specifies the type of data to export. Acceptable values are |
Request body
The following table lists the properties of an HTTP request that this action supports.
Properties
Required | Type | Description |
---|---|---|
start_ts | long | The start time of a period for the target data's creation date in Unix milliseconds format. The creation time of the target data type is in between the time period set by the |
end_ts | long | The end time of a period for the target data's creation date in Unix milliseconds format. The creation time of the target data type is in between the time period set by the |
Optional | Type | Description |
---|---|---|
format | string | Specifies the format of the file to export messages in. Acceptable values are |
csv_delimiter | string | Sets a single character delimiter to separate the values in each row of the |
timezone | string | Specifies the timezone to be applied to the timestamp of the exported messages. For example, |
sender_ids[] | array of strings | Specifies an array of user IDs that are used to filter messages by sender for data export. Up to 10 user IDs can be specified in the request. This property is effective only when a value of the |
exclude_sender_ids[] | array of strings | Specifies an array of user IDs that are used to exclude messages sent by the specified users from data export. Up to 10 user IDs can be specified in the request. This property is effective only when a value of the |
channel_urls[] | array of strings | Specifies an array of one or more URLs of channels to extract messages to be included in the data export. This property is effective only when a value of the |
exclude_channel_urls[] | array of strings | Specifies an array of one or more URLs of channels to exclude when exporting messages. This property is effective only when a value of the |
user_ids[] | array of strings | Specifies an array of user IDs to include their information in the data export. This property is effective only when a value of the |
show_read_receipt | boolean | Determines whether to include information about the read receipts of each channel in the data to be exported. A read receipt indicates the timestamp of when a user has last read the messages in the channel in Unix milliseconds format. (Default: |
show_channel_metadata | boolean | Determines whether to include channel metadata in the result files. (Default: |
neighboring_message_limit | int | Specifies the number of immediately preceding and succeeding messages sent by user IDs that aren't specified in |
Response
If successful, this action returns a data export resource in the response body.
In the case of an error, an error object is returned. A detailed list of error codes is available here.