GET /teams/{teamId}/files/trash
Files + folders soft-deletados
- 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`.
Returns soft-deleted files + folders. The drive client's "Lixeira" sidebar entry points here. The list is team-wide; narrowing to the caller's own uploads is deferred — teams usually want admins to clean up after departed members, which matches the existing deleteFile admin-override.
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim |
Respostas
200
OK
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
files | array<FilesFile> | não | |
files[].id | string<uuid> | sim | |
files[].team_id | string<uuid> | null | não | NULL em drive pessoal. |
files[].folder_id | string<uuid> | null | não | |
files[].uploaded_by | string<uuid> | não | |
files[].name | string | sim | |
files[].content_type | string | sim | |
files[].size_bytes | integer | sim | |
files[].storage_key | string | sim | Chave opaca no storage provider (S3/R2/B2/Bunny/local). |
files[].status | string | sim | enum: |
files[].created_at | string<date-time> | sim | |
files[].completed_at | string<date-time> | null | não | |
files[].context_type | string | null | não | enum: |
files[].context_id | string<uuid> | null | não | |
files[].context_label | string | null | não | |
files[].thumb_key | string | null | não | |
files[].thumb_width | integer | null | não | |
files[].thumb_height | integer | null | não | |
folders | array<FilesFolder> | não | |
folders[].id | string<uuid> | sim | |
folders[].team_id | string<uuid> | null | sim | |
folders[].parent_id | string<uuid> | null | não | |
folders[].name | string | sim | |
folders[].created_by | string<uuid> | sim | |
folders[].created_at | string<date-time> | sim |
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/trash' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://files-api.axuz.net/teams/TEAM_ID/files/trash", {
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/trash",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())