---
title: "Create a booking for a lead"
method: POST
path: "/api/bookings"
tags: ["Bookings"]
---

# Create a booking for a lead

`POST /api/bookings`

## Request

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

Books a call for a lead you already have, against one of the workspace's active booking types. Both have to exist first. Emits `booking.created`.

**API key scopes:** `bookings:write`. You also need an `Idempotency-Key` header.

## Headers

- `Luca-API-Version` '1'

## Request body

- BookingCreate
  - `leadId` string, uuid, required
  - `slotAt` string, date-time, nullable, required
  - `endAt` string, date-time, nullable
  - `bookingTypeId` string, uuid, nullable
  - `status` 'held' | 'confirmed' | 'cancelled' | 'completed' | 'no_show'
  - `provider` 'manual' | 'calendly' | 'cal_com' | 'google_calendar' | 'iclosed' | 'gohighlevel'
  - `providerEventId` string, nullable
  - `providerInviteeId` string, nullable
  - `providerVersion` string, nullable
  - `timezone` string
  - `locationType` 'google_meet' | 'phone' | 'in_person' | 'custom' | 'null', nullable
  - `locationDetails` object
  - `rawPayload` object
  - `calendlyEventId` string, nullable
  - `calendlyInviteeId` string, nullable

## Response `200`

ok

- BookingResponse
  - `booking` object, required
    - `id` string, uuid, required
    - `coachId` string, uuid, required
    - `leadId` string, uuid, required
    - `slotAt` string, required
    - `endAt` string, nullable, required
    - `bookingTypeId` string, uuid, nullable, required
    - `status` 'held' | 'confirmed' | 'cancelled' | 'completed' | 'no_show', required
    - `provider` 'manual' | 'calendly' | 'cal_com' | 'google_calendar' | 'iclosed' | 'gohighlevel', required
    - `providerEventId` string, nullable, required
    - `providerInviteeId` string, nullable, required
    - `providerVersion` string, nullable, required
    - `timezone` string, required
    - `locationType` 'google_meet' | 'phone' | 'in_person' | 'custom' | 'null', nullable, required
    - `locationDetails` object, required: Opaque JSON object
    - `rawPayload` object, required: Opaque JSON object
    - `calendlyEventId` string, nullable, required
    - `calendlyInviteeId` string, nullable, required
    - `reconciliationState` 'healthy' | 'attention_required' | 'conflict' | 'resolving', required
    - `outcomeSource` string, nullable, required
    - `outcomeObservedAt` string, nullable, required
    - `rescheduledFromBookingId` string, uuid, nullable, required
    - `cancelledAt` string, nullable, required
    - `cancellationReason` string, nullable, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `operation` object
    - `state` 'confirmed' | 'pending_provider', required
    - `providerSyncId` string, uuid, nullable, required

## Other responses

- `400`: bad request
- `401`: unauthorized
- `404`: not found
- `409`: conflict
- `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)
