---
title: "Show a ticket | Mostra un ticket"
method: GET
path: "/student/tickets/{ticketId}"
tags: ["Tickets"]
---

# Show a ticket | Mostra un ticket

`GET /student/tickets/{ticketId}`

## Request

- Base URL: `https://app.didattica.polito.it/api`
- URL: `https://app.didattica.polito.it/api/student/tickets/{ticketId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/polito/apis/polito-students-api/docs/student/tickets/:ticketId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `ticketId` integer, required

## Response `200`

The request has succeeded.

- object
  - `data` Ticket, required
    - `id` number, required
    - `subject` string, required
    - `message` string, required
    - `status` 'open' | 'pending' | 'waiting_user' | 'incoming' | 'resolved' | 'autoresolved' | 'duplicate', required
    - `hasAttachments` boolean, required
    - `needsFeedback` boolean, required
    - `isFromAgent` boolean, required: If true, this ticket was opened by an agent (not by the student)
    - `agentId` number, nullable, required
    - `unreadCount` number, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `replies` TicketReply[], required
      - `id` number, required
      - `message` string, required
      - `isFromAgent` boolean, required: If true, this reply was sent by an agent (not by the student)
      - `agentId` union, required
        - 'AIAgent', nullable
        - number, nullable
      - `needsFeedback` boolean: Indicates whether the user should be prompted to provide feedback for the ticket
      - `isRead` boolean, required
      - `createdAt` string, date-time, required
      - `attachments` TicketAttachment[], required
        - `id` number, required
        - `filename` string, required
        - `mimeType` string, required
        - `sizeInKiloBytes` integer, required
    - `attachments` TicketAttachment[], required
      - `id` number, required
      - `filename` string, required
      - `mimeType` string, required
      - `sizeInKiloBytes` integer, required
    - `providedFeedback` ProvidedFeedback
      - `rating` number, required
      - `createdAt` string, date-time, required
    - `duplicateId` integer, nullable, required

## Other responses

- `400`: The server could not understand the request due to invalid syntax.
- `500`: Server error

## Changes

- **2026-07-14** `4836604c1ce1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/polito/apis/polito-students-api/changes/student/tickets/:ticketId/get.md)

---

[API](https://skmtc.dev/polito/apis/polito-students-api.md) - [All operations](https://skmtc.dev/polito/apis/polito-students-api/llms.txt) - [OpenAPI document](https://skmtc.dev/polito/apis/polito-students-api/revisions/9d87728aaa56?raw)
