create_reservation
[Requires API key with the matching scope] Create a reservation. Requires an API key with the reservations:write scope; the booking is bound to the key tenant and the resource must belong to it. Provide either check_in_date+check_out_date (overnight/rental) OR start_at+end_at ISO datetimes (time-slot).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Free-text notes (max 1000 chars, optional). | |
| end_at | No | Slot end ISO datetime. | |
| locale | No | Locale ru/en/kk (optional, default ru). | |
| start_at | No | Slot start ISO datetime (alternative to check_in_date). | |
| guest_name | Yes | Guest full name (2-200 chars). | |
| guest_email | No | Guest email (optional). | |
| guest_phone | Yes | Guest phone, 6-15 digits with optional +. | |
| resource_id | Yes | Resource UUID to book. | |
| check_in_date | No | Rental check-in date YYYY-MM-DD. | |
| check_out_date | No | Rental check-out date YYYY-MM-DD. | |
| idempotency_key | No | Optional client-generated key (e.g. a UUID) to make retries safe. Repeating the call with the same key returns the original reservation instead of creating a duplicate (24h window). |