GET /teams/{teamId}/files
Listar files
- Acesso: Login
- Serviço:
https://files-api.axuz.net
Autenticação aceita
sessionCookie— Sessão plena Axuz (cookie de sessão da casa). Sessão restrita é 403 enrollment_required.bearerSession— JWT de acesso da sessão em `Authorization: Bearer`.
Paginação keyset opcional (limit + after_ts + after_id). Sem limit devolve tudo (back-compat de clientes antigos). Filtra por folder_id (ausente = raiz) e por classe de mídia (type).
J-012 — type é allowlist fechada; valor fora dela é 400, nunca "ignora e devolve tudo" (um picker de imagem que recebe a listagem inteira renderiza planilha e PDF como se fossem imagem).
A descrição desta operação vem do comentário do handler no código (em português).
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim | |
folder_id | query | string | não | |
type | query | string | não | Classe de mídia. Ausente = todas. |
limit | query | integer | não | |
after_ts | query | string | não | |
after_id | query | string | não |
Respostas
200
OK
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
items | array<FilesFile> | não | |
items[].id | string<uuid> | sim | |
items[].team_id | string<uuid> | null | não | NULL em drive pessoal. |
items[].folder_id | string<uuid> | null | não | |
items[].uploaded_by | string<uuid> | não | |
items[].name | string | sim | |
items[].content_type | string | sim | |
items[].size_bytes | integer | sim | |
items[].storage_key | string | sim | Chave opaca no storage provider (S3/R2/B2/Bunny/local). |
items[].status | string | sim | enum: |
items[].created_at | string<date-time> | sim | |
items[].completed_at | string<date-time> | null | não | |
items[].context_type | string | null | não | enum: |
items[].context_id | string<uuid> | null | não | |
items[].context_label | string | null | não | |
items[].thumb_key | string | null | não | |
items[].thumb_width | integer | null | não | |
items[].thumb_height | integer | null | não | |
next_cursor | object | null | não | Presente quando |
next_cursor.after_ts | string<date-time> | não | |
next_cursor.after_id | string<uuid> | não |
401
Sem credencial valida
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
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/teams/TEAM_ID/files' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://files-api.axuz.net/teams/TEAM_ID/files", {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.AXUZ_TOKEN}`,
},
});
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/teams/TEAM_ID/files",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())