Jumpstart Your Development With the Nylas SDKs

Our simple SDKs are the fastest way to integrate the Nylas email, calendar, and contacts APIs.

Build in Your Language of Choice

Nylas offers SDKs for Java, Node / JavaScript, Python, and Ruby that enable you to quickly integrate email and scheduling functionality for 100% of providers like Gmail, Outlook, Office 365, Exchange, and more.

Nylas Email API
  • Node
  • Java
  • Python
  • Ruby
import Nylas from 'nylas';
Nylas.config({
    clientId: CLIENT_ID,
    clientSecret: CLIENT_SECRET
});
var nylas =  
    Nylas.with(ACCESS_TOKEN);
nylas.threads
    .count({in:'inbox'})
    .then(count => {
        console.log(`There are ${count} threads in your inbox.`);
    });

 

public class Email {
  public static void main (String[] args) throws Exception {
    NylasAccount account = new NylasClient().account(ACCESS_TOKEN);
    List threads = account.threads().list(
      new ThreadQuery().unread(true));
    threads.stream().forEach(( Thread thread ) -> { 
      System.out.println( thread.getSubject() ); 
    });
  }
}

 

from nylas import APIClient
nylas = APIClient(
    CLIENT_ID,
    CLIENT_SECRET,
    ACCESS_TOKEN
)
threads = 
    nylas.threads.where(
        unread=True,
        limit=5
)
for thread in threads:
    print(thread.subject)
require 'nylas'
nylas = Nylas::API.new(
    app_id: CLIENT_ID,
    app_secret: CLIENT_SECRET,
    access_token: ACCESS_TOKEN
)
threads = 
    nylas.threads.search(
        "Hello!"
    )
threads.each do |thread|
    puts thread.subject
end
Nylas Calendar API
  • Node
  • Java
  • Python
  • Ruby
import Nylas from 'nylas';
Nylas.config({
    clientId: CLIENT_ID,
    clientSecret: CLIENT_SECRET,
});
var nylas =  
    Nylas.with(ACCESS_TOKEN);
nylas.events
    .count()
    .then(count => {
        console.log(
            `You have ${count} events.`
        );
    });

 

public class Calendar { 
  public static void main (String[] args) throws Exception {
    NylasAccount account = new NylasClient().account(ACCESS_TOKEN);
    List events = account.events().list(
      new EventQuery().title("Birthday Party!"));
    events.stream().forEach(( Event event ) -> {
      System.out.println( event.getLocation() ); 
    });
  }
}
from nylas import APIClient
nylas = APIClient(
    CLIENT_ID,
    CLIENT_SECRET,
    ACCESS_TOKEN,
)
events = nylas.events.where(
    starts_after=15147064800,
    limit=5
)
for event in events:
    print(event.title)

 

require 'nylas'
nylas = Nylas::API.new(
    app_id: CLIENT_ID,
    app_secret: CLIENT_SECRET,
    access_token: ACCESS_TOKEN
)
events = 
    nylas.events.search(
        "Hello!"
    )
events.each do |events|
    puts events.title
end

Simplify Integrations

Integrate in Minutes

Bi-directionally sync data from user’s inboxes and get full CRUD in just a few lines of code.

No Maintenance Required

Maintenance and API updates are handled for you.

Connect to Every Inbox With Ease

The Nylas APIs abstract away the complexities of server specific protocols.

Security & Reliability You Can Count on

The Nylas API has a 99.9% uptime guarantee with fast sync times.

Everything Connected.
Everything Secure.

Security is our #1 priority — but don’t just take our word for it. Nylas is SOC 2 Certified, Privacy Shield certified, GDPR compliant, and HIPAA and FINRA ready. Data for every calendar you sync is encrypted and isolated with multi-level permission checks.

We give you full control over what data is accessed so your customers are always secure, and your product is always compliant.

View Security Architecture Guide
  • Data Residency
  • SSO
  • World-Class Security Certifications
  • Token Management
  • Whitelisted IPs
  • Data Encryption
  • Authentication Scopes
  • Gated Permission Checks
View Security Architecture Guide