---
title: "Get File Download Url"
method: GET
path: "/knowledge/{knowledge_base_id}/files/{file_id}/download_url"
tags: ["knowledge"]
---

# Get File Download Url

`GET /knowledge/{knowledge_base_id}/files/{file_id}/download_url`

Get a presigned URL to download a file from a knowledge base

## Path parameters

- `knowledge_base_id` string, uuid, required — The id of the knowledge base
- `file_id` string, uuid, required — The id of the file

## Response `200`

Successful Response

- FileDownloadUrlResponse
  - `url` string, required — Presigned URL to download the file
  - `expires_in` integer, required — Number of seconds until the URL expires

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required (out of credits)
- `404` — Not Found
- `422` — Request Validation Error

---

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