> ## 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.

# Descarga de Archivo

> Permite descargar un archivo disponible en el sistema.

## Endpoint

`GET /download-file`

**Autenticación**\
Requiere el encabezado `authorization: <tu_token>`.

## Parámetros

Envía el **id del archivo** como query parameter.

## Ejemplo (cURL)

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

## Respuestas

### Response - Success

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

### 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
}
```
