> ## 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 and PATCH /restaurant/me — Widget Configuration

> Read and update your widget configuration and booking rules via GET and PATCH /api/v1/restaurant/me. Requires a JWT Bearer token on every request.

The restaurant configuration endpoints let you fetch and update your restaurant's widget settings, branding, and booking rules. All requests require a valid JWT Bearer token. See [Authentication](/api/authentication) if you haven't set that up yet.

## GET your configuration

Returns the full configuration object for your restaurant, including all booking rules and widget settings.

### Endpoint

```
GET https://api.lakreme.fr/api/v1/restaurant/me
```

### Example

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.lakreme.fr/api/v1/restaurant/me \
    -H "Authorization: Bearer YOUR_JWT_TOKEN"
  ```
</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_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>

***

## PATCH your configuration

Updates one or more fields on your restaurant configuration. Only include the fields you want to change — all other fields remain untouched.

### Endpoint

```
PATCH https://api.lakreme.fr/api/v1/restaurant/me
```

### Patchable fields

<ParamField body="accent_color" type="string">
  Hex color code for your booking widget's accent color. For example, `"#e85d4a"`. Applied to buttons and interactive elements on your booking page.
</ParamField>

<ParamField body="welcome_message_fr" type="string">
  Welcome message displayed to French-speaking guests. Maximum 200 characters.
</ParamField>

<ParamField body="welcome_message_en" type="string">
  Welcome message displayed to English-speaking guests. Maximum 200 characters.
</ParamField>

<ParamField body="show_on_directory" type="boolean">
  Set to `true` to list your restaurant on the public La Krème directory at lakreme.fr. Set to `false` to make your booking page accessible by direct link only.
</ParamField>

<ParamField body="notification_email" type="string">
  Email address that receives notifications when a new reservation is created or updated.
</ParamField>

<ParamField body="notification_phone" type="string">
  Phone number that receives SMS notifications for new reservations.
</ParamField>

<ParamField body="min_cancel_hours" type="number">
  Minimum hours before the reservation time within which cancellations are no longer accepted. Accepted range: `0` to `48`.
</ParamField>

<ParamField body="advance_booking_days" type="number">
  How many days in advance guests can book. The booking calendar will not show dates beyond this window. Accepted range: `7` to `180`.
</ParamField>

<ParamField body="confirmation_mode" type="string">
  How new reservations are confirmed. `"auto"` confirms immediately on creation. `"manual"` places new reservations in a pending state until you approve them from the dashboard.
</ParamField>

### Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH https://api.lakreme.fr/api/v1/restaurant/me \
    -H "Authorization: Bearer YOUR_JWT_TOKEN" \
    -H "Content-Type: application/json" \
    -d '{
      "accent_color": "#2d6a4f",
      "welcome_message_en": "Book your table online — we can't wait to see you.",
      "confirmation_mode": "manual",
      "advance_booking_days": 60
    }'
  ```
</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": 60,
    "min_cancel_hours": 24,
    "welcome_message_fr": "Bienvenue ! Nous sommes ravis de vous accueillir.",
    "welcome_message_en": "Book your table online — we can't wait to see you.",
    "accent_color": "#2d6a4f",
    "show_branding": true,
    "show_on_directory": true,
    "confirmation_mode": "manual",
    "max_party_size": 8,
    "notification_email": "reservations@lepetitbistro.fr",
    "notification_phone": "+33 6 12 34 56 78"
  }
  ```
</ResponseExample>
