---
title: "Get FileVersion by ID"
method: GET
path: "/api/v3/file/{file_id}/versions/{file_version_id}"
tags: ["File"]
---

# Get FileVersion by ID

`GET /api/v3/file/{file_id}/versions/{file_version_id}`

## Request

- Base URL: `https://{tenant_name}.benchling.com`
- URL: `https://{tenant_name}.benchling.com/api/v3/file/{file_id}/versions/{file_version_id}`
- Auth: HTTP bearer

Get a single FileVersion by ID.

## Path parameters

- `file_id` string, required
- `file_version_id` string, required

## Response `200`

OK

- FileVersion: A FileVersion is an immutable published version in a File's history. Each update that changes a File's content publishes a new FileVersion with the next versionNumber, and the File's currentVersionId points at the latest one. The version's content is the ScratchFile it references, which is never modified after publishing. FileVersions are listed and read through their File.
  - `__typename` string
  - `createdAt` string, datetime
  - `creator` PrincipalRef
    - `__typename` string
    - `id` string, api_id
  - `file` FileRef
    - `__typename` string
    - `id` string, api_id
  - `id` string
  - `parentVersionId` string, nullable: ID of the version that was current when this version was published, or null for a File's first version.
  - `scratchFile` ScratchFileRef
    - `__typename` string
    - `id` string, api_id
  - `versionNumber` integer: Position of the version in the File's history, starting at 1.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/benchling/apis/benchling-api.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api/revisions/c9f087b98b8b?raw)
