> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackshift.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Team audit log and export

> See everything people, tokens, agents and automations changed in a team, and everything they were refused. Export CSV or JSON, or stream it through Events.

> [!TIP]
>
> **Live.** This area is documented as current, user-reliable behavior.

## Goal

Answer who did what, when and why it was allowed or refused.

## Prerequisites

* Owner or Admin of the team.

## Workflow

**Step 1**

In team settings, open Audit, then Audit log.

**Step 2**

Filter by action (for example database.\*), Result (Allowed or Denied), Person or agent, Product, Resource and date range.

**Step 3**

Choose Export, pick the dates and CSV or JSON.

**Step 4**

To send entries to a webhook or SIEM, choose Set up in Events and create a rule on audit.\*.

## What is recorded

* Every allowed write, ask-first, notify and destructive action, and every refusal. Reads are not recorded.
* Each entry shows the time, who (person, token, agent connection or automation), the action key, the product, the resource, Allowed or Denied, via which role or policy, the IP address and a summary.
* Product records such as sandbox and database audits also appear as audit events.

## Export and stream

* Export downloads a date range as team-audit-\<date>.csv or .json. CSV columns: time, actor\_kind, actor, action\_key, product, resource\_ref, decision, via, ip, summary.
* API: GET /api/v1/teams/\{teamId}/audit with actor\_kind, actor\_id, product, action (a key or a prefix ending in \*), resource, decision, from, to, cursor and limit. GET /api/v1/teams/\{teamId}/audit/export?format=csv or json.
* Events audit.action.recorded and audit.access.denied carry the same entries to any Events target, signed and retried like other events.

## Expected result

> [!TIP]
>
> You can trace any change or refusal to a person, token, agent or automation, and the role or policy that applied.

## Related guides

> [card] [Who can access this? and unused access](https://docs.stackshift.cloud/team-and-access/who-can-access.md)
>
> See every person, token, agent and automation that can reach a resource and why, and remove access nobody has used in 90 days.

> [card] [Events overview](https://docs.stackshift.cloud/events/overview.md)
>
> Everything that happens across StackShift is recorded as an event. Rules send the events you choose to webhooks, functions, queues, agents, notifications or automations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.