A valid request URL is required to generate request examples{
"events": [
{
"id": "…",
"sequence": 4821,
"type": "member.role_changed",
"actor": {
"kind": "user",
"user_id": "…",
"email": "ana@acme.dev",
"ip": "203.0.113.7",
"user_agent": "Mozilla/5.0 …"
},
"target": {
"type": "membership",
"id": "…"
},
"payload": {
"role_id": "…",
"changed_by": "…"
},
"occurred_at": "2026-07-29T14:02:11Z"
}
],
"has_more": false,
"window_days": 30
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Read the staff audit trail
Requires audit:read. What staff did inside this organization, newest first: who acted, what they did, which object they did it to, when, and from where.
Entries come from the platform’s internal event bus rather than from each endpoint writing its own, which has two consequences worth knowing. An action is recorded a moment after it succeeds, never during the request that performed it. And the trail is append-only: no endpoint edits or removes an entry, and neither does anything else.
Recording is never conditional on a plan, and neither is keeping: every organization’s trail is retained for the same period. What a plan changes is how far back this read looks, reported as window_days — so entries beyond it are hidden rather than deleted, and a plan that lengthens the window shows the history that was always there.
A valid request URL is required to generate request examples{
"events": [
{
"id": "…",
"sequence": 4821,
"type": "member.role_changed",
"actor": {
"kind": "user",
"user_id": "…",
"email": "ana@acme.dev",
"ip": "203.0.113.7",
"user_agent": "Mozilla/5.0 …"
},
"target": {
"type": "membership",
"id": "…"
},
"payload": {
"role_id": "…",
"changed_by": "…"
},
"occurred_at": "2026-07-29T14:02:11Z"
}
],
"has_more": false,
"window_days": 30
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Autorizações
Cabeçalhos
The organization the caller is acting on — the org_… code that appears in the panel URL. It identifies; the membership JOIN is what authorizes, so a forged code reads nothing: the answer is not_a_member (403), which does not mean the session is over. Absent, the session's default organization answers, or — if that membership was revoked while the session was open — any other one the caller still holds.
Parâmetros de consulta
Resposta
One page of the trail, newest first.