Widgets

Zenchef Booking Widget (query param)

get
/zenchef-widget

Returns an embeddable JavaScript widget that adds a Zenchef restaurant booking button to a webpage.

This endpoint is public — no authentication required.

The widget displays a floating booking button that opens a Zenchef booking iframe modal, along with a WhatsApp contact button. Embed using a <script src="..."> tag.

Phone number can be provided via the phone query parameter.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Query parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
restaurantIdstringRequired

Zenchef restaurant ID for booking widget

Example: 123456
positionstring · enumOptional

Widget button position on the page

Default: footerPossible values:
buttonTextstringOptional

Text to display on the booking button

Default: Book a Table
primaryColorstringOptional

Primary color for the widget (hex code)

Default: #a47e1fExample: #a47e1f
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional

Self-executing JavaScript function that injects the booking widget

get
/zenchef-widget

Zenchef Booking Widget (phone in path)

get
/zenchef-widget/{phone}

Returns an embeddable JavaScript widget with phone number provided via the URL path.

This endpoint is public — no authentication required. Embed using a <script src="/v1/zenchef-widget/33612345678?restaurantId=123456"> tag.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Path parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
Query parameters
restaurantIdstringRequired

Zenchef restaurant ID for booking widget

Example: 123456
positionstring · enumOptional

Widget button position on the page

Default: footerPossible values:
buttonTextstringOptional

Text to display on the booking button

Default: Book a Table
primaryColorstringOptional

Primary color for the widget (hex code)

Default: #a47e1f
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional
get
/zenchef-widget/{phone}

Zenchef Booking Widget (phone + pre-filled message)

get
/zenchef-widget/{phone}/{message}

Returns an embeddable JavaScript widget with phone number and pre-filled WhatsApp message in the URL path.

This endpoint is public — no authentication required. The message path segment is passed as a pre-filled WhatsApp message when the user clicks the WhatsApp button.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Path parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
messagestringRequired

Pre-filled WhatsApp message text

Example: Hello, I'd like to make a reservation
Query parameters
restaurantIdstringRequired

Zenchef restaurant ID for booking widget

Example: 123456
positionstring · enumOptionalDefault: footerPossible values:
buttonTextstringOptionalDefault: Book a Table
primaryColorstringOptionalDefault: #a47e1f
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional
get
/zenchef-widget/{phone}/{message}

Formitable Booking Widget (query param)

get
/formitable-widget

Returns an embeddable JavaScript widget that adds a Formitable restaurant booking button to a webpage.

This endpoint is public — no authentication required.

The widget displays a floating booking button that opens a Formitable booking iframe modal, along with a WhatsApp contact button. Embed using a <script src="..."> tag.

Phone number can be provided via the phone query parameter.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Query parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
restaurantIdstringRequired

Formitable restaurant ID for booking widget

Example: abc123
positionstring · enumOptional

Widget button position on the page

Default: footerPossible values:
buttonTextstringOptional

Text to display on the booking button

Default: Book a Table
primaryColorstringOptional

Primary color for the widget (hex code). Default is Formitable orange.

Default: #FF3800Example: #FF3800
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional

Self-executing JavaScript function that injects the booking widget

get
/formitable-widget

Formitable Booking Widget (phone in path)

get
/formitable-widget/{phone}

Returns an embeddable JavaScript widget with phone number provided via the URL path.

This endpoint is public — no authentication required. Embed using a <script src="/v1/formitable-widget/33612345678?restaurantId=abc123"> tag.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Path parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
Query parameters
restaurantIdstringRequired

Formitable restaurant ID for booking widget

Example: abc123
positionstring · enumOptional

Widget button position on the page

Default: footerPossible values:
buttonTextstringOptional

Text to display on the booking button

Default: Book a Table
primaryColorstringOptional

Primary color for the widget (hex code)

Default: #FF3800
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional
get
/formitable-widget/{phone}

Formitable Booking Widget (phone + pre-filled message)

get
/formitable-widget/{phone}/{message}

Returns an embeddable JavaScript widget with phone number and pre-filled WhatsApp message in the URL path.

This endpoint is public — no authentication required. The message path segment is passed as a pre-filled WhatsApp message when the user clicks the WhatsApp button.

Authorizations
apiKeystringRequired

Your DM Champ API key. Obtain from Settings → API Keys.

Path parameters
phonestringRequired

WhatsApp phone number (digits only, no + or spaces)

Example: 33612345678
messagestringRequired

Pre-filled WhatsApp message text

Example: Hello, I'd like to make a reservation
Query parameters
restaurantIdstringRequired

Formitable restaurant ID for booking widget

Example: abc123
positionstring · enumOptionalDefault: footerPossible values:
buttonTextstringOptionalDefault: Book a Table
primaryColorstringOptionalDefault: #FF3800
Responses
chevron-right
200

JavaScript widget code

application/javascript
stringOptional
get
/formitable-widget/{phone}/{message}

Last updated

Was this helpful?