---
title: "Get file download URL"
method: GET
path: "/beta/file/{file_id}/download_url"
tags: ["File"]
---

# Get file download URL

`GET /beta/file/{file_id}/download_url`

## Request

- Base URL: `https://api.friendli.ai`
- URL: `https://api.friendli.ai/beta/file/{file_id}/download_url`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/friendli/apis/friendli-suite-api-reference/docs/beta/file/:file_id/download_url/get.ts> (a function with typed inputs; its response is checked against the schema)

Get file download URL.

## Path parameters

- `file_id` string, required: File ID

## Headers

- `X-Friendli-Team` string, nullable: ID of team to run requests as (optional parameter).

## Response `200`

OK

- FileGetDownloadUrlResponse: Get download URL response.
  - `fileId` string, required: ID of the file.
  - `s3Uri` string, required: S3 URI of the file.
  - `downloadUrl` string, required: Download URL of the file.

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/friendli/apis/friendli-suite-api-reference.md) - [All operations](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/friendli/apis/friendli-suite-api-reference/revisions/38fb43993a11?raw)
