Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.koulis.ai/llms.txt

Use this file to discover all available pages before exploring further.

The widget config endpoint returns all the public settings for a restaurant. Use it to initialize your custom booking UI with the correct branding, welcome message, and booking constraints before showing any availability to your guest.

Endpoint

GET https://api.lakreme.fr/api/v1/widget/{publicToken}/config
No authentication is required. The {publicToken} in the path identifies the restaurant.

Path parameters

publicToken
string
required
The public token for the restaurant. Found in your La Krème dashboard under Widget → Settings.

Query parameters

lang
string
default:"fr"
Language code for the welcome_message field. Accepted values: fr, en. Defaults to fr if omitted.

Response fields

restaurant_id
string
required
Unique identifier for the restaurant.
public_token
string
The public token for this restaurant, echoed back in the response.
is_active
boolean
required
Whether the booking widget is currently active and accepting reservations.
restaurant_name
string
required
Display name of the restaurant.
restaurant_address
string
Street address of the restaurant. May be omitted if not configured.
restaurant_phone
string
Contact phone number for the restaurant. May be omitted if not configured.
advance_booking_days
number
required
How far in advance (in days) guests can book. The calendar will not show dates beyond this window.
min_cancel_hours
number
required
Minimum number of hours before the reservation time within which cancellations are no longer accepted.
welcome_message
string
Localized welcome message displayed at the top of the booking page. The language is determined by the lang query parameter.
welcome_message_fr
string
Welcome message in French (always returned, regardless of lang).
welcome_message_en
string
Welcome message in English (always returned, regardless of lang).
accent_color
string
required
Hex color code for the restaurant’s accent color (for example, #e85d4a). Use this to style buttons and highlights in your booking UI.
show_branding
boolean
required
Whether the La Krème branding should appear at the bottom of the booking widget.
show_on_directory
boolean
required
Whether the restaurant is listed on the public La Krème directory.
confirmation_mode
string
required
How reservations are confirmed. auto means the reservation is confirmed immediately on creation. manual means the restaurant operator must confirm each reservation from the dashboard.
max_party_size
number
required
The maximum number of guests per reservation. The party size selector in your booking UI should not exceed this value.
notification_email
string
Email address where the restaurant receives booking notifications. Not typically needed for widget rendering.
notification_phone
string
Phone number where the restaurant receives booking notifications. Not typically needed for widget rendering.

Example

curl "https://api.lakreme.fr/api/v1/widget/tok_abc123/config?lang=en"
{
  "restaurant_id": "rest_789xyz",
  "public_token": "tok_abc123",
  "is_active": true,
  "restaurant_name": "Le Petit Bistro",
  "restaurant_address": "12 Rue de Rivoli, 75001 Paris",
  "restaurant_phone": "+33 1 42 60 00 00",
  "advance_booking_days": 30,
  "min_cancel_hours": 24,
  "welcome_message": "Welcome! We look forward to having you.",
  "welcome_message_fr": "Bienvenue ! Nous sommes ravis de vous accueillir.",
  "welcome_message_en": "Welcome! We look forward to having you.",
  "accent_color": "#e85d4a",
  "show_branding": true,
  "show_on_directory": true,
  "confirmation_mode": "auto",
  "max_party_size": 8,
  "notification_email": "[email protected]",
  "notification_phone": "+33 6 12 34 56 78"
}