Creating a reservation through the Widget API is a two-step process. First, you lock the desired slot to hold it temporarily. Then, you confirm the reservation by submitting the guest’s contact details. This two-step flow prevents double-bookings when multiple guests are viewing the same time slot simultaneously.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.
Lock a slot
Send a POST request to reserve a specific date, time, and party size. The API temporarily holds that slot and returns a No authentication is required.
lock_token.Endpoint
Path parameters
The public token for the restaurant.
Request body
The reservation date in
YYYY-MM-DD format.The start time of the slot in
HH:MM format (24-hour clock).The number of guests in the party.
Language for the confirmation message returned in step 2. Accepted values:
fr, en.Response fields
A short-lived token that identifies the locked slot. Pass this token in step 2 to confirm the reservation.
ISO 8601 timestamp indicating when the lock expires. Complete step 2 before this time.
The ID of the table that was assigned to hold this slot.
Confirm the reservation
Submit the guest’s contact details along with the No authentication is required.
lock_token from step 1. If the lock is still valid, the reservation is created and a confirmation code is returned.Endpoint
Path parameters
The public token for the restaurant.
Request body
The lock token returned from step 1. This token must not have expired.
Guest’s first name.
Guest’s last name.
Guest’s email address. La Krème sends the confirmation email here.
Guest’s phone number.
Language for the confirmation email and response message. Accepted values:
fr, en.Response fields
Unique identifier for the newly created reservation.
A short alphanumeric code the guest can use to reference their booking (for example,
ABC-1234).Initial status of the reservation.
confirmed if the restaurant uses automatic confirmation, or pending if manual confirmation is required.Name of the restaurant, included for display in your confirmation UI.
The reservation date in
YYYY-MM-DD format, echoed back.The reservation time in
HH:MM format, echoed back.The party size, echoed back.
A human-readable confirmation message in the requested language, suitable for displaying directly to the guest.