---
title: "Show booking slots | Mostra turni prenotabili"
method: GET
path: "/booking-topics/{bookingTopicId}/slots"
tags: ["Bookings"]
---

# Show booking slots | Mostra turni prenotabili

`GET /booking-topics/{bookingTopicId}/slots`

## Request

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

## Path parameters

- `bookingTopicId` string, required

## Query parameters

- `fromDate` string, date
- `toDate` string, date

## Response `200`

The request has succeeded.

- object
  - `data` BookingSlot[], required
    - `id` integer, required
    - `description` string, required
    - `isBooked` boolean, required
    - `canBeBooked` boolean, required
    - `hasSeats` boolean, required
    - `hasSeatSelection` boolean, required
    - `places` integer, required
    - `bookedPlaces` integer, required
    - `feedback` string, required
    - `location` object, required
      - `name` string
      - `description` string
      - `type` string
      - `address` string
    - `startsAt` string, date-time, required
    - `endsAt` string, date-time, required
    - `bookingStartsAt` string, date-time, required
    - `bookingEndsAt` string, date-time, 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-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)
