---
title: "Get the current user's courses."
method: GET
path: "/user/courses"
tags: ["User"]
---

# Get the current user's courses.

`GET /user/courses`

Returns all courses in which the current user is enrolled in, optionally filtered by year, term, limit and skip.

## Query parameters

- `year` integer
- `term` string
- `limit` integer
- `skip` integer

## Response `200`

A successful response.

- ProtobufGetUserCoursesResponse
  - `courses` ProtobufCourse[]
    - `id` integer
    - `name` string
    - `slug` string
    - `semester` ProtobufSemester
      - `teachingTerm` string
      - `year` integer
    - `TUMOnlineIdentifier` string
    - `VODEnabled` boolean
    - `downloadsEnabled` boolean
    - `chatEnabled` boolean
    - `anonymousChatEnabled` boolean
    - `moderatedChatEnabled` boolean
    - `vodChatEnabled` boolean
    - `streams` ProtobufStream[]
      - `id` string, uint64
      - `name` string
      - `description` string
      - `courseID` integer
      - `start` string, date-time
      - `end` string, date-time
      - `chatEnabled` boolean
      - `roomName` string
      - `roomCode` string
      - `eventTypeName` string
      - `TUMOnlineEventID` integer
      - `seriesIdentifier` string
      - `playlistUrl` string
      - `playlistUrlPRES` string
      - `playlistUrlCAM` string
      - `liveNow` boolean
      - `liveNowTimestamp` string, date-time
      - `recording` boolean
      - `premiere` boolean
      - `ended` boolean
      - `vodViews` integer
      - `startOffset` integer
      - `endOffset` integer
      - `duration` integer
      - `downloads` ProtobufDownload[]
        - `friendlyName` string
        - `downloadURL` string
      - `isPlanned` boolean
      - `isComingUp` boolean
      - `HLSUrl` string
    - `cameraPresetPreferences` string
    - `sourcePreferences` string
    - `lastRecordingID` integer
    - `nextLectureID` integer

## Other responses

- `401` — **[16 UNAUTHENTICATED]** *Could not authorize the operation.* **Returned in case of:** - Missing JWT cookie header - Crypto/rsa: verification error (invalid jwt) - JWT cookie not found

---

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