---
title: "Resolve a usable URL for a file"
method: GET
path: "/v1/workspaces/{workspace}/files/file-url"
---

# Resolve a usable URL for a file

`GET /v1/workspaces/{workspace}/files/file-url`

## Request

- Base URL: `https://api.uploads.sh`
- URL: `https://api.uploads.sh/v1/workspaces/{workspace}/files/file-url`
- Auth: HTTP bearer

Returns the workspace's public URL when configured, otherwise a short-lived signed download URL. Resolves across storage lanes so a file uploaded before a storage switch still resolves.

## Query parameters

- `key` string, required

## Response `200`

A usable URL.

- object
  - `url` string, uri, required

## Other responses

- `400`: Invalid request.
- `401`: Missing or invalid credential.
- `403`: The credential lacks the required scope or role.
- `404`: The resource was not found.

---

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