---
title: "Get File URL"
method: GET
path: "/files/{file_id}/url"
tags: ["Files"]
---

# Get File URL

`GET /files/{file_id}/url`

Returns a presigned download URL by default. If `base64_urls=true`, returns
base64-encoded file content. Control expiry with `expires_in` (seconds).

## Path parameters

- `file_id` string, required

## Query parameters

- `expires_in` integer
- `base64_urls` boolean

## Response `200`

Presigned URL or base64 data

- FileUrlResponse
  - `expires_in` integer, nullable — Expiry in seconds (omitted when base64)
  - `url` string, required — The presigned URL or base64 data (if base64_urls=true)

## Other responses

- `401` — Unauthorized
- `404` — File not found
- `500` — Server error

---

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