---
title: "List courses | Elenca corsi"
method: GET
path: "/v2/courses"
tags: ["Courses"]
---

# List courses | Elenca corsi

`GET /v2/courses`

## Request

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

## Response `200`

The request has succeeded.

- object
  - `data` CourseOverview[], required
    - `id` integer, nullable, required: The identifier for the current instance of this course. If null this is not a teaching (such as thesis), it won't have a course page
    - `shortcode` string, required
    - `name` string, required
    - `teachingPeriod` string, required: The semester(s) this course belongs to
    - `teacherId` integer, nullable, required
    - `teacherName` string, nullable, required
    - `isOverBooking` boolean, required
    - `category` string, required: Defines the course type and whether the course page should be opened when no instructor is assigned to the course.
    - `enrollmentRole` 'student' | 'viewer' | 'teacher' | 'collaborator', required
    - `year` string, required
    - `style` Symbol, required
      - `label` string
      - `color` union
        - string
        - ThemeColors
          - `light` string, required: Color used in light mode.
          - `dark` string, required: Color used in dark mode.
      - `icon` string

## Other responses

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

## Changes

- **2026-10-25** `c29c33e75373`: 2 info
  - added the required property `data/items/allOf[#/components/schemas/CourseModuleOverview]/allOf[#/components/schemas/CourseModule]/style` to the response with the `200` status
  - added the required property `data/items/modules/items/allOf[#/components/schemas/CourseModule]/style` to the response with the `200` status
- **2026-09-22** `7fbc3307705f`: 4 info
  - added the required property `data/items/allOf[#/components/schemas/CourseModuleOverview]/allOf[#/components/schemas/CourseModule]/category` to the response with the `200` status
  - added the required property `data/items/allOf[#/components/schemas/CourseModuleOverview]/previousEditions/items/name` to the response with the `200` status
  - added the required property `data/items/modules/items/allOf[#/components/schemas/CourseModule]/category` to the response with the `200` status
  - added the required property `data/items/modules/items/previousEditions/items/name` to the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/polito/apis/polito-faculty-api/changes/v2/courses/get.md)

---

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