> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Booking Availability

> Checks whether a resource is available for a specific time slot.

# 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

<ParamField body="ResourceId" type="number" required>
  The resource to check availability for.
</ParamField>

<ParamField body="FromTime" type="string" required>
  Desired start time in ISO 8601 format.
</ParamField>

<ParamField body="ToTime" type="string" required>
  Desired end time in ISO 8601 format.
</ParamField>

## Response

<ResponseField name="Available" type="boolean" required>
  `true` if the resource is available for the requested time slot.
</ResponseField>

<ResponseField name="ErrorCode" type="string">
  Error code explaining why the slot is unavailable (empty when available).
</ResponseField>

<ResponseField name="CoworkerId" type="number">
  Customer ID associated with the availability check.
</ResponseField>

<ResponseField name="BookingId" type="number">
  Booking ID if checking availability for an existing booking update.
</ResponseField>

## Examples

### Check availability

```http theme={null}
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"
}
```

```json theme={null}
{
  "Available": true,
  "ErrorCode": "",
  "CoworkerId": 42,
  "BookingId": null
}
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'

const { resource: availability } = useTypedData(httpClient, endpoints.bookings.isAvailable())
```
