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

# Tickets

> Reference material for ticket export APIs.

Use these endpoints to list, update, assign, and export ticket data from Sagepilot.

<CardGroup cols={2}>
  <Card title="List tickets" href="/api-reference/tickets/list">
    List paginated ticket summaries with filters, sorting, and cursor pagination.
  </Card>

  <Card title="Export tickets" href="/api-reference/tickets/export">
    Download raw ticket rows as a streamed CSV attachment.
  </Card>

  <Card title="Assign ticket" href="/api-reference/tickets/assign">
    Assign a ticket to an agent, AI agent, team queue, or unassigned state.
  </Card>

  <Card title="List ticket messages" href="/api-reference/tickets/messages-list">
    List paginated messages for a ticket chat.
  </Card>
</CardGroup>

## Related

For credential setup, supported auth headers, and access requirements, see [API client v2](/api-reference/authentication/api-client-v2).
