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

## Changes

> 17 revisions in range; 1 could not be searched.

- **2023-03-05** `28e93e6f472a` — 1 warning
  - added the new `202305` enum value to the `anyOf[#/components/schemas/Timetable]/term` response property for the response status `200`
- **2022-05-16** `f757cb07724b` — 2 warning
  - added the new `202209` enum value to the `anyOf[#/components/schemas/Timetable]/term` response property for the response status `200`
  - added the new `202301` enum value to the `anyOf[#/components/schemas/Timetable]/term` response property for the response status `200`
- **2022-03-01** `b1f53c898f30` — 1 warning
  - added the new `202205` enum value to the `anyOf[#/components/schemas/Timetable]/term` response property for the response status `200`
- **2021-10-06** `ff44567e61c9` — 1 info
  - endpoint added
- **2021-02-24** `7d643cfc610b` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/vikelabs/apis/functions/changes/timetables/:slug/get.md)

---

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