Skip to content
Skip to main content
POST
/v3/calendars/availability

Get availability

Returns availability information for the specified user or group of users. All participants' email addresses must be associated with valid Nylas grants, and should be unique within their application.

NYLAS API KEYACCESS TOKEN

Request body

availability_rulesobject
duration_minutes*integer

The duration of each time slot, in minutes. The duration must be a multiple of 5 minutes.

Example: 30
end_time*integer

The end of the time slot that Nylas checks availability for, in seconds using the Unix timestamp format. The time must be a multiple of 5 minutes.

Example: 1659733200
interval_minutesinteger

Nylas generates a time slot every interval_minutes (for example, every 30 minutes) and returns only slots when all participants are free. The interval must be a multiple of 5 minutes.

Example: 30
participants*array<object>

A list of participants to get availability information for.

round_tointeger

Nylas rounds each time slot to the nearest round_to value. For example, if a time slot starts at 9:05a.m. and round_to is set to 15, Nylas rounds it to 9:15a.m. The round to value must be a multiple of 5 minutes.

Default: 15
Example: 15
start_time*integer

The beginning of the time slot that Nylas checks availability for, in seconds using the Unix timestamp format. The time must be a multiple of 5 minutes.

Example: 1659366000

Responses

request_idstring

The request ID.

dataobject

The response to a successful request to get availability for a participant.

POSThttps://api.us.nylas.com/v3/calendars/availability

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.