Axuz Developers

GET /teams/{teamId}/drive/files

Listagem unificada (todos contextos)

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

context_type: bill|receivable|payment|receipt|task| timeline_post|wiki|drive|all. drive = upload direto (context_type IS NULL). Cursor keyset opcional.

Parameters

NameInTypeRequiredDescription
teamIdpathstringyes
context_typequerystringno
qquerystringno
fromquerystringno
toquerystringno
folder_idquerystringno
typequerystringno

J-012 — classe de mídia. Ausente = todas. Fora da allowlist = 400.

limitqueryintegerno
after_tsquerystringno
after_idquerystringno

Responses

200

OK

NameTypeRequiredDescription
itemsarray<FilesDriveFile>no
items[].idstring<uuid>yes
items[].team_idstring<uuid> | nullno

NULL em drive pessoal.

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

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

items[].statusstringyes

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

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

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

items[].context_idstring<uuid> | nullno
items[].context_labelstring | nullno
items[].thumb_keystring | nullno
items[].thumb_widthinteger | nullno
items[].thumb_heightinteger | nullno
items[].uploader_namestringno
items[].download_urlstringno

URL resolvida server-side (presigned OU path).

next_cursorobject | nullno
next_cursor.after_tsstring<date-time>no
next_cursor.after_idstring<uuid>no

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