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

# Export a single ticket for audit

> 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/priority/tag changes and automated/system actions; routing (team/assignee) is included in
the `detail` text of the ticket-created and inbox-entered rows. Downloaded as `ticket_<bugId>_audit.csv`
(text/csv).



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /tickets/{ticketId}/audit-export
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/{ticketId}/audit-export:
    get:
      tags:
        - Ticket
      summary: Export a single ticket for audit
      description: >-
        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/priority/tag changes and automated/system actions;
        routing (team/assignee) is included in

        the `detail` text of the ticket-created and inbox-entered rows.
        Downloaded as `ticket_<bugId>_audit.csv`

        (text/csv).
      operationId: ExportTicketAuditEndpoint
      parameters:
        - in: path
          name: ticketId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````