---
title: "Request a Collection Export"
method: POST
path: "/api/v1/data-collection/collections/{collection_id}/export"
tags: ["aiTaskBuilder"]
---

# Request a Collection Export

`POST /api/v1/data-collection/collections/{collection_id}/export`

Initiates an asynchronous export of all participant responses and uploaded files for a collection as a ZIP archive.

The export is generated out-of-band to handle large collections without hitting API timeout limits. The endpoint returns immediately with one of two outcomes:

- **202 Accepted** — a new export job has been enqueued. Use the returned `export_id` to poll `GET /collections/{collection_id}/export/{export_id}` for status.
- **200 OK** — a recent export already exists and is ready to download immediately.

Subsequent POST requests for the same collection are idempotent while an export is generating or complete; they return the existing job ID or download URL rather than re-triggering generation.

Only researchers with workspace access to the collection can request an export.

## Path parameters

- `collection_id` string, required

## Headers

- `Authorization` string, required

## Response `200`

Export already complete

- CollectionExportComplete — An export job that has completed successfully. The ZIP archive is ready to download.
  - `status` 'complete', required
  - `url` string, uri, required — Presigned HTTPS URL for downloading the ZIP archive. Valid for 1 hour. Re-poll to get a refreshed URL if expired.
  - `expires_at` string, date-time, required — ISO 8601 timestamp indicating when the presigned URL expires.

## Other responses

- `403` — Forbidden — user does not have workspace access to this collection

---

[API](https://skmtc.dev/prolific/apis/api-reference.md) · [All operations](https://skmtc.dev/prolific/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prolific/api-reference/revisions/578f400cea53/schema)
