---
title: "GET /timetables/{slug}"
method: GET
path: "/timetables/{slug}"
---

# GET /timetables/{slug}

`GET /timetables/{slug}`

## Path parameters

- `slug` string, required

## Response `200`

Ok

- union
  - Timetable
    - `courses` TimetableCourse[], required
      - `color` string, required — The colour code displayed on the timetable
      - `tutorial` string[] — The selected tutorial section of the course.
      - `lab` string[] — The selected lab section of the course.
      - `lecture` string[] — The selected lecture section of the course.
      - `pid` string, required — The PID of the course.
      - `code` string, required — The code portion of the course.
      - `subject` string, required — Abbreviation of the subject of the course.
    - `term` '202001' | '202005' | '202009' | '202101' | '202105' | '202109' | '202201' | '202205' | '202209' | '202301' | '202305' | '202309' | '202401', required
  - unknown

## Other responses

- `404` — Not found

---

[API](https://skmtc.net/vikelabs/apis/functions.md) · [All operations](https://skmtc.net/vikelabs/apis/functions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vikelabs/functions/versions/5043f9148dcf/schema)
