GET /share/{token}/download
Download attachment (requer allow_download=true)
- Acesso: Pública (link ou assinatura)
- Serviço:
https://files-api.axuz.net
Autenticação aceita
Sem autenticação (rota pública ou protegida por link/assinatura).
— GET /share/{token}/download. Só funciona se o link tem allow_download=true. Content-Disposition attachment.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
token | path | string | sim | Token opaco base64url (32 bytes ≈ 43 chars) ou UUID legacy. |
session | query | string | não | Session token retornado por |
Respostas
200
OK (bytes attachment)
302
Presigned redirect
401
Session inválida ou ausente
403
Link view-only (allow_download=false)
410
Link revogado ou expirado
429
Limite de requisições excedido.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
500
Erro interno. Tente de novo com backoff; reporte o X-Request-Id.
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
Exemplos
O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.
curl
curl -sS -X GET 'https://files-api.axuz.net/share/TOKEN/download'Node.js
const res = await fetch("https://files-api.axuz.net/share/TOKEN/download", {
method: 'GET',
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
console.log(await res.json());Python
import os
import requests
res = requests.request(
"GET",
"https://files-api.axuz.net/share/TOKEN/download",
timeout=30,
)
res.raise_for_status()
print(res.json())