Axuz Developers

GET /teams/{teamId}/admin/audit

Is paginated and filterable.

  • Acesso: Admin da equipe
  • Serviço: https://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`.

Is paginated and filterable. Supported query params:

action — exact match on audit_events.action (e.g. "task.created") actor — UUID of the acting user (alias: actor_id) entity — exact match on audit_events.entity_type (e.g. "task", "user") from — lower bound on created_at. Accepts RFC3339 or YYYY-MM-DD. to — upper bound on created_at. Same formats as from. limit — 1..200 (default 100) cursor — keyset cursor (opaque) returned by a previous response as next_cursor. Preferred over offset for stable paging. offset — legacy offset paging; still honoured when no cursor is set.

Fase 75 rewrites the filter-building logic — the previous version juggled args slice slots by hand and got the placeholder indices wrong as soon as more than one filter was active. Everything is rebuilt from scratch here and the cursor was added so the UI can page without the "skipped rows on refresh" that pure offset suffers from when new events arrive.

Parâmetros

NomeEmTipoObrigatórioDescrição
teamIdpathstringsim

Respostas

200

TBD

401

Sem credencial valida

NomeTipoObrigatórioDescrição
errorstringsim

403

Sem permissao (nao e owner/admin; token sem escopo; token de integracao em rota nao permitida)

NomeTipoObrigatórioDescrição
errorstringsim

429

Limite de requisições excedido.

NomeTipoObrigatórioDescrição
errorstringsim

500

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

NomeTipoObrigatórioDescrição
errorstringsim

Exemplos

O "Try it" está desligado nesta referência. Use os exemplos com a sua credencial de teste.

curl

curl -sS -X GET 'https://api.axuz.net/teams/TEAM_ID/admin/audit' \
  -H "Authorization: Bearer $AXUZ_TOKEN"

Node.js

const res = await fetch("https://api.axuz.net/teams/TEAM_ID/admin/audit", {
  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://api.axuz.net/teams/TEAM_ID/admin/audit",
    headers={
        "Authorization": f"Bearer {os.environ['AXUZ_TOKEN']}",
    },
    timeout=30,
)
res.raise_for_status()
print(res.json())