GET
/
api
/
file
/
{file_id}
curl --request GET \
  --url https://api.trieve.ai/api/file/{file_id} \
  --header 'Authorization: <api-key>' \
  --header 'TR-Dataset: <tr-dataset>'
{
  "created_at": "2021-01-01 00:00:00.000",
  "file_name": "file.txt",
  "id": "e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3",
  "link": "https://trieve.ai",
  "metadata": {
    "key": "value"
  },
  "s3_url": "https://trieve.ai",
  "size": 1000,
  "updated_at": "2021-01-01 00:00:00.000"
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Path Parameters

file_id
string
required

The id of the file to fetch

Query Parameters

content_type
string | null

Optional field to override the presigned url's Content-Type header

Response

200
application/json
The file's information and s3_url where the original file can be downloaded
created_at
string
required
file_name
string
required
id
string
required
s3_url
string
required
size
integer
required
updated_at
string
required
metadata
any | null