Skip to content
Skip to main content

Quickstart: Calendar and Events APIs

The Nylas Calendar API lets you schedule meetings with participants, check availability across calendars, and RSVP to events — across Google Calendar, Outlook, Exchange, and iCloud through a single API. Instead of building separate integrations for each provider, you write your code once and Nylas handles the differences.

This quickstart walks you through the things developers actually build with the Calendar API: scheduling meetings, finding available times, and responding to invites.

You need two things from Nylas to make API calls:

  1. An API key — authenticates your application. You’ll pass it as a Bearer token.
  2. A grant ID — identifies which user’s calendar to act on. You get one when you connect an account to Nylas.

If you don’t have these yet, follow one of the setup guides first:

Then install the Nylas SDK for your language:

For Java and Kotlin, see the Kotlin/Java SDK setup guide.

The most common use case: create an event on a user’s calendar and invite participants. Nylas sends the invitations automatically. Replace <NYLAS_GRANT_ID>, <NYLAS_API_KEY>, and <CALENDAR_ID> with your values.

The event appears on the user’s calendar and invitations go out to participants immediately. That same code works whether the user is on Google Calendar, Outlook, or any other supported provider.

Before scheduling, find times when participants are free. The availability endpoint checks across multiple users’ calendars and returns open time slots.

This is the foundation for building scheduling features — find open slots, present them to the user, then create an event in one of the available windows. For a complete scheduling solution with a pre-built UI, see Nylas Scheduler.

Respond to a calendar invitation on behalf of a user. Pass the event ID and calendar ID along with the RSVP status (yes, no, or maybe).

Each user can have multiple calendars (work, personal, shared team calendars). Use this to find the right calendar_id for the operations above.