# Download file (inline)

`GET /api/file/{hash}`

URL: https://repsona.com/api/get-file-hash

Streams the file inline (1 year cache). Range requests are supported.

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `hash` | path | string | required | Hash of the file (UUID), returned as `hash` when the file was uploaded. |

## Request

```sh
curl -X GET "https://<space>.repsona.com/api/file/{hash}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## Responses

- 200: File stream
- 206: Partial content (Range)
- 401: Authentication is required
- 403: Not a member of the file's project
- 404: File not found
