---
title: "Get a file download URL"
method: GET
path: "/v1beta/files/{file_id}/download_url"
tags: ["Files"]
---

# Get a file download URL

`GET /v1beta/files/{file_id}/download_url`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/files/{file_id}/download_url`
- Auth: HTTP bearer

Get a short-lived signed URL to download the file bytes directly from storage.

## Path parameters

- `file_id` string, required: The ID of the file to download.

## Response `200`

Successful response

- FileDownloadUrl
  - `url` string, required: Short-lived signed URL to download the file bytes directly from storage.
  - `expires_at` string, date-time, required: When the download URL stops being valid.

## Other responses

- `422`: Validation error

---

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