---
title: "Preview provider-backed booking availability"
method: GET
path: "/api/bookings/availability"
tags: ["Bookings"]
---

# Preview provider-backed booking availability

`GET /api/bookings/availability`

## Request

- Base URL: `https://api.setluca.com`
- URL: `https://api.setluca.com/api/bookings/availability`
- Auth: one of:
  - API key in cookie `luca.session_token`
  - API key in header `x-api-key`
  - HTTP bearer

Availability read live from an external booking provider, so you can preview a connection before leads see it. `end` has to be after `start`.

**API key scopes:** `bookings:read`.

## Query parameters

- `provider` 'manual' | 'calendly' | 'cal_com' | 'google_calendar' | 'iclosed' | 'gohighlevel'
- `eventTypeId` string
- `calendarId` string
- `timezone` string
- `start` string, date-time, nullable
- `end` string, date-time, nullable
- `leadId` string, uuid

## Headers

- `Luca-API-Version` '1'

## Response `200`

ok

- BookingAvailabilityResponse
  - `provider` 'manual' | 'calendly' | 'cal_com' | 'google_calendar' | 'iclosed' | 'gohighlevel', required
  - `timezone` string, required
  - `source` 'live_provider' | 'fallback' | 'provider_error'
  - `warnings` string[]
  - `slots` object[], required
    - `id` string, required
    - `provider` 'manual' | 'calendly' | 'cal_com' | 'google_calendar' | 'iclosed' | 'gohighlevel', required
    - `startsAt` string, date-time, required
    - `endsAt` string, date-time, required
    - `displayTimezone` string, required
    - `displayLabel` string, required
    - `bookingUrl` string, uri
    - `directBookingSupported` boolean, required

## Other responses

- `401`: unauthorized
- `429`: rate limited
- `500`: internal error
- `503`: service unavailable

---

[API](https://skmtc.dev/setluca/apis/luca-api.md) · [All operations](https://skmtc.dev/setluca/apis/luca-api/llms.txt) · [OpenAPI document](https://skmtc.dev/setluca/apis/luca-api/revisions/90a200e4100b?raw)
