Skip to content

Quickstart: Email API

The Nylas Email API offers everything you need to manage email messages, threads, and attachments from your project. This guide will walk you through setting up your Nylas application and making your first requests to the Email API.

Before you start, you need to have a Nylas account. If you don’t have one already, you can create one here.

  1. Log in to the Nylas Dashboard.
  2. On the All apps page, click Create new app.
  3. Select the Data residency.

    This determines where Nylas stores your application and user data. Be sure to select the region where your project will be active. You can’t change this setting later.

  4. Select the Environment.
  5. Click Create application.

You’ll need an API key for the last step.

  1. On your application’s page, click API Keys in the left navigation.
  2. Click Generate new key.
  3. Enter an API key name and select the Expiration time.
  4. Click Generate key.
  1. On your application’s page, click Grants in the left navigation.
  2. Click Add Account.

You’ll be prompted to enter your email address. If the authentication is successful you’ll see your email address and grant ID with a valid status on the Grants page.

Now that you’re all set up, it’s time to make your first API call. 🚀 For this example, we’ll be using the Return all Messages endpoint to return the five latest messages from your inbox. Be sure to replace the placeholder fields with your grant ID and API key from the previous step.