<your-api-key> with an enterprise API key from the Compliance API settings (see Authentication).
Step 1 — Preview the user’s tasks (optional)
Step 2 — Create the export task
uid for the next steps.
Step 3 — Poll until the export is ready
record.status is EXPORT_STATUS_COMPLETED. If it becomes EXPORT_STATUS_FAILED, inspect record.error_message. (EXPORT_STATUS_CANCELLED indicates the export was cancelled.)