Only show these results:

Postman and Nylas

Setup

  1. Install Postman.
  2. Add the Nylas collection.

Run in Postman

The Postman collection will update automatically. If you turn that option off, make sure to check periodically for changes.

Install Nylas Environments

Postman Environments make it easy to store variables used throughout your collection, so you can have different values for production vs staging, while only needing to maintain a single collection of endpoints.

This template environment is scaffolding to get started with Nylas, and provides empty variables like account_id, access_token, and url that are used as variables throughout different endpoints in the collection.

Step 1 Import the Environment

  1. Copy the Nylas Production Environment.
  2. Select Environment and then click Import.
  3. Select Raw Text, then copy and paste the Nylas Production Environment.
Postman Environment Import

Step 2 Configure the Environment

  1. Make sure you still have Environments selected and click the Nylas Template Environment.
  2. Fill in your client_id and client_secret, which are in your Nylas dashboard by clicking App Settings.
  3. If you already have an access_token then you can replace autogenerated with the access_token value and start making requests.
  4. If you need an access_token and want to use Postman for authentication, see Getting Autogenerated Values
  • Autogenerated - Values that will be replaced as you start making requests.
  • Blank - You'll need to fill those in yourself.
  • URL - Already prefilled with the Nylas API server

Getting Autogenerated Values

Use the steps here, if you want to authenticate accounts using native authentication and Postman.

If you already have an access_token then you can replace autogenerated with the access_token value and start making requests right away. No need to go through the following steps.

Prerequisites

  • If using Google, you have already created a Google app.

Postman Native Authentication

  1. Make a request to /connect/authorize.
  2. Nylas will return a code that is automatically filled in using the {code} variable.
  3. Then make a request to /connect/token and Nylas will return an access_token.

Adjusting Environment Values

Select the eye to adjust values.

Postman adjust Environment variables