Calendar
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.
post/v3/calendars/availability
Request body
Example request
{
"Collective request": {
"participants": [
{
"email": "nyla@example.com",
"calendar_ids": [
"primary"
],
"open_hours": [
{
"days": [
0,
1,
2
],
"timezone": "America/Toronto",
"start": "9:00",
"end": "17:00"
}
]
},
{
"email": "leyah@example.com"
}
],
"start_time": 1659366000,
"end_time": 1659733200,
"interval_minutes": 30,
"duration_minutes": 30,
"round_to": 15,
"availability_rules": {
"availability_method": "collective",
"buffer": {
"before": 15,
"after": 15
}
}
}
}Response
Return availability
Example response
{
"request_id": "5fa64c92-e840-4357-86b9-2aa364d35b88"
}