---
title: "List messages | Elenca messaggi"
method: GET
path: "/messages"
tags: ["Student"]
---

# List messages | Elenca messaggi

`GET /messages`

## Request

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

## Response `200`

The request has succeeded.

- object
  - `data` Message[], required
    - `id` number, required
    - `title` string, required
    - `message` string, nullable, required
    - `type` 'emergency' | 'event' | 'personal' | 'teacher' | 'secretariat' | 'exams' | 'mfa', required
    - `senderId` number, nullable, required
    - `sentAt` string, date-time, required
    - `isRead` boolean, required

## Other responses

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

---

[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)
