Postman and Nylas
- Install Postman.
- Add the Nylas collection.
The Postman collection will update automatically. If you turn that option off, make sure to check periodically for changes.
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
url that are used as variables throughout different endpoints in the collection.
- Copy the Nylas Production Environment.
- Select Environment and then click Import.
- Select Raw Text, then copy and paste the Nylas Production Environment.
- Make sure you still have Environments selected and click the Nylas Template Environment.
- Fill in your
client_secret, which are in your Nylas dashboard by clicking App Settings.
- If you already have an
access_tokenthen you can replace autogenerated with the
access_tokenvalue and start making requests.
- If you need an
access_tokenand 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
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.
- If using Google, you have already created a Google app.
- Make a request to /connect/authorize.
- Nylas will return a
codethat is automatically filled in using the
- Then make a request to /connect/token and Nylas will return an
Select the eye to adjust values.