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

# Download de Arquivo

> Permite baixar um arquivo disponível no sistema.

## Endpoint

`GET /download-file`

**Autenticação**\
Requer cabeçalho `authorization: <seu_token>`.

## Parâmetros

Envie o **id do arquivo** como query parameter.

## Exemplo (cURL)

```bash theme={null}
curl -X GET "https://gateway.orkeia.ai/download-file"   -H "authorization:  <seu_token>"   -o arquivo_baixado.bin
```

## Respostas

### Response - Success

```json response theme={null}
{
  "status": "OK",
  "data": "document url"
}
```

### 500 — Bad Request

```json theme={null}
{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}
```

### 400 — Client Error

```json theme={null}
{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}
```
