Skip to content

Guides

Looking for end-to-end tutorials that combine multiple Nylas APIs? See Use cases.

The Nylas API gives you one interface for every provider, but each provider behaves differently. Folder structures, sync timing, rate limits, search capabilities, and authentication flows all vary depending on whether you’re working with Microsoft, Google, Yahoo, iCloud, IMAP, or Exchange.

These guides walk you through each provider’s specifics so you can build with confidence. Every guide focuses on a single task for a single provider, with code samples and the details that actually matter in production.

GuideProviderWhat you’ll do
List Microsoft messagesMicrosoft 365, OutlookRetrieve and filter email from Microsoft accounts, handle folder naming, pagination, and sync behavior
List Google messagesGmail, Google WorkspaceRetrieve and filter email from Google accounts, use Gmail search operators, handle labels, and manage OAuth scopes
List Yahoo messagesYahoo MailRetrieve and filter email from Yahoo accounts, handle the 90-day message cache, use query_imap for older messages
List iCloud messagesiCloud MailRetrieve and filter email from iCloud accounts, handle app-specific passwords, the 90-day cache, and CalDAV vs. IMAP
List IMAP messagesAny IMAP serverRetrieve and filter email from any IMAP provider (Zoho, Fastmail, AOL, custom servers), handle folder naming and UIDVALIDITY
List Exchange messagesExchange on-premisesRetrieve and filter email from self-hosted Exchange servers via EWS, handle message ID changes and AQS search
GuideProviderWhat you’ll do
List Microsoft threadsMicrosoft 365, OutlookRetrieve and filter email threads from Microsoft accounts, understand ConversationId mapping, thread-level metadata, and folder behavior
List Google threadsGmail, Google WorkspaceRetrieve and filter email threads from Google accounts, use native thread_id, handle labels on threads, and Gmail search operators
List Yahoo threadsYahoo MailRetrieve and filter email threads from Yahoo accounts, understand header-based thread grouping and the 90-day cache
List iCloud threadsiCloud MailRetrieve and filter email threads from iCloud accounts, handle app-specific passwords and header-based threading
List IMAP threadsAny IMAP serverRetrieve and filter email threads from any IMAP provider, understand header-based grouping and UIDVALIDITY
List Exchange threadsExchange on-premisesRetrieve and filter email threads from Exchange on-prem via EWS, handle ConversationId and message ID changes
GuideProviderWhat you’ll do
List Microsoft eventsMicrosoft 365, OutlookRetrieve and filter calendar events from Microsoft accounts, handle timezone normalization, Teams conferencing, and admin consent
List Google eventsGoogle Calendar, WorkspaceRetrieve and filter calendar events from Google accounts, use event types, handle Google Meet conferencing, and manage OAuth scopes
List iCloud eventsiCloud CalendarRetrieve and filter calendar events from iCloud accounts, handle app-specific passwords, CalDAV limitations, and the one-year range cap
List Exchange eventsExchange on-premisesRetrieve and filter calendar events from self-hosted Exchange servers via EWS, handle on-prem networking and recurring event restrictions
Create Microsoft eventsMicrosoft 365, OutlookCreate calendar events on Microsoft accounts, handle write scopes, Teams conferencing, participant notifications, and room resources
Create Google eventsGoogle Calendar, WorkspaceCreate calendar events on Google accounts, handle restricted scopes, Google Meet auto-create, and event type limitations
Create iCloud eventsiCloud CalendarCreate calendar events on iCloud accounts, handle app-specific passwords, CalDAV limitations, and the simpler event model
Create Exchange eventsExchange on-premisesCreate calendar events on Exchange on-prem via EWS, handle write scopes, recurring event restrictions, and on-prem networking
GuideToolWhat you’ll do
Use Nylas MCP with Claude CodeClaude CodeConnect Claude Code to the Nylas MCP server to manage email, calendar, and contacts from the terminal
Use Nylas MCP with Codex CLICodex CLIConnect OpenAI Codex CLI to the Nylas MCP server to manage email, calendar, and contacts from the terminal
GuideWhat you’ll do
Install OpenClaw pluginInstall and configure the @nylas/openclaw-nylas-plugin to give OpenClaw agents access to email, calendar, and contacts

Work with email, calendar, and contacts directly from the terminal without writing code. The Nylas CLI provides command-line access to the Nylas API for testing, debugging, and automation.

GuideWhat you’ll do
Send email from terminalSend email from the command line across Gmail, Outlook, and any provider
Manage calendar from terminalList events, check availability, and create events from the CLI
Build an email agentBuild an AI email agent using the Nylas CLI and MCP
End-to-end email testingTest email flows in CI/CD pipelines using the Nylas CLI
All CLI guidesBrowse all 60+ CLI guides for email, calendar, contacts, and AI agents