> ## 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.

# GET /widget/{token}/config — Fetch Widget Settings

> GET /api/v1/widget/{publicToken}/config — returns restaurant name, accent color, booking rules, and max party size. No authentication required.

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

<ParamField path="publicToken" type="string" required>
  The public token for the restaurant. Found in your La Krème dashboard under **Widget → Settings**.
</ParamField>

## Query parameters

<ParamField query="lang" type="string" default="fr">
  Language code for the `welcome_message` field. Accepted values: `fr`, `en`. Defaults to `fr` if omitted.
</ParamField>

## Response fields

<ResponseField name="restaurant_id" type="string" required>
  Unique identifier for the restaurant.
</ResponseField>

<ResponseField name="public_token" type="string">
  The public token for this restaurant, echoed back in the response.
</ResponseField>

<ResponseField name="is_active" type="boolean" required>
  Whether the booking widget is currently active and accepting reservations.
</ResponseField>

<ResponseField name="restaurant_name" type="string" required>
  Display name of the restaurant.
</ResponseField>

<ResponseField name="restaurant_address" type="string">
  Street address of the restaurant. May be omitted if not configured.
</ResponseField>

<ResponseField name="restaurant_phone" type="string">
  Contact phone number for the restaurant. May be omitted if not configured.
</ResponseField>

<ResponseField name="advance_booking_days" type="number" required>
  How far in advance (in days) guests can book. The calendar will not show dates beyond this window.
</ResponseField>

<ResponseField name="min_cancel_hours" type="number" required>
  Minimum number of hours before the reservation time within which cancellations are no longer accepted.
</ResponseField>

<ResponseField name="welcome_message" type="string">
  Localized welcome message displayed at the top of the booking page. The language is determined by the `lang` query parameter.
</ResponseField>

<ResponseField name="welcome_message_fr" type="string">
  Welcome message in French (always returned, regardless of `lang`).
</ResponseField>

<ResponseField name="welcome_message_en" type="string">
  Welcome message in English (always returned, regardless of `lang`).
</ResponseField>

<ResponseField name="accent_color" type="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.
</ResponseField>

<ResponseField name="show_branding" type="boolean" required>
  Whether the La Krème branding should appear at the bottom of the booking widget.
</ResponseField>

<ResponseField name="show_on_directory" type="boolean" required>
  Whether the restaurant is listed on the public La Krème directory.
</ResponseField>

<ResponseField name="confirmation_mode" type="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.
</ResponseField>

<ResponseField name="max_party_size" type="number" required>
  The maximum number of guests per reservation. The party size selector in your booking UI should not exceed this value.
</ResponseField>

<ResponseField name="notification_email" type="string">
  Email address where the restaurant receives booking notifications. Not typically needed for widget rendering.
</ResponseField>

<ResponseField name="notification_phone" type="string">
  Phone number where the restaurant receives booking notifications. Not typically needed for widget rendering.
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.lakreme.fr/api/v1/widget/tok_abc123/config?lang=en"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "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": "reservations@lepetitbistro.fr",
    "notification_phone": "+33 6 12 34 56 78"
  }
  ```
</ResponseExample>
