Skip to main content
POST
/
api
/
public
/
bookings
/
available
{
  "Available": true,
  "ErrorCode": "<string>",
  "CoworkerId": 123,
  "BookingId": 123
}

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

ResourceId
number
required
The resource to check availability for.
FromTime
string
required
Desired start time in ISO 8601 format.
ToTime
string
required
Desired end time in ISO 8601 format.

Response

Available
boolean
required
true if the resource is available for the requested time slot.
ErrorCode
string
Error code explaining why the slot is unavailable (empty when available).
CoworkerId
number
Customer ID associated with the availability check.
BookingId
number
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())