---
title: "Get File with Signed URL"
method: GET
path: "/api/file/{file_id}"
tags: ["File"]
---

# Get File with Signed URL

`GET /api/file/{file_id}`

Get all of the information for a file along with a signed s3 url corresponding to the file_id requested such that you can download the file.

## Path parameters

- `file_id` string, uuid, required

## Query parameters

- `ttl` integer, nullable
- `content_type` string, nullable

## Headers

- `TR-Dataset` string, uuid, required

## Response `200`

The file's information and s3_url where the original file can be downloaded

- FileDTO
  - `created_at` string, date-time, required
  - `file_name` string, required
  - `id` string, uuid, required
  - `link` string, nullable
  - `metadata` unknown
  - `s3_url` string, required
  - `size` integer, required
  - `tag_set` string[], nullable
  - `time_stamp` string, date-time, nullable
  - `updated_at` string, date-time, required

## Other responses

- `400` — Service error relating to finding the file
- `404` — File not found

## Changes

> 50 revisions in range; 8 could not be searched.

- **2025-05-11** `002a079fb98c` — 2 info
  - added the optional property `tag_set` to the response with the `200` status
  - added the optional property `time_stamp` to the response with the `200` status

[Change history](https://skmtc.dev/devflowinc/apis/trieve-api/changes/api/file/:file_id/get.md)

---

[API](https://skmtc.dev/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.dev/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
