Check Booking Availability
Checks whether a resource is available for booking at the specified time. Returns availability status and any error codes if the slot is unavailable.
Authentication
Requires a valid customer bearer token.
Request Body
The resource to check availability for.
Desired start time in ISO 8601 format.
Desired end time in ISO 8601 format.
Response
true if the resource is available for the requested time slot.
Error code explaining why the slot is unavailable (empty when available).
Customer ID associated with the availability check.
Booking ID if checking availability for an existing booking update.
Examples
Check availability
POST /api/public/bookings/available
Authorization: Bearer {token}
Content-Type: application/json
{
"ResourceId": 88,
"FromTime": "2026-04-01T09:00:00Z",
"ToTime": "2026-04-01T10:00:00Z"
}
{
"Available": true,
"ErrorCode": "",
"CoworkerId": 42,
"BookingId": null
}
TypeScript Integration
import endpoints from '@/api/endpoints'
const { resource: availability } = useTypedData(httpClient, endpoints.bookings.isAvailable())