Create and manage Nylas v3 grants (OAuth connections) to authorize calendar access for a user

domain: developer.nylas.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create at least one connector in the Nylas dashboard/API storing the provider app credentials (Google, Microsoft, etc.) before any grant can be created.
  2. For Hosted Authentication, redirect the user to /v3/connect/auth with your Nylas client_id, a callback redirect_uri, provider (e.g. "google"), and a state value, so Nylas handles the provider's OAuth consent screen.
  3. On callback, exchange the returned code for a grant via /v3/connect/token using your API key; store the returned grant_id for that user.
  4. Include the grant_id in the path of every subsequent data call, e.g. GET /v3/grants/{grant_id}/events, since Nylas scopes all reads/writes to a specific grant.
  5. For server-to-server integrations without a hosted consent screen, use Bring Your Own Authentication via /v3/connect/custom with your own OAuth tokens instead of the hosted flow.

Known gotchas

Related routes

Use Cronofy Enterprise Connect service accounts to access an entire organization's calendars without per-user OAuth
docs.cronofy.com · 5 steps · unrated
Share a Google Calendar and manage per-user/group/domain access with the Calendar ACL API
developers.google.com · 5 steps · unrated
Connect a user's Google or Outlook calendar to Cal.com via API v2 and verify the connection
cal.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans