---
title: "List Target File Versions"
method: GET
path: "/projects/{projectId}/target-files/{targetFileId}/versions"
tags: ["Target File"]
---

# List Target File Versions

`GET /projects/{projectId}/target-files/{targetFileId}/versions`

Retrieves the versions of a target file.

## Query parameters

- `fields` string

## Headers

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

## Response `200`

- ListTargetFileVersionsResponse — A response for the List Target Files Versions endpoint.
  - `itemCount` integer, required
  - `items` TargetFileVersion[], required
    - `id` string, required — The target file version identifier.
    - `type` 'native' | 'bcm', nullable — <div style="display:inline; float:right; color:#008080; margin-top:-23px; font-size:11px">default</div><div style="display: inline;">The version type.</div>
    - `name` string — <div style="display:inline; float:right; color:#008080; margin-top:-23px; font-size:11px">default</div><div style="display: inline;">The file version name. This is a synthetic value, typically constructed from the version number and the originating task name.</div>
    - `version` integer, required — A numeric value, incremented for each new version.
    - `originatingTaskId` string — The identifier of the task that generated the file.

## Other responses

- `400` — Error codes: * “invalid”: Invalid input in the query parameter 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 retrieve versions on the target file.
- `404` — Error codes: * "notFound": the project or the target file 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/revisions/d42dac7c28a3/schema)
