---
title: "Export a single ticket for audit"
url: https://docs.gleap.ai/en/reference/rest-api/export-ticket-audit-endpoint
method: GET
path: "/tickets/{ticketId}/audit-export"
api: "API Reference"
tag: "Ticket"
operationId: "ExportTicketAuditEndpoint"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Export a single ticket for audit

`GET https://api.gleap.io/v3/tickets/{ticketId}/audit-export`

Returns an audit-focused CSV export of one ticket: one row per event in strict chronological order with the columns `timestamp, actor, actor_email, event_type, detail, content`. Covers messages, internal notes, status/assignee/team/priority/tag changes (team changes as `team_change` rows) and automated/system actions. Downloaded as `ticket_<bugId>_audit.csv` (text/csv).

The change rows come from the ticket history, so they follow its 180-day retention (see GET /tickets/{ticketId}/history) and include at most the newest 5,000 entries. Rows carry display text (names, not IDs) and no entry IDs; for a structured export use GET /messages and GET /tickets/{ticketId}/history.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Path parameters

- `ticketId` (string, required)

## Headers

- `project` (string, required)

## Example request

```bash
curl --request GET \
  --url 'https://api.gleap.io/v3/tickets/{ticketId}/audit-export' \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>'
```

## Responses

### 200 (`application/json`)

Ok
