Endpoint
Description
Retrieves available time slots for a professional on a specific date. This endpoint considers existing reservations and the professional’s work schedule to return only available times. See implementation inserver/src/modules/reservations/reservations.controller.ts:129-143.
Authentication
This endpoint requires Bearer token authentication. Include your access token in the
Authorization header.Query Parameters
The date to check availability in YYYY-MM-DD formatExample:
2026-03-15The unique identifier of the professionalExample:
prof456Response
The response structure depends on the service implementation. Typically returns available time slots for the specified date.Array of available time slots
Example Request
Example Response
Error Responses
Bad Request
Invalid Date Format
Unauthorized
How It Works
- The endpoint retrieves the professional’s settings (work hours, session duration)
- Generates possible time slots based on the work schedule
- Checks existing reservations for the specified date
- Returns only the available time slots
Use Cases
- Display available appointment times to clients
- Build a booking interface with real-time availability
- Prevent double-booking
- Show professionals when they have free slots
Notes
- Date must be in YYYY-MM-DD format
- Availability is calculated based on:
- Professional’s work hours
- Session duration settings
- Existing reservations
- Reservation window (how far in advance bookings are allowed)
- Times are returned in ISO 8601 format with timezone
- To create a reservation, use Create Without Payment or Create With Payment