---
title: "Export Project Files"
method: POST
path: "/projects/{projectId}/files/exports"
tags: ["Project"]
---

# Export Project Files

`POST /projects/{projectId}/files/exports`

Generates an asynchronous export operation. To monitor the progress until completion, use the [Poll Project Files Export](../api/Public-API.v1-fv.html#/operations/ExportProjectFilesStatus)  endpoint. 

This operation triggers the packaging of the project files into a `zip` format.
> [!WARNING] 
> The export ID has a time-to-live (TTL) of 20 minutes, starting from when this export operation is initiated (not when the underlying async operation completes). Ensure you poll and download the export within this timeframe, or you will receive a `404 Not Found` error.

## Headers

- `Authorization` string, required
- `X-LC-Tenant` string, required

## Request body

- ZipFileExportRequest
  - `referenceFiles` ZipFileExportReferenceFilesRequest — Reference files associated with the project.
    - `include` boolean — Add reference files to the export package.
  - `targetFiles` ZipFileExportTargetFilesRequest — Target files associated with the project.
    - `includeVersions` 'currentVersion' | 'none' | 'nativeVersion' — Include target files with these versions into the export.
    - `targetLanguages` string[] — Include target files for the specified languages (e.g., 'en-US', 'de-DE'). Only one target language is supported when `downloadFlat` is set to `true`.
    - `downloadFlat` boolean — If this flag is set to `true`, folder structure will reflect exactly the file paths. If the flag is set to `false`, a ZIP folder will be generated with a structure similar to the one provided by Trados.

## Response `200`

Export Operation was triggered successfully

- ZipFileExportResponse
  - `exportId` string, required — The identifier of the export operation
  - `state` 'created' | 'processing' | 'done' | 'error', required — The status of the export

## Other responses

- `400` — Error responses: * "invalid": invalid input for the value mentioned in the “name” field on the error response.
- `401` — The user could not be identified.
- `403` — Error codes: * "forbidden": - the authenticated user is not allowed to trigger an export on the specified project, or does not have access to the project.
- `404` — Error codes: * "notFound": the project could not be found by identifier.

---

[API](https://skmtc.net/rws/apis/trados-cloud-platform-api.md) · [All operations](https://skmtc.net/rws/apis/trados-cloud-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rws/trados-cloud-platform-api/versions/d42dac7c28a3/schema)
