---
title: "Get a file"
method: GET
path: "/files/{file_id}"
tags: ["files"]
---

# Get a file

`GET /files/{file_id}`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2-beta`
- URL: `https://{tenant_name}.benchling.com/api/v2-beta/files/{file_id}`
- Auth: HTTP bearer

Get a file. This endpoint returns an S3 URL, from which you can download the file contents.

Note: URL is valid for 1 hour after being returned from this endpoint. It should not be stored
persistently for later use.

## Path parameters

- `file_id` string, required

## Response `200`

OK

- File
  - `errorMessage` string, nullable
  - `uploadStatus` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED_VALIDATION' | 'NOT_UPLOADED'
  - `archiveRecord` ArchiveRecord
    - `reason` string
  - `createdAt` string, date-time: Date and time the file was created
  - `creator` FileCreator: UserSummary of the user who created the file
    - `handle` string
    - `id` string
    - `name` string
  - `customFields` CustomFields
  - `displayId` string: User-friendly ID of the file
  - `filename` string
  - `folderId` string: ID of the folder that contains the file
  - `id` string
  - `modifiedAt` string, date-time: Date and time the file was last modified
  - `name` string

## Other responses

- `403`: Forbidden
- `404`: Not Found

---

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