> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verbeo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Download file

> A link that downloads the file you uploaded, under its own name, valid 60 seconds.

Returns a link that downloads the file you uploaded, byte for byte, under its own name. The link works for 60 seconds: fetch it at once. It needs no API key.

## Path parameters

**fileId** `string` *required*

UUID of the file.

## Request

```bash theme={null}
URL=$(curl -s "https://api.verbeo.ai/v1/knowledge-base/files/c4ff0c9c-4b3b-4a94-a86e-3d3b64088ae0/download" \
  -H "Authorization: Bearer YOUR_API_KEY" | jq -r .data.url)
curl -L -o prices.pdf "$URL"
```

## Response

`200 OK`

```json theme={null}
{
  "success": true,
  "data": {
    "url": "https://…/storage/v1/object/sign/kb/5df09066-…/c4ff0c9c-…/prices.pdf?token=eyJhbGciOi…&download=prices.pdf",
    "expires_in": 60
  }
}
```

## Errors

| Code | Status | When |
| - | - | - |
| `CONFLICT` | 409 | `This file has not finished uploading.` (a link upload not yet confirmed) |
| `NOT_FOUND` | 404 | No such file: `File not found`. |
| `INTERNAL_ERROR` | 500 | `The download could not be started. Try again in a moment.` |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.