> ## 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 tickets as JSON

> Returns the project's tickets as a JSON array, capped at 25,000 tickets. Supports the usual ticket
filters. For larger exports or CSV output use GET /tickets/csv-export.

Unlike GET /tickets, exports include archived tickets by default — there is no `ignoreArchived` to set
(it is accepted and ignored). Narrow the export with `archived=true` / `archived=false` instead.

This endpoint returns ticket records only, not their conversations: fetch each ticket's messages with
GET /messages?ticket={ticketId}. Retention limits which conversations still exist — see GET /tickets.

`type` accepts one ticket type (default `BUG`) or a comma-separated list (`BUG,INQUIRY,BOT`) to export
several boards — `BOT` is the Kai conversations lane — in one file; the `type` field tells rows apart.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /tickets/export
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /tickets/export:
    get:
      tags:
        - Ticket
      summary: Export tickets as JSON
      description: >-
        Returns the project's tickets as a JSON array, capped at 25,000 tickets.
        Supports the usual ticket

        filters. For larger exports or CSV output use GET /tickets/csv-export.


        Unlike GET /tickets, exports include archived tickets by default — there
        is no `ignoreArchived` to set

        (it is accepted and ignored). Narrow the export with `archived=true` /
        `archived=false` instead.


        This endpoint returns ticket records only, not their conversations:
        fetch each ticket's messages with

        GET /messages?ticket={ticketId}. Retention limits which conversations
        still exist — see GET /tickets.


        `type` accepts one ticket type (default `BUG`) or a comma-separated list
        (`BUG,INQUIRY,BOT`) to export

        several boards — `BOT` is the Kai conversations lane — in one file; the
        `type` field tells rows apart.
      operationId: ExportTickets
      parameters:
        - 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

````