# Callyndar API for custom websites

Build the booking flow of a Callyndar venue into your own HTML/CSS site, with no server and no widget.

With the Callyndar Booking API, a static website (HTML, CSS and a little JavaScript) can do exactly what the Callyndar booking widget does, but in your own design:

- the venue, opening hours and the required privacy and terms links;
- services, variants and prices (salon, barber, clinic) or the party size (restaurant);
- staff members, including "no preference";
- open and closed days, and the free times per day;
- holding a time with a countdown, the guest's details, an optional deposit and the booking itself.

The API deliberately does nothing more: it cannot retrieve, change or cancel bookings (the guest does that through the link in their confirmation email), and it exposes no customer data and no management functions.

## Quickstart in 5 steps

1. **Create a key.** The owner (or anyone with write access to Integrations) creates a publishable key at `/integrations` → "API & own website" (*API & eigen website*): `cal_pk_live_…`.
2. **Add a domain.** Put the exact domain of the site on the key, for example `https://www.salon-voorbeeld.be`. While building, you can turn on "Allow localhost" (*Localhost toestaan*).
3. **Show services.** `GET /api/v1/venue` and `GET /api/v1/services` give you everything you need to draw the first screen.
4. **Pick a time.** `GET /api/v1/calendar` colors the calendar, `GET /api/v1/availability` returns the free times of one day, and `POST /api/v1/holds` holds the chosen time.
5. **Book.** `POST /api/v1/bookings` with the guest's details and a new `Idempotency-Key` (plus a Turnstile token if the key asks for one). Protecting your form against bots is up to you, with your own captcha or Turnstile. Done: the booking appears in the calendar with source "API" and the guest receives their confirmation email.

```js
const res = await fetch('https://www.callyndar.com/api/v1/services', {
  headers: { Authorization: 'Bearer cal_pk_live_YOUR_KEY' },
});
const { services } = await res.json();
```

Want to try it right away? Follow the [5-minute quickstart](/developers/en/quickstart). Then read [Getting started](/developers/en/getting-started) and [The booking flow](/developers/en/booking-flow).

## Example to copy

- [`boeking.html`](/developers/voorbeeld/boeking.html): a single HTML file with the complete flow (services → staff member → day → times → hold with countdown → details (+ Turnstile if the key asks for it) → optional deposit → confirmation). Deliberately minimal CSS with clear `class` names: style it in your own design.
- [`callyndar-api.js`](/developers/voorbeeld/callyndar-api.js): a small `fetch` wrapper (ES module) with error handling, `Idempotency-Key` and a hold timer.

At `/integrations` you can download `boeking.html` with the venue's key already filled in.

## Working with an AI assistant?

Give your assistant one URL: [`/developers/en/llms-full.txt`](/developers/en/llms-full.txt). It contains all the docs, the reference, the rules and the complete example in a single file. Every page also exists as Markdown (for example `/developers/en/booking-flow.md`), and the machine-readable spec is at `/api/v1/openapi.json`.

Copyable prompt:

```text
Build a booking flow with the Callyndar API for this static HTML/CSS site.
First read https://www.callyndar.com/developers/en/llms-full.txt and follow the "Rules for AI assistants" in it.
Use only endpoints and fields from that documentation.
Publishable key: cal_pk_live_YOUR_KEY
API base: https://www.callyndar.com/api/v1
Style: use the existing CSS and layout of this site.
```

## All pages

- [5-minute quickstart](/developers/en/quickstart): key → venue → availability → hold → booking with curl
- [Getting started](/developers/en/getting-started): key, domains, bot protection, first call
- [The booking flow](/developers/en/booking-flow): salon and restaurant, step by step
- [Deposits](/developers/en/deposits): Stripe Payment Element and recovery after a redirect
- [Reference](/developers/en/reference): all endpoints, fields and errors
- [Errors and limits](/developers/en/errors-and-limits): error codes, rate limits and idempotency
- [Security](/developers/en/security): what may and may not go in your HTML
- [Testing](/developers/en/testing): local development and test cards
- [Changelog](/developers/en/changelog)
