Skip to content

Nylas-hosted Scheduling Pages

Nylas automatically generates a hosted Scheduling Page when you create a public Configuration with a slug. Hosted Scheduling Pages provide the scheduling UI and booking flow without you needing to embed components in your project.

When you create a public Configuration with a slug, Nylas automatically generates a hosted Scheduling Page at book.nylas.com/<SLUG>. This page handles…

  • Date and time selection for booking events.
  • Collecting guest information using booking forms.
  • Displaying booking confirmation information and sending confirmation messages.
  • Optimizing the Scheduling Page for mobile devices.
  • Automatic language detection and localization.

If you’re using a hosted Scheduling Page in your project, you need to redirect your users to it. The following example redirects the user to the Scheduling Page after they click a button.

function ScheduleButton() {
const handleClick = () => {
window.open('https://book.nylas.com/<SLUG>', '_blank');
};
return (
<button onClick={handleClick}>
Schedule a Meeting
</button>
);
}

Add hosted Scheduling Page to your project

Section titled “Add hosted Scheduling Page to your project”

If you don’t want to embed the Scheduler Editor or Scheduling components in your project, but you still want to let users schedule bookings in your application, you can include a hosted Scheduling Page as an iframe.

<iframe
src="https://book.nylas.com/<SLUG>"
width="100%"
height="600px"
frameborder="0"
title="Schedule a meeting">
</iframe>

If you want to receive real-time updates when bookings are made using your Scheduling Page, you can subscribe to booking.created webhook notifications.

You need to have a functioning webhook endpoint to receive webhook notifications. For more information, see Using webhooks with Nylas.

curl --request POST \
--url "https://api.us.nylas.com/v3/webhooks" \
--header 'Accept: application/json, application/gzip' \
--header 'Authorization: Bearer <NYLAS_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"triggers": ["booking.created"],
"url": "<WEBHOOK_URL>"
}'

You can specify certain settings to customize your hosted Scheduling Pages.

Hosted Scheduling Pages support URL query parameters to pre-fill booking form fields. This lets you pass known values (for example, the guest’s name or email address) directly in the link to your Scheduling Page. Hosted Scheduling Pages support the following query parameters:

  • name: The guest’s name.
  • email: The guest’s email address.
  • Any keys in additional_fields that you defined in your Configuration.

Query parameters persist on rescheduling, cancellation, and booking confirmation pages.

For example, the following URL pre-fills the guest’s name, email address, and an additional field (patient_id):

https://book.nylas.com/us/<NYLAS_CLIENT_ID>/meet-nylas/?name=Leyah&email=[email protected]&patient_id=a1234

You can add __readonly to any query parameter in the URL to make a pre-filled field read-only (for example, ?name__readonly=Leyah).

Whitelabeled hosted Scheduler is available for Contract plans only.

You can style Nylas-hosted Scheduling Pages to match your brand’s aesthetic. Nylas supports the following pre-defined keys in the appearance object:

  • color: The primary color of the Scheduling Page.
  • company_logo_url: A URL that points to the company logo. If not set, the Scheduling Page displays the Nylas logo.
  • submit_button_label: Custom text for the Submit button. If not set, the button uses the default “Submit” label.
  • thank_you_message: A custom “thank you” message to display on the Confirmation page.

The following examples add the company logo URL, primary color, submit button label, and “thank you” message options to the Scheduler Editor.