Nylas Docs

The Nylas Developer Hub

Welcome to the Nylas developer hub. You'll find comprehensive guides and documentation to help you start working with Nylas as quickly as possible, as well as support if you get stuck. Let's jump right in!

Developer Guide


This guide covers everything you need to know to authenticate accounts through the Nylas API. We'll walk through several steps to get you set up. By the end, you'll have the knowledge to authenticate user accounts to your application in production!


Looking to authenticate an account for development or testing?

If all you need is an account access token so you can test Nylas or start developing with Nylas, we make it easy to authenticate accounts through the Nylas Dashboard. Take a look at our guide to get your API keys for details.

Nylas integrates with 100% of email, calendar, and contacts providers and we support several authentication types including modern OAuth authentication for Google and Microsoft accounts and secure password authentication for legacy servers.

Furthermore, Nylas supports identity providers (IDP) with single sign on (SSO) capabilities like Okta and OneLogin. If your customers require SSO for their Office365 or GSuite accounts through a 3rd party IDP, as long as you support OAuth authentication for Office365 or GSuite you can authenticate these accounts as you normally would with no additional setup.

To get started supporting OAuth, please see our Office365 OAuth Setup Guide and Google OAuth Setup Guide.


Get your developer API keys

If you haven't already done so, please sign up or log in to the Nylas Dashboard to access your application's client_id before moving forward. See the Get Your Developer API Keys guide if you need help.

The Basics of Authentication with Nylas

Nylas provides two authentication flows to sync email, calendar, and contacts account data: Nylas Hosted Auth and Native Auth.

Hosted Auth

Nylas Hosted Auth is the quickest and easiest way to set up user authentication for your app. Simply redirect users to a Nylas login page and we'll handle the rest including auto-detection of third-party providers and managing token exchanges.

Nylas Hosted Auth Flow

ā†’ Continue with Hosted Authentication

Native Auth

Nylas Native Auth is for developers who want to completely whitelabel the authentication experience to perfectly match your app. With Nylas Native Auth, your users authenticate directly in your app without ever needing to redirect to the Nylas Auth service. This gives you full control over the flow and look & feel of the login experience, and also allows you to control which kinds of providers your application supports. With Native Auth, you're required to set up developer apps with third-party providers like Google and Microsoft and configure your Nylas application to manage authentication credentials with them.

This is significantly more complicated than hosted authentication, so it's only recommended for developers who absolutely need the customization control.

ā†’ Continue with Native Authentication

Updated 3 months ago

What's Next

Get started with the authentication flow of your choice below.

Hosted Authentication
Native Authentication


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.