---
title: "Export Audit Events"
method: GET
path: "/api/v1/teams/{team_id}/audit-log/export"
tags: ["audit-log"]
---

# Export Audit Events

`GET /api/v1/teams/{team_id}/audit-log/export`

## Request

- Base URL: `https://api.badgeia.com`
- URL: `https://api.badgeia.com/api/v1/teams/{team_id}/audit-log/export`
- Auth: none declared

Ascending ``seq``, 1,000-row chunks, no count query.

``format=jsonl&include=checkpoints`` appends one line per signed
checkpoint (``"record_type": "checkpoint"``) after the events, so the
receipts travel with the export. CSV has no trailer: 422.

The export itself is recorded first and committed before streaming, so the
chain-head lock is not held for the length of the download. Rows are
bounded by the head as of that commit; later writes are not included.

## Path parameters

- `team_id` string, uuid, required

## Query parameters

- `format` 'csv' | 'jsonl'
- `action` string, nullable
- `actor_user_id` string, uuid, nullable
- `target_type` string, nullable
- `target_id` string, nullable
- `from` string, date-time, nullable
- `to` string, date-time, nullable
- `include` 'checkpoints', nullable

## Response `200`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/badgeia/apis/badge.md) · [All operations](https://skmtc.dev/badgeia/apis/badge/llms.txt) · [OpenAPI document](https://skmtc.dev/badgeia/apis/badge/revisions/7e7f7fee8b77?raw)
