# List support tickets

`GET https://console.advinservers.com/api/v1/client/tickets`

### Overview

Lists account support tickets, newest first, across all teams. There are no filters or pagination; filter the returned list locally. `statuses` and `priorities` list possible values. `search_truncated` is true if more tickets exist than were returned, and `search_scan_limit` is the number checked. Ticket messages are omitted; fetch an individual ticket to read its conversation.

### Permissions

Requires the account permission `tickets.read` (View support tickets).

## Authorization

Send `Authorization: Bearer <token>` with the request. Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.

## Response 200

The record, as a JSON object. There is no envelope.

- `statuses` (string[], required): The value of `statuses`.
- `priorities` (string[], required): The value of `priorities`.
- `search_truncated` (boolean, required): The value of `search_truncated`.
- `search_scan_limit` (integer, required): The value of `search_scan_limit`.
- `items` (object[], required): The tickets, newest first. The `messages` field is left out here.
  - `id` (integer, required): The id ID.
  - `number` (string, required): The ticket reference sent by email, such as #ABC-123456. Use the numeric ticket ID for API requests.
  - `subject` (string, required): The subject line for the message.
  - `status` (string, required): The value of `status`.
  - `priority` (string | null, required): The value of `priority`.
  - `department` (string | null, required): The value of `department`.
  - `opened_at` (string | null, required): The date and time for opened at, in UTC.
  - `last_replied_at` (string | null, required): The date and time for last replied at, in UTC.
  - `awaiting_customer` (boolean, required): Whether the customer is the one being waited on.
  - `closed` (boolean, required): The value of `closed`.
  - `service` (string | null, required): The value of `service`.
  - `server` (object | null, required): The machine it is about, where the service names one. Enough of it to draw the badge the customer recognises and to link to it.
    - `id` (string, required): The id ID.
    - `uuid_short` (string, required): The value of `uuid_short`.
    - `name` (string, required): The name shown to customers.
    - `hostname` (string, required): The fully qualified hostname.
    - `template_name` (string | null, required): The value of `template_name`.
    - `template_icon_url` (string | null, required): The value of `template_icon_url`.
    - `windows` (boolean, required): The value of `windows`.
  - `messages` (object[] | null): The conversation, oldest first, and only where it was asked for.
    - `id` (integer, required): The id ID.
    - `author` (string | null, required): Staff are shown by whatever name the installation puts on their replies, which is often a role rather than a person and is the name the customer already sees in the ticket emails.
    - `is_staff` (boolean, required): Whether the resource is staff.
    - `is_assistant` (boolean, required): A staff reply written by the AI assistant rather than a person.
    - `posted_at` (string | null, required): The date and time for posted at, in UTC.
    - `body` (string, required): The message body.
    - `attachments` (object[], required): The value of `attachments`.
      - `index` (integer, required): The value of `index`.
      - `filename` (string, required): The value of `filename`.
      - `url` (string, required): The complete URL.

```json
{
  "statuses": [
    "Open",
    "Answered",
    "Customer-Reply",
    "In Progress",
    "On Hold",
    "Closed"
  ],
  "priorities": [
    "Low",
    "Medium",
    "High"
  ],
  "search_truncated": false,
  "search_scan_limit": 500,
  "items": [
    {
      "id": 5316,
      "number": "NQX-482913",
      "subject": "Packet loss on lambda-core",
      "status": "Open",
      "priority": "Medium",
      "department": "Technical Support",
      "opened_at": "2026-09-14T09:12:44+00:00",
      "last_replied_at": "2026-09-14T09:12:44+00:00",
      "awaiting_customer": false,
      "closed": false,
      "service": null,
      "server": {
        "id": "ecc6f4f1-c89b-4dce-a20b-a330641c5b0b",
        "uuid_short": "ecc6f4f1",
        "name": "lambda-core",
        "hostname": "lambda-core.blackmesa.example.com",
        "template_name": "Ubuntu 24.04",
        "template_icon_url": "/assets/icons/ubuntu.png",
        "windows": false
      }
    }
  ]
}
```

## Errors

- `400`: Support tickets are unavailable because billing is not configured.
- `401`: The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- `403`: Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- `429`: Too many requests. The `Retry-After` header says how many seconds to wait. Limits are per account, so several keys on one account share them.

## Example request

```bash
curl --request GET \
  --url 'https://console.advinservers.com/api/v1/client/tickets' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json'
```
