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

# List tickets

> List support tickets with status, message counts, and latest update timestamps

<blockquote className="agent-llms-directive">
  For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
</blockquote>

<Callout icon="circle-check" color="#16a34a">
  **Free** - does not consume credits
</Callout>

<Info>
  Support tickets are free for all authenticated users.
</Info>

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET https://xquik.com/api/v1/support/tickets \
    -H "x-api-key: xq_YOUR_KEY_HERE" | jq
  ```

  ```javascript Node.js theme={null}
  const response = await fetch("https://xquik.com/api/v1/support/tickets", {
    method: "GET",
    headers: {
      "x-api-key": "xq_YOUR_KEY_HERE",
    },
  });
  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.get(
      "https://xquik.com/api/v1/support/tickets",
      headers={"x-api-key": "xq_YOUR_KEY_HERE"},
  )
  data = response.json()
  ```

  ```go Go theme={null}
  package main

  import (
      "encoding/json"
      "fmt"
      "net/http"
  )

  func main() {
      req, err := http.NewRequest("GET", "https://xquik.com/api/v1/support/tickets", nil)
      if err != nil {
          panic(err)
      }
      req.Header.Set("x-api-key", "xq_YOUR_KEY_HERE")

      resp, err := http.DefaultClient.Do(req)
      if err != nil {
          panic(err)
      }
      defer resp.Body.Close()

      var data map[string]interface{}
      if err := json.NewDecoder(resp.Body).Decode(&data); err != nil {
          panic(err)
      }
      fmt.Println(data)
  }
  ```
</CodeGroup>

## Headers

<ParamField header="x-api-key" type="string" required>
  Your API key. Session cookie authentication is also supported. Generate a key from the [dashboard](https://xquik.com/dashboard).
</ParamField>

## Response

<Tabs>
  <Tab title="200 OK">
    <ResponseField name="tickets" type="object[]">Array of ticket objects.</ResponseField>
    <ResponseField name="tickets[].publicId" type="string">Unique ticket public ID.</ResponseField>
    <ResponseField name="tickets[].subject" type="string">Ticket subject.</ResponseField>
    <ResponseField name="tickets[].status" type="string">Current status: `open`, `in_progress`, `resolved`, or `closed`.</ResponseField>
    <ResponseField name="tickets[].messageCount" type="number">Total number of messages in the ticket.</ResponseField>
    <ResponseField name="tickets[].createdAt" type="string">ISO 8601 creation timestamp.</ResponseField>
    <ResponseField name="tickets[].updatedAt" type="string">ISO 8601 last update timestamp.</ResponseField>

    ```json theme={null}
    {
      "tickets": [
        {
          "publicId": "tkt_a1b2c3d4e5f6a1b2c3d4e5f6",
          "subject": "Cannot connect X account",
          "status": "open",
          "messageCount": 3,
          "createdAt": "2026-03-18T10:00:00Z",
          "updatedAt": "2026-03-18T12:30:00Z"
        }
      ]
    }
    ```
  </Tab>

  <Tab title="401 Unauthenticated">
    ```json theme={null}
    { "error": "unauthenticated", "message": "Authentication required. Provide a valid API key or bearer token." }
    ```

    Missing or invalid API key.
  </Tab>

  <Tab title="429 Rate Limited">
    ```json theme={null}
    { "error": "rate_limit_exceeded", "message": "Too many requests. Try again later.", "retryAfter": 1 }
    ```

    Wait for the `Retry-After` value before listing tickets again.
  </Tab>
</Tabs>

<Info>
  Returns up to 200 tickets ordered by most recently updated. There is no pagination. [Contact support](mailto:support@xquik.com) if you need more.
</Info>

<Note>
  **Related:** [Create Ticket](/api-reference/support/create) to open a new ticket, or [Get Ticket](/api-reference/support/get) to fetch details and message history for a specific ticket.
</Note>
