GET /teams/{teamId}/files/folders/{id}
Metadata do folder + breadcrumb (`path`)
- 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 metadata for a single folder plus the full ancestor chain so the client can render a breadcrumb without walking parents one-by-one. The path is root-first (oldest ancestor first, target folder last).
Parâmetros
| Nome | Em | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
teamId | path | string | sim | |
id | path | string | sim |
Respostas
200
OK
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
id | string<uuid> | sim | |
team_id | string<uuid> | null | sim | |
parent_id | string<uuid> | null | não | |
name | string | sim | |
created_by | string<uuid> | sim | |
created_at | string<date-time> | sim | |
path | array<FilesFolder> | não | Breadcrumb — do ancestor mais antigo até este folder (inclusive). |
path[].id | string<uuid> | sim | |
path[].team_id | string<uuid> | null | sim | |
path[].parent_id | string<uuid> | null | não | |
path[].name | string | sim | |
path[].created_by | string<uuid> | sim | |
path[].created_at | string<date-time> | sim |
401
Sem credencial valida
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim |
404
Recurso ausente
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
error | string | sim | Chave/slug do erro |
message | string | não |
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/folders/ID' \
-H "Authorization: Bearer $AXUZ_TOKEN"Node.js
const res = await fetch("https://files-api.axuz.net/teams/TEAM_ID/files/folders/ID", {
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/folders/ID",
headers={
"Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
},
timeout=30,
)
res.raise_for_status()
print(res.json())