GET /teams/{teamId}/drive/files
Listagem unificada (todos contextos)
- 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`.
context_type: bill|receivable|payment|receipt|task| timeline_post|wiki|drive|all. drive = upload direto (context_type IS NULL). Cursor keyset opcional.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim | |
context_type | query | string | não | |
q | query | string | não | |
from | query | string | não | |
to | query | string | não | |
folder_id | query | string | não | |
type | query | string | não | J-012 — classe de mídia. Ausente = todas. Fora da allowlist = 400. |
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<FilesDriveFile> | 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 | |
items[].uploader_name | string | não | |
items[].download_url | string | não | URL resolvida server-side (presigned OU path). |
next_cursor | object | null | não | |
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/drive/files' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://files-api.axuz.net/teams/TEAM_ID/drive/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/drive/files",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())