GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - nylas/nylas-java: Nylas Java SDK

BranchesTags
Open more actions menu

Latest commit

 

History

332 Commits
332 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github
.github
 
 
.vscode
.vscode
 
 
diagrams
diagrams
 
 
examples
examples
 
 
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Contributing.md
Contributing.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
UPGRADE.md
UPGRADE.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
pull_request_template.md
pull_request_template.md
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

Nylas

Nylas Kotlin & Java SDK

The official Kotlin & Java SDK for Nylas โ€” the infrastructure that powers communications

version code coverage license

๐Ÿ“– SDK Guide ยท ๐Ÿ“š API Reference ยท ๐Ÿš€ Sign up ยท ๐Ÿ’ก Samples ยท ๐Ÿ’ฌ Forum


The official Kotlin & Java SDK for Nylas โ€” the infrastructure that powers communications. Integrate with Gmail, Microsoft, IMAP, Zoom, and 250+ email, calendar, and meeting providers in 5 minutes. Covers Email, Calendar, Contacts, Scheduler, Notetaker, and Agent Accounts.

This repository is for contributors and anyone installing the SDK from source. If you just want to use the SDK in your app, head straight to the Kotlin & Java SDK guide on developer.nylas.com.

Get started

  1. Sign up for a free Nylas account.

  2. Follow the getting started guide to create an application and provision your first API key.

  3. Bootstrap a project with the Nylas CLI:

    brew install nylas/nylas-cli/nylas
    nylas init

โš™๏ธ Install

Requirements: Java 8 or later. Kotlin 1.8 or later.

Gradle

Kotlin DSL (build.gradle.kts):

implementation("com.nylas.sdk:nylas:2.18.2")

Groovy (build.gradle):

implementation 'com.nylas.sdk:nylas:2.18.2'

Maven

<dependency>
  <groupId>com.nylas.sdk</groupId>
  <artifactId>nylas</artifactId>
  <version>2.18.2</version>
</dependency>

Build from source

git clone https://github.com/nylas/nylas-java.git
cd nylas-java
./gradlew build uberJar

This produces build/libs/nylas-java-sdk-<version>-uber.jar.

โšก๏ธ Usage

Initialize the client with your API key:

import com.nylas.NylasClient;
import com.nylas.models.Calendar;
import com.nylas.models.ListResponse;

NylasClient nylas = new NylasClient.Builder("NYLAS_API_KEY").build();

ListResponse<Calendar> calendars = nylas.calendars().list("GRANT_ID");

For step-by-step walkthroughs, see the developer guides:

  • Send and receive email
  • Read and manage calendar events
  • Find available meeting times with Scheduler
  • Capture meeting notes with Notetaker
  • Manage Agent Accounts
  • Subscribe to webhooks and notifications
  • Choose a data residency region

Error handling

Nylas API errors extend AbstractNylasApiError (e.g. NylasApiError, NylasOAuthError). SDK-side errors extend AbstractNylasSdkError (e.g. NylasSdkTimeoutError, NylasSdkRemoteClosedError).

import com.nylas.models.AbstractNylasApiError;
import com.nylas.models.AbstractNylasSdkError;
import com.nylas.models.NylasApiError;

try {
  nylas.calendars().list("GRANT_ID");
} catch (NylasApiError e) {
  System.err.println("API error " + e.getStatusCode() + ": " + e.getMessage());
  System.err.println("Request ID: " + e.getRequestId());
} catch (AbstractNylasSdkError e) {
  System.err.println("SDK error: " + e.getMessage());
}

Logging

The SDK uses SLF4J. The HTTP client exposes three DEBUG-level loggers:

  • com.nylas.http.Summary โ€” one line per request/response (method, URI, status, size, duration)
  • com.nylas.http.Headers โ€” request/response headers (Authorization redacted by default)
  • com.nylas.http.Body โ€” request/response bodies (first 10 kB by default)

Enable them with your logging framework, e.g. log4j2:

<Logger name="com.nylas" level="DEBUG"/>

Customize redaction and body-size limits by passing your own HttpLoggingInterceptor to NylasClient.Builder.

๐Ÿ’ก Examples

Runnable Java and Kotlin examples live in examples/ (folders, events, messages, large attachments, Notetaker). For full apps, browse Java repos in nylas-samples.

๐Ÿค– AI agents

nylas/skills drops Nylas into Claude Code, Cursor, Codex, and other agents that support the skills format:

npx skills add nylas/skills
/plugin marketplace add nylas/skills   # Claude Code

The CLI also installs an MCP server for Claude Desktop, Claude Code, Cursor, Windsurf, or VS Code:

brew install nylas/nylas-cli/nylas
nylas mcp install

Walkthrough: give AI agents email access via MCP.

๐Ÿ“š Reference

  • Kotlin & Java SDK guide
  • API reference
  • Getting started
  • Javadoc / Dokka SDK reference
  • Data residency
  • Nylas CLI
  • Dashboard

โœจ Upgrading

See CHANGELOG.md for release notes and UPGRADE.md for migration instructions between major versions.

๐Ÿ’™ Contributing

We welcome questions, bug reports, and pull requests. See Contributing.md for how to get involved, or ask in the Nylas forum.

๐Ÿ”’ Security

Found a security issue? Please follow the Nylas vulnerability disclosure policy instead of opening a public issue.

๐Ÿ”— Other Nylas SDKs

  • nylas-nodejs
  • nylas-python
  • nylas-ruby

๐Ÿ“ License

This project is licensed under the terms of the MIT license.

About

Nylas Java SDK

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

37 stars

Watchers

36 watching

Forks

19 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.