RapidAPI logo

Nylas Cloud

FREE
By Nylas-Cloud
Updated 6 months ago
Communication
-/10
Popularity Score
-
Latency
-
Success Rate

Nylas Cloud API Documentation

The Nylas Cloud API integrates email, calendar, and contacts into your platform . One integration connects your app with 100% of email services (IMAP, Exchange/ActiveSync, Outlook, Gmail, Yahoo, etc.), creating one unified source of data for teams to reference. Send personalized email drip campaigns at scale while reaching your customer's inbox with nearly 100% email deliverability. Track email opens, link clicks, and reply rates; or, pull team-level email data to track productivity week over week.

Nylas helps hundreds of SaaS companies streamline communications, reduce context-switching from web app to email, and act on powerful email data. Start developing by connecting and syncing up to 10 accounts for free.

View API Details
GETThreads
GETMessages
GETFolders
GETLabels
GETSending
GETEvents
GETCalendars
GETFiles
GETContacts
GETSearch
GETWebhooks
GETThreads

Threads are a first-class object, allowing you to build beautiful mail applications that behave the way users have come to expect. Actions like archiving or deleting can be performed on threads or individual messages. Nylas threads messages together using a variety of heuristics. On Gmail and Microsoft Exchange accounts, messages will be threaded together as close as possible to the representation in those environments. For all other providers (including generic IMAP), messages are threaded using a custom JWZ-inspired algorithm. (Open source here, for the curious.)

Authorization:

The Nylas platform uses the OAuth 2.0 protocol for simple, effective authorization. Before making API calls on behalf of a user, you need to fetch an access_token that grants you access to their email. Once you've obtained a token, you include it with Nylas API requests as the HTTP Basic Auth Username. Although although you'll immediately have access to the API once you authorize an account, it may take some time until all historical messages are synced.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDThe Nylas platform uses the OAuth 2.0 protocol for simple, effective authorization. Before making API calls on behalf of a user, you need to fetch an access_token that grants you access to their email. Once you've obtained a token, you include it with Nylas API requests as the HTTP Basic Auth Username. Although although you'll immediately have access to the API once you authorize an account, it may take some time until all historical messages are synced.
AuthorizationSTRING
OPTIONALaccess_token as HTTP Basic Auth username
Optional Parameters
viewSTRING
OPTIONAL
limitNUMBER
OPTIONALNumber of objects to return. Often defaults to 100. If set too high, requests may fail to prevent excessively large response bodies.
Code Snippet
unirest.get("https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads?view=Can+be+one+of+%22id%22%2C+%22count%22%2C+or+%22expanded%22.+See+Views+for+more+info.&limit=100")
.header("X-RapidAPI-Host", "nylas-cloud-nylas-cloud-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.header("Authorization", "access_token")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://nylas-cloud-nylas-cloud-v1.p.rapidapi.com/threads?view=Can+be+one+of+%22id%22%2C+%22count%22%2C+or+%22expanded%22.+See+Views+for+more+info.&limit=100")
.header("X-RapidAPI-Host", "nylas-cloud-nylas-cloud-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.header("Authorization", "access_token")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication