Skip to content
Skip to main content
POST
https://api.us.nylas.com/v3/scheduling/sessions

Create a session

Creates a new short-lived session that you can pass to the Scheduling Component to enforce user authentication. Your request must include the ID of an existing Configuration object.

Works with an API key or an IAM API key with the sessions.create permission.

Request body

Create a new scheduling session

configuration_idstring

The ID of the Scheduler Configuration object for the session. You must include either configuration_id or slug, but not both. The Configuration must have requires_session_auth set to true.

Example: "AAAA-BBBB-1111-2222"
slugstring

The slug of the Scheduler Configuration object for the session. You can use slug instead of configuration_id. You must include either configuration_id or slug, but not both.

Example: "my-page-slug"
time_to_liveinteger

The time to live for the session in minutes. The maximum value is 30.

Default: 5
Example: 10
min: 1max: 30

Responses

request_idstring

The request ID.

dataobject
POSThttps://api.us.nylas.com/v3/scheduling/sessions

Find your API key in the Nylas Dashboard under API Keys in your application settings.

Loading editor...

Autocomplete and validation come from this endpoint's request schema.