# Download a file `GET /api/v1/files/download/{id}` Redirects to the downloadable file. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Files → Read**. ## Path parameters - `id` (integer, required) — ID of the file. Fetch the file from the returned URL separately. The API key is only needed for the ASDinCloud request. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/files/download/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --dump-header - ``` ## Response **302 Found** Returns the file URL in the `Location` header. ```http HTTP/1.1 302 Found Location: https://files.example.com/welcome.pdf ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `400` — The record has no downloadable file. - `404` — The requested record was not found.