Axuz Developers

GET /teams/{teamId}/files/trash

Files + folders soft-deletados

  • Access: Signed in
  • Service: https://files-api.axuz.net

Accepted authentication

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

Parameters

NameInTypeRequiredDescription
teamIdpathstringyes

Responses

200

OK

NameTypeRequiredDescription
filesarray<FilesFile>no
files[].idstring<uuid>yes
files[].team_idstring<uuid> | nullno

NULL em drive pessoal.

files[].folder_idstring<uuid> | nullno
files[].uploaded_bystring<uuid>no
files[].namestringyes
files[].content_typestringyes
files[].size_bytesintegeryes
files[].storage_keystringyes

Chave opaca no storage provider (S3/R2/B2/Bunny/local).

files[].statusstringyes

enum: "pending", "uploaded", "scanning", "ready", "infected"

files[].created_atstring<date-time>yes
files[].completed_atstring<date-time> | nullno
files[].context_typestring | nullno

enum: "bill", "receivable", "payment", "receipt", "task", "timeline_post", "wiki", "drive", null

files[].context_idstring<uuid> | nullno
files[].context_labelstring | nullno
files[].thumb_keystring | nullno
files[].thumb_widthinteger | nullno
files[].thumb_heightinteger | nullno
foldersarray<FilesFolder>no
folders[].idstring<uuid>yes
folders[].team_idstring<uuid> | nullyes
folders[].parent_idstring<uuid> | nullno
folders[].namestringyes
folders[].created_bystring<uuid>yes
folders[].created_atstring<date-time>yes

401

Sem credencial valida

NameTypeRequiredDescription
errorstringyes

429

Limite de requisições excedido.

NameTypeRequiredDescription
errorstringyes

500

Erro interno. Tente de novo com backoff; reporte o X-Request-Id.

NameTypeRequiredDescription
errorstringyes

Examples

"Try it" is turned off in this reference. Use the examples with your test credential.

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())