---
title: "Book a room"
method: POST
path: "/book"
---

# Book a room

`POST /book`

Books a room in a specified hotel.

## Request body

- BookingRequest
  - `hotel_id` integer, required
  - `guest_name` string, required
  - `check_in_date` string, date, required
  - `check_out_date` string, date, required
  - `num_rooms` integer, required

## Response `200`

Booking successful.

- object
  - `error` boolean
  - `data` object
    - `booking_id` string
  - `message` string

## Other responses

- `400` — Bad request. Missing information or invalid booking details.
- `401` — Unauthorized. Invalid or expired token.

---

[API](https://skmtc.dev/google/apis/hotel-booker-api.md) · [All operations](https://skmtc.dev/google/apis/hotel-booker-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/hotel-booker-api/revisions/0d5ee895a4ed/schema)
