---
title: "List tickets by type and status"
method: GET
path: "/api/tickets"
tags: ["tickets"]
---

# List tickets by type and status

`GET /api/tickets`

Returns counts and list of tickets. Admin: all. Supervisor: only supervised operators.

## Query parameters

- `type` string, required — Ticket type: ALERT or REPORT
- `status` string — Filter by status: PENDING, CLOSED, SUSPENDED, or all

## Response `200`

Successful Response

- TicketsListResponse — List of tickets with counts by status.
  - `counts` TicketCountsByStatus, required
    - `PENDING` integer, required — Count of PENDING tickets
    - `CLOSED` integer, required — Count of CLOSED tickets
    - `SUSPENDED` integer, required — Count of SUSPENDED tickets
  - `items` TicketListItem[], required — Tickets
    - `id` string, required — Ticket UUID
    - `operator_id` string, required — Operator UUID
    - `operator_name` string, required — Operator display name
    - `operator_role` string, nullable — Operator profession/role
    - `type` string, required — ALERT or REPORT
    - `status` string, required — PENDING, CLOSED, or SUSPENDED
    - `created_at` string, nullable — ISO datetime
    - `updated_at` string, nullable — ISO datetime
    - `closed_at` string, nullable — ISO datetime of closure from tickets_log

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corabea/corabea-api/revisions/13c1bce1bdc4/schema)
