Guides

Nylas CLI Guides

Step-by-step guides to send email, manage calendars, set up E2E tests, and connect AI agents.

Getting Started

Install, authenticate, and send your first email.

AI Agents & MCP

Give AI agents email, calendar, and contacts via MCP.

Build a Strands Email Agent

Give a Strands Agents SDK agent email access using the Nylas CLI as a @tool. One function reaches Gmail, Outlook, and 4 more providers — no OAuth code needed.

strandsai-agentspythonemail

Cloudflare Agents Email Tools

Use the Cloudflare Agents SDK to build a stateful email agent on Workers — connect to the Nylas MCP server over HTTP and call email tools in TypeScript.

cloudflareworkersmcptypescript

Build a Mastra Email Agent

Give a Mastra TypeScript agent email by wrapping the Nylas CLI as a createTool — one subprocess call, JSON in and out, across Gmail, Outlook, and more.

mastratypescriptagentemail

Set Up an MCP Calendar Server

Expose calendar tools to an AI client over MCP. Install nylas mcp, configure your assistant, and let it check availability and create events.

mcpcalendarai-agentsmodel-context-protocol

Give an AI Agent Calendar Access

Wrap nylas calendar availability and events as agent tools: read-only by default, draft-before-create for writes, and an OAuth scope the agent can't widen.

ai agentscalendarmcpsecurity

Set Up an MCP Contacts Server

Expose contact search and read tools to an AI client over MCP with nylas mcp install. Configure, verify, and call address-book tools.

mcpcontactsai-agentsmodel-context-protocol

Build a Transactional Email Agent

Send receipts, confirmations, and alerts from a dedicated agent account — DKIM-signed, idempotent, and rate-capped by a workspace policy, no SMTP relay.

agent-accountsaiagenttransactional

Trigger Agents on Inbound Email with Webhooks

Replace cron polling with webhooks: register a message.created hook so your agent account wakes the agent the instant mail arrives, signature-verified.

agent-accountswebhooksmessage.createdai

Build an Email Digest Agent

Send an opt-in digest to a subscriber group from an agent account — resolve the recipient list from contacts, honor unsubscribes, and send on a schedule.

agent-accountsaiagentnewsletter

Migrate from SMTP to Agent Accounts

Move an agent's email off a self-hosted SMTP server: map sends to one CLI command, replace your MX with managed inbound, and cut over with a safety net.

agent-accountsmigrationsmtppostfix

Deploy Agent Accounts in Docker & CI

Run an agent-account agent in a container or CI pipeline: install the CLI, authenticate headlessly with an API key, and keep the key out of image layers.

agent-accountsdockercideployment

Build a Recruiting Interview Coordinator

An AI agent schedules interviews across a candidate and an interview panel: it finds slots that fit every panelist, emails the options, and books the panel.

agent-accountsaiagentrecruiting

Use Agent Accounts with LangChain

Give a LangChain or LangGraph agent email and calendar by wrapping the Nylas CLI as tools — one subprocess call per action, JSON in and out, no provider SDK.

agent-accountslangchainlanggraphai

Build a Signup & Verification Bot

An AI agent signs up for services and reads its own verification codes. Give the bot a real inbox on an agent account and pull the OTP with one CLI command.

agent-accountsaiagentotp

Build a Personal Assistant Inbox Agent

Delegate an overflow inbox to an AI assistant on an agent account. It triages forwarded mail, drafts replies into a review queue, and sends a daily brief.

agent-accountsaiagentpersonal-assistant

Build an Order-Status Reply Agent

An AI agent answers where-is-my-order emails: it reads the request, extracts the order ID, looks it up in your system, and replies only to the verified owner.

agent-accountsaiagentecommerce

Build an AutoGen Email Agent

Give an AutoGen agent email by registering the Nylas CLI as a function tool — one subprocess per action, JSON in and out, across 6 providers with no SDK.

autogenaiagentemail

Email Tools for the Vercel AI SDK

Add email to a Vercel AI SDK agent with a tool() that shells out to the Nylas CLI. JSON output and read/send across 6 providers with no per-provider SDK.

vercel-ai-sdkaiagentemail

Build a CrewAI Email Agent

Give a CrewAI agent email by wrapping the Nylas CLI as a tool — one subprocess call per action, JSON in and out, across 6 providers, with no per-provider SDK.

crewaiaiagentemail

n8n Email Automation Across Providers

Add email to an n8n workflow without a per-provider OAuth app. Call the Nylas CLI from an Execute Command node to read and send across 6 providers as JSON.

n8nautomationworkflowemail

Connect Claude to Your Email with MCP

Claude has no built-in multi-provider email. Connect it via MCP: run the Nylas MCP server and Claude reads and sends across Gmail, Outlook, Yahoo, and iCloud.

claudemcpaiemail

Give Your AI Agent a Managed Calendar

An agent account includes calendar access on the same grant as email. Check availability, find meeting times across timezones, and book events from the CLI.

agent-accountscalendaraiagent

Build a Meeting-Booking Assistant Agent

Build an AI scheduling agent on a Nylas agent account. It reads a request email, finds a time across timezones, books the event, and emails a confirmation.

agent-accountsschedulingaiagent

Build an AI Customer-Support Inbox

Run an AI support agent on a dedicated agent account: read tickets, triage by sender and content, reply in-thread, escalate hard cases, and stay contained.

agent-accountsaiagentcustomer-support

Manage the Agent Account Lifecycle

Create, inspect, rotate credentials, pause, and delete agent accounts from the CLI — the full lifecycle of a managed agent email identity, step by step.

agent-accountslifecycleaiagent

Provision Agent Accounts at Scale

Bulk-create agent accounts from a tenant list, make provisioning idempotent, apply shared guardrails, inventory the fleet, and tear down — all from the CLI.

agent-accountsscalemulti-tenantprovisioning

Build a Lead-Capture & Qualification Agent

An AI agent reads inbound leads, qualifies each one, saves the good ones to a contacts directory, and notifies sales — fast enough to beat lead decay.

agent-accountsaiagentlead-capture

Monitor Agent Account Health

Probe agent account and connector health from the CLI, flag any account that isn't valid across the fleet, and send an alert before an agent fails a task.

agent-accountsmonitoringhealthai

Build an Invoice-Intake Agent

An AI agent reads inbound invoices, downloads the PDF attachment, extracts vendor, amount, and due date, and routes a summary to accounting — hands-free.

agent-accountsaiagentinvoice

Outlook OAuth for AI Agents: Graph Setup

Set up OAuth for AI agents that automate Outlook email: Graph app registration, delegated vs application Mail.Send, token lifetimes, and a faster CLI path.

outlookoauthaiagent

Cronofy vs Nylas: Calendar API Compared

Cronofy is a scheduling-first calendar API; Nylas pairs calendar with email and contacts. Compare scope, pricing models, AI agent support, and CLI tooling.

cronofycomparisoncalendarapi

AI Agent Audit Dashboard from the CLI

Build an audit dashboard for AI agent activity: per-agent command counts, error rates, session replay, and cron snapshots from nylas audit logs and jq.

auditaiagentdashboard

Calendar Invite Prompt Injection Defense

Calendar invites land in an AI agent's context without any click. Defend with organizer allowlists, metadata-first triage, human-run RSVPs, and audit logs.

securityprompt-injectioncalendarai

Build an AI Email Auto-Responder

Build an AI auto-responder that reads incoming email, drafts context-aware replies with an LLM, and sends after human approval. Python and CLI pipeline.

aiauto-responderemailllm

Email Forwarding Rules: API Guide

Compare Gmail filter API, Microsoft Graph inbox rules, and CLI-based email rules for programmatic email routing. Create and manage rules across providers.

emailrulesforwardinggmail-api

Build a Human-in-the-Loop Email Agent

Build an AI email agent with human approval gates. Classify messages, draft responses, queue for review, and send only after a human confirms each action.

aiagentemailhuman-in-the-loop

AgentMail vs Nylas vs Cloudflare Email

Compare AgentMail, Cloudflare Email for Agents, and Nylas Agent Accounts. Feature matrix, pricing, MCP support, and a decision guide for AI agent email in 2026.

aiagentemailagentmail

Email Prompt Injection Defense

Defend AI email agents against prompt injection attacks. Input separation, capability sandboxing, human-in-the-loop approvals, and audit logging patterns.

aiagentemailsecurity

Set Up an MCP Email Server in 5 Minutes

Connect AI agents to real email accounts through MCP. Install, configure, and verify an email MCP server for Claude Code, Cursor, and other AI coding tools.

mcpemailserversetup

How Apple's New CEO Can Automate iCloud Email

John Ternus takes over as Apple CEO in September 2026. Connect iCloud to AI agents that triage email, draft replies, optimize calendar across 25 time zones, and protect focus time.

appleicloudaiagents

MCP vs API for AI Agents

Compare MCP, direct API, and skills for AI agent integrations. Benchmarks show 33% token efficiency gaps and 30x batch speed differences. Decision matrix.

mcpapiskillsai

Best Email Infrastructure for AI Agents

Compare Agent Accounts, provider APIs, IMAP, SMTP, MCP, and CLI tools for agent email. Choose a stack for reads, sends, audits, and scale.

aiagentsemailinfrastructure

Send Email from Python Without SMTP

Send email from Python without SMTP passwords or Postfix. Use one CLI command for OAuth-backed delivery or app-owned Agent Account sends.

pythonemailsmtpoauth

Gmail API Quotas in 2026

Gmail API quota limits changed May 1, 2026. New per-minute limits, method costs, billing threshold, and CLI patterns for sync jobs and agents.

gmailapiquotalimits

MCP Email Server Security Checklist

Secure MCP email servers with least privilege, local server checks, token boundaries, webhook verification, and write-action controls.

mcpemailsecurityai

Outlook MCP Server for AI Agents

Compare Outlook MCP options for AI agents: Microsoft 365 connectors, Graph API tools, and local CLI MCP for email and calendar workflows.

outlookmicrosoftmcpai

ChatGPT Gmail Connector vs MCP

Compare ChatGPT Gmail apps, custom MCP apps, and local CLI MCP for Gmail workflows. Pick the right path for search, sync, and write actions.

chatgptgmailmcpopenai

Google Workspace MCP for AI Agents

Compare Google Workspace MCP with multi-provider CLI commands and Agent Accounts for AI agents that need user mail or app-owned inboxes.

googleworkspacemcpgmail

Agent-to-Agent Email Communication

Two AI agents, two managed inboxes, one protocol. Create agent accounts with Nylas CLI and exchange structured JSON messages — no shared database needed.

aiagentemailagent-to-agent

Stop Your AI Agent From Going Rogue

Terminate rogue AI agent sessions at the connector layer. Outbound blocks, auto-reply kill switches, and prompt-injection containment — all before SMTP.

aiagentguardrailscontainment

Install Nylas Skills for AI Coding Agents

Install nylas-cli and nylas-api skills in Claude Code, Cursor, Codex CLI, Windsurf, and 30+ AI coding agents. One command adds email and calendar tools.

aiagentskillsclaude-code

Create an AI Agent Email Identity

Set up a managed email identity for an AI agent. Create a dedicated inbox, send and receive in 2 minutes — no OAuth setup or third-party mailbox needed.

aiagentemailidentity

Build an AI Email Triage Agent

Build an AI agent that reads your inbox, classifies emails by urgency, drafts replies, and archives noise. Python + Nylas CLI + any LLM. Full code included.

aiagenttriageclassify

Recall.ai vs Nylas for AI Agent Email

Compare Recall.ai and Nylas CLI for AI agent communication. One handles meeting recordings, the other handles email and calendar. Pick the right tool.

comparisonrecallaiagents

Best Email API for AI Agents: 6 Compared (2026)

Compare Gmail API, Microsoft Graph, SendGrid, Mailgun, Nylas, and raw IMAP for giving AI agents email access. Includes a 14-criteria feature comparison.

aiagentsapicomparison

Receive Email Without an SMTP Server

Create a managed agent email account and process incoming messages via webhooks — no Postfix, no MX records. Uses nylas agent create and monitor commands.

agentinboundreceivewebhook

Give Your AI Coding Agent an Email Address

Connect Claude Code, Cursor, OpenAI Codex CLI, Windsurf, and OpenClaw to a real email account via MCP. Step-by-step setup for each tool using Nylas CLI.

aiagentemailclaude-code

Connect Voice Agents to Email and Calendar

Bridge LiveKit, Vapi, or any voice agent framework to email and calendar using Nylas CLI as a subprocess. Complete Python examples for send, read, and schedule.

voicelivekitvapiagents

Design Email Systems for AI Agents: Structured Formats and Machine-Readable Templates

Design email workflows that AI agents parse reliably. Structured JSON output, machine-readable templates, agent-friendly headers, and MCP integration.

aiagentsdesignjson

Gmail API Limits for AI Agents

Gmail API quotas changed in 2026. OAuth consent setup, token refresh, method costs, MIME encoding, and safer CLI patterns for agent email tools.

gmailapioauthagents

Email as Memory for AI Agents

Use email as persistent memory for AI agents — semantic, episodic, and procedural. Search, retrieve, and reason over conversation history with Nylas CLI.

aiagentsmemorysearch

Why AI Agents Need Email Addresses: Identity, Verification, and Agent-to-Agent Communication

AI agents use email as their primary identity on the internet. Covers signups, OTP verification, agent-to-agent messaging, and building identity trust chains.

aiagentsidentityotp

Why AI Agents Need Email

AI agents need email for authentication, two-way communication, and audit trails. See how Nylas CLI gives agents full inbox access in a single command.

aiagentsemailmcp

Audit AI Agent Activity (Claude, Copilot, MCP)

Audit logs for AI agent actions across Claude Code, GitHub Copilot, and MCP servers. Filter by source, export for compliance, trace every agent command.

aiagentsauditaudit-logs

AI Agent CLI for Email and Calendar

Build an AI agent CLI for email and calendar with Nylas CLI subprocess commands, JSON output, and no provider-specific API clients.

ai-agent-cliagent-clillmagent

Email MCP Server for AI Agents

Set up an email MCP server so Claude, Cursor, Windsurf, and VS Code Copilot can read, send, and schedule email and calendar events locally in one command.

aimcpclaudecursor

Manus AI

Email and calendar automation with Manus AI and Nylas CLI.

Add Nylas as a Manus MCP Server (manus-mcp-cli)

Register Nylas as an MCP server in manus-mcp-cli so your Manus agents can send email, search the inbox, and manage calendar events inside the sandbox.

manusmcpmanus-mcp-cliai

Send Email from Linux/Manus Sandbox Without SMTP

Send email from a Linux or Manus sandbox over HTTPS when SMTP ports 25, 465, and 587 are blocked. No Postfix or sendmail — Nylas CLI handles delivery.

manuslinuxubuntuai

Draft Personalized Emails with Manus AI

Use Manus AI to draft personalized emails at scale with Nylas CLI. Feed a CSV contact list, review each AI-generated draft, then approve and batch-send.

manusaidraftsoutbound

Sync Email to CRM with Manus AI

Use Manus AI and Nylas CLI to extract contacts from your inbox, enrich them, and sync to Salesforce, HubSpot, or Pipedrive. No code, no manual data entry.

manusaicrmsalesforce

Email Analytics with Manus AI

Analyze email patterns with Manus AI and Nylas CLI. Break down volume by sender, track response times, find your peak hours, and generate weekly reports.

manusaianalyticsreports

Manus AI Email Research Agent

Use Manus AI to deep-search your inbox, summarize long email threads, extract decisions and action items, and compile research reports with Nylas CLI.

manusairesearchemail

Manus AI Meeting Scheduler

Schedule meetings via natural language with Manus AI and Nylas CLI. Check participant availability, find mutual open slots, and create events automatically.

manusaicalendarscheduling

Manus AI vs Claude Code for Email Automation

Side-by-side comparison of Manus AI Skills and Claude Code MCP for email and calendar automation. Same Nylas CLI backend, different agent runtimes used.

manusclaude-codecomparisonai

Build an Email Support Agent with Manus AI

Build a Manus AI support agent that polls a shared inbox, matches tickets to knowledge base articles, drafts context-aware replies, and escalates risk.

manusaisupportcustomer-support

Reach Inbox Zero with Manus AI

Reach inbox zero with Manus AI and Nylas CLI. Triage unread messages by urgency, auto-categorize threads, draft replies, and bulk-archive noise in one go.

manusaiinbox-zerotriage

Mail Manus: Automate Email from CLI

Compare Mail Manus forwarding with direct inbox access. Learn when to add the Nylas CLI Skill for search, sending, follow-ups, and calendar workflows.

manusmail-manusaiemail

Create a Manus Skill: Email & Calendar Workflow

Create a Manus Skill that installs Nylas CLI in the sandbox and teaches your agent email, calendar, and contact workflows via SKILL.md and setup scripts.

manusaiskillsskill

OpenClaw

Connect Nylas CLI to the OpenClaw personal assistant.

Email Providers

Provider-specific guides for Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.

PowerShell

Email and calendar automation from PowerShell on Windows.

New-MgUserMessage: Create Outlook Drafts

New-MgUserMessage creates an Outlook draft via Graph PowerShell and Send-MgUserMessage dispatches it. Parameters, scopes, the Send-MgMessage mixup, CLI path.

powershellmicrosoft-graphnew-mgusermessagedrafts

PowerShell Email: Every Method Compared

Send email from PowerShell after Send-MailMessage deprecation. Compare Send-MgUserMail, Graph REST, MailKit, and CLI tools for scripts, reports, and CI/CD.

powershellemailsend-mailmessagesend-mgusermail

Send-MgUserMail: Graph Email in PowerShell

Send-MgUserMail requires 25+ lines, Azure AD app registration, and nested hashtables. Full Graph workflow plus a 1-command CLI alternative.

powershellsend-mgusermailmicrosoft-graphazure-ad

Send-MgUserMail vs Send-MailMessage

Compare PowerShell email options in 2026: obsolete SMTP, Microsoft Graph setup, one CLI send path, and Agent Account senders.

powershellsend-mgusermailsend-mailmessagemicrosoft-graph

EWS to Microsoft Graph Migration

EWS is blocked October 1, 2026. Migrate Exchange Web Services to Microsoft Graph API or skip both with a unified CLI. Timeline, auth changes, and feature gaps.

exchangeewsgraph-apimigration

Replace Send-MgUserMessage

Migrate from Microsoft Graph PowerShell cmdlets to Nylas CLI. Side-by-side before/after examples for Send-MgUserMessage, New-MgMessage, and Get-MgUser.

powershellwindowsmicrosoft-graphsend-mgusermessage

CI/CD Email Alerts with PowerShell

Send build failure alerts, deployment reports, and test results from GitHub Actions, Azure DevOps, and Jenkins pipelines using PowerShell and Nylas CLI.

powershellcicdgithub-actionsazure-devops

Monitor Your Inbox with PowerShell

Build inbox monitoring and alert scripts with PowerShell and Nylas CLI. Poll for new emails, watch for specific senders, trigger Teams webhooks on matches.

powershellwindowsmonitoringalerts

Office 365 Email from PowerShell

Manage Office 365 email from PowerShell without Azure app registration or Graph setup. Authenticate, list, search, read, and send O365 mail with Nylas CLI.

office365microsoftpowershellwindows

Automated Email Reports with PowerShell

Build automated email reporting with Nylas CLI and PowerShell. Query messages, aggregate with Group-Object, generate HTML reports, and schedule with cron.

powershellwindowsemailreports

Automate Email and Calendar in PowerShell

Cross-provider email and calendar automation in PowerShell using Nylas CLI. Read emails, create events, check availability, and schedule meetings from scripts.

powershellwindowsemailcalendar

Download Email Attachments in PowerShell

Download and process email attachments from any provider using Nylas CLI in PowerShell. Filter by file type, bulk download, and build attachment pipelines.

powershellwindowsattachmentsdownload

Read and Search Email in PowerShell

Read, search, and filter email from PowerShell using Nylas CLI. List unread, search by sender, extract bodies, pipe through Where-Object, and export to CSV.

powershellwindowsemailsearch

Send Gmail with OAuth2 in PowerShell

Send Gmail from PowerShell with OAuth2. Nylas CLI handles refresh tokens, service accounts, and Workspace consent — one command to authenticate and send.

gmailoauthoauth2powershell

Send-MailMessage Deprecated: PowerShell 7 Fix

Send-MailMessage is deprecated in PowerShell 7. Side-by-side migration to nylas email send for every common pattern, plus Basic Auth and TLS shutdown fixes.

powershellwindowssend-mailmessagemigration

Send Email from PowerShell

Send email from PowerShell using Nylas CLI. Replaces deprecated Send-MailMessage with OAuth2, HTML bodies, scheduling, and multi-recipient scripts.

powershellwindowsemailsend

CRM & Contacts

Export email data to Salesforce, HubSpot, Pipedrive, Zoho, and Dynamics 365.

Sync Contacts Across Gmail and Outlook

Read contacts from Gmail and Outlook with one tool, deduplicate them by email, and get change notifications — without building a sync engine yourself.

contactsgmailoutlooksync

Deduplicate Contacts from the Terminal

Pull contacts as JSON, group by lowercased email with jq to find duplicates, pick the most complete record, and delete the extras with nylas contacts delete.

contactsdedupejqcli

Export Contacts to CSV from the CLI

Pull contacts as JSON with the Nylas CLI and build a clean RFC 4180 CSV with jq's @csv operator and null-safe // empty fallbacks for ragged fields.

contactscsvjqexport

Give Your AI Agent a Contacts Directory

An agent account carries contacts on the same grant as email and calendar. Add contacts, resolve names to addresses, group recipients, and dedupe from the CLI.

agent-accountscontactsaiagent

Contacts API: Google vs Microsoft vs CardDAV

Compare Google People API, Microsoft Graph Contacts, and CardDAV (RFC 6352). Auth, CRUD, search, sync, rate limits, and a decision matrix for choosing.

contactsapicomparisongoogle-people

Manage Contacts from Terminal

List, search, create, and update contacts from the command line. Export to CSV, manage contact groups, and sync address books across Gmail and Outlook.

contactsaddress-bookcsvgroups

Export Email Data to Dynamics 365

Sync inbox data to Dynamics 365 Contacts, Accounts, and Activities. Map fields accurately, import via CSV or Dataverse Web API, and schedule CLI syncs.

crmdynamicsmicrosoftcontacts

Export Email Data to Zoho CRM

Export email and contact data from Nylas CLI into Zoho CRM. Map to Leads, Contacts, and Accounts. CSV import, REST API v2 upsert, Python and TypeScript.

crmzohoexportleads

Automate Email Draft Creation and Review

Generate pre-filled email drafts from templates with conditional logic. Batch-create follow-ups, route drafts for review, and schedule approved sends.

crmdraftstemplatesoutbound

Build Shell-Integrated Email Autocomplete

Build fuzzy email autocomplete for bash, zsh, and fish shells. Integrates fzf, rapidfuzz, or Fuse.js with contact frequency ranking and custom keybindings.

crmautocompletecontactsfzf

Map Communication Patterns Between Orgs

Map inter-org communication networks from email data. Identify key stakeholders, score relationship strength, and detect single-threaded risk via graphs.

crmcontactscompaniesrelationships

Import Email into Neo4j for Graph Analysis

Import email sender-recipient relationships into Neo4j or NetworkX. Write Cypher queries for shortest paths, community detection, and bridge connector analysis.

crmgraphneo4jnetworkx

CLI Mail Merge with Send-Time Optimization

Run mail merge from your terminal. Variable substitution, conditional content blocks, timezone-aware scheduling, send throttling, and deliverability safeguards.

crmoutboundemailsend

Parse Email Signatures for Contact Enrichment

Extract job titles, phone numbers, LinkedIn URLs, and company info from email signatures. Regex patterns, signature block detection, and cross-referencing.

crmcontactsenrichmentsignatures

Reconstruct Org Charts from Email CC Patterns

Infer reporting lines, detect managers from CC behavior, and estimate seniority from email response patterns. Build org charts from inbox data with Nylas CLI.

crmcontactscompanieshierarchy

Group Inbox by Corporate Email Domain

Organize your inbox by sender domain to find which companies email you most. Filter out freemail providers, map subsidiaries to parent orgs, and export to CSV.

crmcontactscompaniesemail

CRM Email Workflows — Organize, Enrich, Act

Turn your inbox into CRM intelligence. Group emails by company, build contact hierarchies, enrich profiles, and automate outbound — all from terminal.

crmcontactscompaniesemail

Export Email Data to Pipedrive

Export email and contact data from Nylas CLI into Pipedrive. Map to Persons, Organizations, Deals, and Activities. CSV and REST API with Python and TypeScript.

crmpipedrivecontactspersons

Export Email Data to HubSpot

Export email and contact data from Nylas CLI into HubSpot. Map to Contacts, Companies, and Engagements. CSV import, API v3 sync, Python and TypeScript.

crmhubspotcontactscompanies

Export Email Data to Salesforce

Export email and contact data from Nylas CLI into Salesforce. Map to Leads, Contacts, Accounts, and Tasks. CSV and REST API examples in Python and TypeScript.

crmsalesforcecontactsleads

Security & Deliverability

GPG encryption, API key rotation, SPF/DKIM/DMARC, and audit logging.

Send OTP and 2FA Codes by Email

Generate a cryptographically secure one-time code and send it by email from the terminal — no SMTP. Test the full round trip and learn email OTP's limits.

otp2faemailverification-codes

Microsoft Graph Mailbox Agent Best Practices

Least-privilege Graph scopes, throttling limits, and change notifications for an AI agent that reads and writes an Outlook mailbox — without an Azure app.

microsoft-graphai-agentsoutlookoauth-scopes

SMTP Reply Codes Explained

Decode SMTP reply codes: 2xx success, 4xx transient retry, 5xx permanent. Read bounce DSN enhanced codes and debug delivery from the terminal.

smtpemailbouncesdeliverability

OAuth PKCE for Email, Explained

What PKCE (RFC 7636) adds to the OAuth authorization-code flow for email: code_verifier, code_challenge, why public clients need it, and how Nylas runs it.

oauthpkceauthenticationsecurity

Email Bounce Codes Reference (DSN)

Decode bounce DSNs: RFC 3463 enhanced status codes (5.1.1, 5.2.2, 4.x.x), hard vs soft bounces, and finding them with nylas email search from:mailer-daemon.

emailbouncedsnrfc-3463

Validate Email Addresses from the CLI

Validate email addresses from the terminal with an RFC 5322 syntax check and a dig MX lookup, then gate nylas email send to cut hard bounces.

emailvalidationdeliverabilitydns

AI Agent Email Bounce Detection and Retry

Deterministic bounce rules for AI agents: classify soft vs hard from DSN codes, retry 4.x.x with backoff, suppress 5.x.x, and escalate edge cases to humans.

ai agentbounceretrysuppression

Soft Bounce vs Hard Bounce Explained

Soft bounces (4xx) are transient and retried for up to 5 days; hard bounces (5xx) are permanent. Code ranges, suppression rules, and terminal detection with the CLI.

bouncesoft bouncehard bouncesmtp

Custom Domains for Agent Accounts

Send and receive agent email from your own domain instead of *.nylas.email. What DNS records a custom domain needs, how to configure it, and when to skip it.

agent-accountscustom-domaindnsdkim

AWS SES vs Nylas: When to Use Each

Amazon SES sends bulk email cheaply from verified domains. Nylas reads and sends from a user's inbox across 6 providers. Pricing, sandbox, and a decision guide.

aws-sescomparisonemailapi

SPF, DKIM, and DMARC Explained

SPF, DKIM, and DMARC are the three DNS records that prove your email is legitimate. Record syntax, the 10-lookup limit, DMARC policies, and 2024 Gmail rules.

spfdkimdmarcemail

Handle Email Bounces from the CLI

Hard vs soft bounces and how to detect them with the message.bounce_detected webhook — then suppress hard bounces permanently to protect your sender reputation.

bouncedeliverabilitywebhooksdsn

Verify Webhook Signatures (HMAC Guide)

A webhook URL is public, so anyone can POST to it. Verify the HMAC signature on the raw body with a constant-time compare before acting, plus replay defense.

webhookssecurityhmacsignature

Postmark vs Nylas: When to Use Each

Postmark sends fast transactional email from your domain with separate message streams. Nylas reads and sends from a user's own inbox across 6 providers.

postmarkcomparisonemailapi

SparkPost vs Nylas: When to Use Each

SparkPost (now Bird) is a high-volume sender built for deliverability analytics. Nylas reads and sends from a user's own inbox across 6 providers. A decision guide.

sparkpostcomparisonemailapi

Service Account vs OAuth for Email Access

Service accounts give an app its own identity; user OAuth acts on a person's behalf. When to use each for email, the security trade-offs, and the simpler default.

service-accountoauthemailauthentication

Google Domain-Wide Delegation, Explained

Domain-wide delegation lets a service account act as any Workspace user. When you need it, the security trade-offs, and when per-user OAuth via Nylas is simpler.

google-workspacedomain-wide-delegationservice-accountoauth

OAuth Refresh Token Management for Email

Access tokens expire every 3,600 seconds; refresh tokens mint new ones. How refresh works, what revokes it, and how Nylas refreshes email tokens for you.

oauthrefresh-tokenemailauthentication

OAuth Scopes for Email, Explained

OAuth scopes decide what an app may read or send in a mailbox. How email scopes work on Google and Microsoft, least privilege, and how Nylas requests them for you.

oauthscopesemailauthentication

Password Reset Emails: Choosing an API

Password reset emails are latency-critical transactional sends. Compare SES, Postmark, SendGrid, and Nylas, meet Gmail's sender rules, and test the loop.

transactionalpassword-resetapideliverability

Email Auth: OAuth vs API Key vs App Password

Compare OAuth 2.0, API keys, and app-specific passwords for email API authentication. Security trade-offs, token lifetimes, provider support, and setup guides.

emailauthenticationoauthapi-key

Secure CLI Email: API Keys and Audit Logging

Manage Nylas CLI credentials securely. Rotate API keys, configure audit logging, enforce data policies, and meet SOC 2 requirements for email automation.

securitygpgencryptionspf

Fix UTF-8 BOM, Zero-Width Spaces, and MIME Bugs

Diagnose invisible Unicode characters that break email filters. UTF-8 BOM removal, zero-width space detection, quoted-printable decoding, and charset fixes.

unicodedebuggingencodingutf-8

SPF, DKIM, DMARC: Debug Email Deliverability

Check SPF records with dig, verify DKIM selectors, test DMARC policies, inspect auth headers, and diagnose bounce handling — all from your command line.

deliverabilityspfdkimdmarc

Send GPG Encrypted Email from CLI

Send and receive GPG/PGP encrypted email from your terminal using Nylas CLI. Auto-fetches keys from keyservers. Sign, encrypt, or both via RFC 3156 PGP/MIME.

gpgencryptionsigningsecurity

Concepts & Comparisons

Why AI agents need email, Gmail API pitfalls, and CLI tool comparisons.

Email APIs with Webhook Support Compared

SendGrid, Mailgun, and Postmark delivery-event webhooks vs Nylas mailbox triggers like message.opened and thread.replied, with a one-command webhook create example.

webhooksemail apisendgridmailgun

High-Volume Email APIs Compared

SendGrid, Mailgun, and Amazon SES vs contextual email APIs: throughput, dedicated IPs, and rate limits compared, plus why inbox workloads need a different API class.

email apicomparisonsendgridmailgun

CPaaS Providers Compared for Developers

CPaaS providers Twilio, Vonage, Sinch, and Bird compared for SMS and voice, plus where a contextual email and calendar API like Nylas fits alongside a CPaaS stack.

cpaascomparisonsmstwilio

Email API Free Tiers Compared

What six email API free tiers include: SendGrid, Mailgun, Postmark, Resend, Brevo, and Nylas — send caps, the one tier that expires, and fine-print sandbox limits.

email apifree tierpricingcomparison

Email Search Operators Compared

Gmail operators, Microsoft Graph $search and $filter, and IMAP SEARCH do the same job three incompatible ways. A side-by-side reference plus one CLI syntax.

email-searchgmailmicrosoft-graphimap

Best CLI Calendar Tools Compared

Compare gcalcli, khal, calcurse, remind, vdirsyncer, and Nylas CLI for terminal calendar management. Features, providers, sync, and installation.

calendarclicomparisongcalcli

Calendar CLI Tools Compared

Compare gcalcli, Google Workspace CLI, khal, calcurse, and Nylas CLI for terminal calendar management. Feature matrix, provider coverage, and setup benchmarks.

calendarclicomparisongcalcli

Email API Rate Limits: Every Provider

Gmail API quota units, Microsoft Graph throttling, Yahoo IMAP, Exchange EWS, and iCloud rate limits compared with retry strategies and SMTP error codes.

rate-limitsgmail-apigraph-apithrottling

Email CLI Tools Compared

Compare 7 email CLI tools: Nylas CLI, Himalaya, aerc, NeoMutt, msmtp, mailx, and swaks. Covers OAuth, JSON, send without SMTP, and AI agents.

comparisonhimalayaaercneomutt

Fix Google API 412 Errors (ETag, If-Match)

Google Calendar returns 412 Precondition Failed on stale ETags. Gmail skips ETags entirely. Fix If-Match, If-None-Match, and conditional update errors.

google-calendargmailapietag

More Guides

Additional tutorials and walkthroughs.

Courier vs Nylas: Notifications vs Email

Courier.com orchestrates outbound notifications — email, SMS, push, Slack. Nylas reads mailboxes, syncs calendars, and supports AI agents. Scope comparison.

courier-vs-nylascourier.com alternativenotification apiemail api

Google Workspace CLI: Limits and Alternative

What gws covers, where its OAuth scope limits and pre-1.0 status bite, and when a multi-provider email and calendar CLI is the better fit.

googleworkspacegwscli

MailerSend vs Nylas: Email Compared

MailerSend sends transactional email from verified domains. Nylas reads and syncs user inboxes across 6 providers. Compare features, pricing, and use cases.

mailersendcomparisonemailapi

SavvyCal vs Nylas: Scheduling Compared

SavvyCal is a scheduling SaaS for end users. Nylas is the API and CLI for building scheduling into your product across Google, Microsoft, and iCloud calendars.

savvycalcomparisonschedulingcalendar-api

Customer.io vs Nylas: Email Compared

Customer.io sends lifecycle emails to your user base. Nylas reads and sends from real user inboxes via OAuth. Compare use cases, pricing, and AI agent support.

customer.iocomparisonemailapi

Knock vs Nylas: Notifications vs Email API

Knock delivers multi-channel product notifications via workflows; Nylas provides two-way email and calendar sync. Compare scope, pricing, and agent support.

knockcomparisonnotificationsemail

Make.com vs Nylas: Email & Calendar

Make.com automates 3,511 apps via no-code scenarios, free to 1,000 credits. Nylas is a developer email and calendar API with webhooks and a CLI. Compare scope.

make.comcomparisonno-codeemail-automation-api

Pipedream vs Nylas for Email Automation

Pipedream wires 3,000+ apps with event workflows and code steps. Nylas is a native email API with a CLI for agents and cron. Compare as a Pipedream alternative.

pipedreamcomparisonemail automationemail api

Apideck vs Nylas: Unified API Compared

Apideck covers CRM, HRIS, accounting, and 9+ API categories. Nylas goes deep on email, calendar, and contacts with agent containment and an open-source CLI.

apideckcomparisonunified-apiemail-api

Paragon vs Nylas: Embedded Integrations

Paragon is an embedded iPaaS for broad SaaS integrations; Nylas is a focused email and calendar API. Compare scope, pricing, AI agent support, and CLI tooling.

paragon vs nylasuseparagon alternativeembedded ipaasemail api integration

Composio vs Nylas: Agent Tools Compared

Composio gives AI agents 1,000+ app integrations with managed auth. Nylas gives agents deep email, calendar, and contacts with deterministic outbound rules.

composio vs nylascomposio alternativeai agent toolsemail api for agents

Build a Feedback-Request Email Agent

Send post-purchase feedback requests from an agent inbox, classify replies as positive, negative, or feature requests, and route negatives to a human fast.

agent accountsfeedbacknpsemail automation

Build a Waitlist Notification Agent

Run a waitlist notification agent on a dedicated inbox: the CLI manages queue order, sends time-boxed claim offers, and rolls to the next person on no-reply.

waitlist notification agentwaitlist email automationspot available notificationagent account waitlist

Build an Appointment-Reminder Agent

Build an appointment-reminder agent with Nylas CLI: poll the calendar, send T-24h and T-1h reminder emails, and process reply confirmations to cut no-shows.

agent accountcalendaremail automationappointment reminder

Build a Renewal-Reminder Email Agent

Build a renewal agent that sends staged T-30, T-7, and T-1 reminder emails, classifies replies as renew/cancel/question, and routes hot renewals to sales.

agent-accountrenewal-reminder-agentsubscription-renewal-email-automationcontract-renewal-reminders

Build an Onboarding Email Agent

Gallup: 12% of new hires feel well onboarded. Build an agent that sends day-0 welcome email, books orientation, and escalates non-responders on one inbox.

onboarding email agentemployee onboarding automationagent account onboardingautomated onboarding sequence

Build an Expense-Approval Email Agent

An AI agent reads expense submissions, extracts amount and category, routes under-threshold items for auto-approval, and escalates the rest to a human approver.

expense approval agentexpense email automationagent account approval workflowai expense agent

Export Calendar Events to CSV & JSON (CLI)

Export calendar events to CSV or JSON from the terminal. Use nylas calendar events list with jq to build backup files, reports, and spreadsheets in seconds.

calendarexportcsvjson

Detect Calendar Conflicts from the CLI

Spot double-booked meetings and overlapping events from the terminal. AI conflict detection and jq scripts catch calendar conflicts before they derail your day.

calendarconflictsdouble-bookingjq

Block Focus Time on Your Calendar (CLI)

Context-switching costs 23 minutes of focus per interruption. Block focus time on Google Calendar from your terminal so meetings can't eat your deep-work slots.

calendarfocus-timedeep-workautomation

Calendar Analytics from the Terminal

Measure meeting load from the terminal with calendar analytics. Count total hours, recurring vs one-off meetings, and busiest days using jq and Nylas CLI.

calendaranalyticsjqmeetings

Build a Dify Email Agent

Wrap the Nylas CLI as a Dify custom tool: upload one OpenAPI schema and your Dify email agent reads, searches, and drafts across Gmail, Outlook, and 4 more.

difyai-agentsemaillow-code

Build a Flowise Email Agent

Add email to a Flowise agent with a Custom Tool that calls a local Nylas CLI HTTP wrapper — read, search, and draft across Gmail and 5 more providers, no SDK.

flowiseemailai-agentscustom-tool

Build a smolagents Email Agent

Give a smolagents agent email by defining a @tool that shells out to Nylas CLI — JSON output, no provider SDK, works across Gmail, Outlook, and four more.

smolagentsai-agentsemailpython

Build an Agno Email Agent

Give an Agno agent email by passing Nylas CLI as a plain Python function tool — reads Gmail in under 50ms, no provider SDK, no OAuth code in your agent.

agnoai-agentsemailpython

Build a Letta (MemGPT) Email Agent

Give a Letta agent email: register a custom tool that calls the Nylas CLI, so it reads Gmail threads in JSON and remembers senders and threads across sessions.

lettamemgptai-agentsemail

OpenAI Agents SDK Email Tools

Give an OpenAI Agents SDK agent email by wrapping the Nylas CLI as a @function_tool. One subprocess returns JSON from Gmail, Outlook, and 4 more providers.

openai agents sdkfunction_toolai agentemail

Build a Google ADK Email Agent

Give a Google ADK agent email by wrapping the Nylas CLI as a FunctionTool: one subprocess per action, JSON in and out, across six providers, no SDK needed.

google-adkai-agentsemailpython

Add Email Sync to Your App Without IMAP

Skip per-mailbox IMAP IDLE connections. Use webhooks for push and on-demand reads for backfill, prototyped from the terminal — and know when IMAP still wins.

email-syncimapwebhookssaas

Schedule Healthcare Appointments from the CLI

Offer patients open slots, book the appointment, and send 24-hour and 2-hour reminders to cut no-shows — while keeping PHI out of email subjects and logs.

schedulinghealthcareappointmentsreminders

Automate Interview Scheduling from the CLI

Find a slot that fits the candidate and the interview panel, book it with invites, and send a confirmation plus a reminder — one script, not a dozen emails.

schedulingrecruitinginterviewscalendar

Calendar Availability API for a Booking Page

Generate open time slots from a real calendar as JSON, render them on a booking page, and book without double-booking — all prototyped from the terminal.

calendaravailabilityschedulingbooking

Track Email Opens, Clicks, and Replies

Send tracked email and receive open, click, and reply events over webhooks from the terminal. Verify the signatures, and learn why email open rates overcount.

email-trackingwebhooksopensreplies

Are Gmail Attachment IDs Stable?

Gmail attachment IDs are not globally unique and not stable across messages. Here's why the same file gets a different attachmentId, and how to download it.

gmail-apiattachmentsattachmentIdreference

Gmail API Eventual Consistency Explained

A message you just sent or labeled may not appear in the Gmail API right away. Eventual consistency explains the lag, the 404 on historyId, and the fix.

gmail-apieventual-consistencyhistoryIdsync

Track Event RSVPs from the Terminal

Send calendar invites, read RSVP status from the event JSON, and email the non-responders — a closed event RSVP tracking loop run from the CLI.

calendarrsvpeventsautomation

Email Yourself a Daily Calendar Agenda

Pull today's calendar events with nylas calendar events list --json, format them with jq, and email a daily agenda to yourself or a team on a cron.

calendaremailautomationcron

Send Payment Reminder Emails from CLI

Schedule dunning emails with one command, gated on a live invoice status check in a bash script. Cancel each reminder the moment an invoice is paid.

emailautomationbashscheduling

Automate Customer Onboarding Emails

Run a multi-day onboarding sequence from a signup hook with nylas email send --schedule and hosted templates — no marketing platform, no SMTP.

emailautomationonboardingtemplates

Automate Sales Follow-Up Emails (CLI)

Run a sales follow-up cadence from the terminal: send tracked touches, read replies on a schedule, and stop the sequence on the thread.replied webhook.

salesemail automationfollow-upwebhooks

Build an Inngest AgentKit Email Agent

Wrap the Nylas CLI as an Inngest AgentKit tool whose handler runs inside step.run — one subprocess per action, JSON in and out, retries handled by Inngest.

inngestagentkitai-agentsemail

Build a CopilotKit Email Agent

Expose the Nylas CLI to a CopilotKit copilot as a useCopilotAction tool: one subprocess per action returns JSON across Gmail, Outlook, and four more providers.

copilotkitai agentemailreact

Build a DSPy Email Agent

Wrap the Nylas CLI as a dspy.Tool and hand it to a dspy.ReAct module — one subprocess per action, JSON in and out, across six email providers.

dspyai-agentemailpython

Build a watsonx Email Agent

Wrap the Nylas CLI as a Python tool, bind it to ChatWatsonx, and give an IBM watsonx.ai agent email across six providers — sends stay behind a human.

ai agentswatsonxpythonemail

Azure AI Agent Service: Email Tools

Register the Nylas CLI as an Azure AI Agent Service function tool — one subprocess per action returns JSON across six providers, no Entra app registration.

azure ai agentemailai agentsfunction calling

Give an AWS Bedrock Agent Email

Back an Amazon Bedrock Agent action group with a Lambda that shells out to the Nylas CLI — JSON in and out, six providers, no per-provider OAuth.

bedrockai agentsawsemail

Build a LangChain4j Email Agent

Give a LangChain4j (Java) agent email by exposing the Nylas CLI as a @Tool method: one subprocess per action, JSON in and out, six providers.

langchain4jai agentsemailjava

Build a Spring AI Email Agent

Register the Nylas CLI as a Spring AI @Tool method in Java — one subprocess returns JSON from Gmail, Outlook, and four more providers, no SDK or OAuth code.

spring aiai agentjavatool calling

Build a Haystack Email Agent

Wrap the Nylas CLI as a Haystack custom component and Tool — one subprocess per action, JSON in and out, across six providers, no SDK.

haystackai-agentemailpython

Send Email with Hosted Templates (CLI)

Render and send Nylas-hosted email templates from the terminal — fill variables server-side with --template-data and preview the merge with --render-only.

emailtemplatestransactionalautomation

Tag and Filter Emails with Metadata

Attach custom key-value email metadata at send time with nylas email send --metadata, then filter messages by the indexed keys key1-key5.

email metadataemailclifiltering

Manage Email Signatures from the CLI

Store, list, update, and apply reusable email signatures from the terminal, then append the right footer to any send by ID.

emailsignaturescliautomation

AI Calendar Assistant from the Terminal

Use nylas calendar schedule ai and calendar ai for natural-language scheduling, focus-time protection, conflict resolution, and meeting-context extraction.

calendaraischedulingautomation

Set and Respect Calendar Working Hours

Keep calendar bookings inside working hours from the CLI: availability find returns in-hours slots, events create validates them, --ignore-working-hours overrides.

calendarworking hoursschedulingavailability

Manage Virtual Calendars from the CLI

Create, list, inspect, and delete provider-independent calendars for rooms, equipment, and contractors with nylas calendar virtual — no connected account.

calendarvirtual calendarschedulingconference rooms

IMAP IDLE Explained (RFC 2177)

How IMAP IDLE works under RFC 2177: the 29-minute re-issue rule, why it needs a persistent socket per mailbox, and the webhook push alternative.

imap idlerfc 2177email syncwebhooks

Batch Modify Gmail Labels (API + CLI)

Apply label changes to many Gmail messages at once with the batchModify endpoint (addLabelIds/removeLabelIds), plus the cross-provider Nylas CLI equivalent.

gmaillabelsbatchmodifyemail

Give an AutoGPT Agent Email

Add an AutoGPT Block that shells out to the Nylas CLI — one subprocess per action, JSON in and out, across six providers, with sends kept behind a human.

autogptai-agentemailpython

Build a Marvin Email Agent

Give a Marvin (Prefect) AI agent email by passing a Nylas CLI subprocess as a tool function — JSON in and out, six providers, sends kept behind a human.

marvinai agentsemailpython

Build a CAMEL-AI Email Agent

Wrap the Nylas CLI as a CAMEL-AI FunctionTool: one subprocess per action, JSON in and out, across six email providers — and keep sends behind a human.

camel-aiai agentemailpython

Build a Griptape Email Agent

Wrap the Nylas CLI as a Griptape custom Tool: subclass BaseTool, decorate methods with @activity, shell out to nylas email list/search/drafts across six providers.

ai agentsgriptapeemailpython

Send Incident Emails from the CLI

Send severity-gated incident email from a shell script with nylas email send, as a lightweight notifier alongside PagerDuty. No SMTP host.

incidentpagerdutyon-calldevops

Email Prometheus Alerts without SMTP

Send Prometheus Alertmanager alerts to email via a webhook receiver that runs nylas email send, instead of configuring Alertmanager's built-in SMTP relay.

alertmanagerprometheusmonitoringwebhook

Send Argo CD Email Notifications

Email on Argo CD sync and health changes by running nylas email send from a notifications trigger or sidecar — no SMTP relay, no mailbox password in your GitOps repo.

argocdgitopskubernetesdevops

Send Email from Azure Pipelines

Install the Nylas CLI in an Azure Pipelines job, authenticate from a secret variable, and run nylas email send on failure — no SMTP server needed.

azure pipelinesazure devopsci/cdemail notifications

Send Email from CircleCI Pipelines

Send CircleCI email notifications on failed builds with Nylas CLI: auth from a context env var and email with a when: on_fail step, no SMTP host or orb.

circleciemail notificationsci/cddevops

Create ClickUp Tasks from Email (CLI)

Turn email into ClickUp tasks from the terminal: pull messages as JSON with the Nylas CLI, then POST to the ClickUp API task endpoint with a list ID and token.

clickupemailautomationintegration

Send Email to Mattermost (CLI)

Route email into a Mattermost channel from the terminal: pull messages as JSON with the CLI, build the payload with jq, and curl an incoming webhook.

email to mattermostmattermost webhookincoming webhookjq

Load Email into BigQuery (CLI)

Export email as JSON with the CLI, shape rows with jq, and load them into BigQuery via bq load or the streaming tabledata.insertAll API.

email to bigquerybigquerybq loadjq

File Linear Issues from Email (CLI)

Turn bug-report email into Linear issues from the terminal. Pull messages as JSON with the CLI, then POST a GraphQL issueCreate mutation with a team ID.

email to linearlinear apigraphqlissuecreate

Create Zendesk Tickets from Email (CLI)

Pull inbound email as JSON with the CLI, map subject and sender to a ticket object, and POST to the Zendesk Tickets API. With external_id dedupe.

zendeskemailticketssupport

Send Email to Telegram (CLI)

Forward emails to a Telegram chat from the terminal: pull messages as JSON with the CLI, shape them with jq, and POST to the Telegram Bot API sendMessage.

email to telegramtelegram bot apiemail notificationsjq

Turn Emails into Trello Cards (CLI)

Turn email into Trello cards from the terminal: pull messages as JSON with the CLI, reshape with jq, then POST to the Trello cards API. No paid connector.

email to trellotrello apijqemail automation

Create Jira Issues from Email (CLI)

Create Jira issues from email in the terminal: pull messages as JSON with the Nylas CLI, map fields with jq, and POST to the Jira REST API v3 /issue endpoint.

jiraemailautomationrest-api

Auto-Organize Incoming Email by Rule

Auto label incoming email from the terminal. A message.created webhook runs deterministic rules; nylas email mark and folder IDs sort each message.

emailwebhooksautomationrules

Get Alerts for VIP Sender Emails

Fire an alert when a VIP emails you: a message.created webhook checks the sender against an allowlist, or poll with nylas email search on a cron.

webhooksemailautomationnotifications

Analyze Email Headers from the Terminal

Inspect Received, Authentication-Results, SPF, DKIM, DMARC, and Message-ID headers from the CLI to trace delivery and spot spoofing.

emailheadersspfdkim

Microsoft Graph Delta Query Explained

How Graph delta query gives incremental mailbox sync: the skipToken cursor, the @odata.deltaLink you persist, the 410 Gone resync, and how the CLI hides it.

graph apidelta queryincremental syncoutlook

Send Email from Google Cloud Build

Send build failure emails from Google Cloud Build with the CLI. Pull the API key from Secret Manager and run a send step on failure, no SMTP relay.

google cloud buildci/cdemail notificationssecret manager

Send Sentry Issue Alerts by Email (CLI)

Turn a Sentry issue alert webhook into an enriched email with nylas email send: parse the issue title, level, and permalink, then route by severity.

sentrywebhookemail alertsdevops

Send Grafana Alert Emails without SMTP

Point a Grafana webhook contact point at a handler that runs nylas email send to route alert emails without configuring the built-in SMTP server.

grafanaalertingwebhookdevops

Send Email from Buildkite Pipelines

Send build failure email from a Buildkite pipeline with Nylas CLI: install in a step, auth from a pipeline secret, and run nylas email send --yes on non-zero exit.

buildkiteemail notificationci/cddevops

Export an Email to PDF from the CLI

Archive any email as a print-ready PDF: pull the HTML body with nylas email read --json, extract it with jq, and render with wkhtmltopdf or headless Chromium.

email to pdfwkhtmltopdfheadless chromiumemail archive

Load Email into Snowflake (CLI)

Export email as JSON with the Nylas CLI, stage it with PUT, and COPY INTO a Snowflake VARIANT column using snowsql or the SQL API — with an idempotent MERGE.

email to snowflakesnowflake variant jsoncopy into snowflakesnowsql

Create monday.com Items from Email

Turn email into monday.com items from the terminal: pull messages as JSON with the CLI, then POST a GraphQL create_item mutation with your board ID.

email to monday.commonday.com apicreate_item mutationgraphql

Create Asana Tasks from Email (CLI)

Turn email into Asana tasks: pull messages with nylas email search --json, then POST to the Asana API /tasks endpoint with a project GID and token.

email to asanaasana apitask automationemail automation

Create GitHub Issues from Email (CLI)

Turn inbound email into GitHub issues: pull messages as JSON with the Nylas CLI, shape with jq, and POST to the GitHub REST API issues endpoint.

githubemailrest-apiautomation

Save Email Attachments to Dropbox

List and download email attachments with the Nylas CLI, then upload each file to the Dropbox files/upload endpoint with a bearer token on a schedule.

emaildropboxattachmentsautomation

Save Email Attachments to Google Drive

List inbound attachments as JSON, download each file, then upload to the Google Drive API with a single multipart request. Run it on a schedule for free.

emailgoogle driveattachmentsautomation

Send Yourself Follow-Up Reminders

Find sent threads with no reply via nylas email threads and search, then email yourself a follow-up reminder on a cron with a scheduled send.

emailautomationfollow-upreminders

Bulk-Archive Old Emails from the CLI

Select aged mail with nylas email search --before a cutoff date, then archive each message in a guarded, idempotent, rate-aware loop you can safely re-run.

emailarchivecliautomation

Microsoft Graph Batch Requests Explained

How Microsoft Graph $batch packs 20 requests into one call: per-item 429s, dependsOn ordering, the 4 MB cap, and why the CLI removes raw batching.

graph api batchmicrosoft graphoutlookjson batching

IMAP SEARCH Syntax Reference

IMAP SEARCH keys from RFC 9051 — FROM, SUBJECT, SINCE, UNSEEN, HEADER, TEXT, BODY — and how nylas email search flags map onto them across providers.

imapsearchreferencerfc9051

Track Calendar Attendee Responses

Read accepted, declined, and no-response RSVP status from event JSON, count each bucket, and email the people who never replied — all from the terminal.

calendarattendee trackingrsvpcli

Run a Meeting Time Poll from the CLI

Run a Doodle-style meeting poll from the terminal: propose slots, screen each against participants' calendars, email a shortlist to vote, then book the winner.

calendarschedulingmeeting pollavailability

Build a Langflow Email Agent

Wrap the Nylas CLI in a Langflow custom component — one subprocess per action, JSON in and out, across six email providers, no provider SDK needed.

langflowai agentemailcustom component

Build a Lyzr Email Agent

Register the Nylas CLI as a Lyzr Automata Tool — one subprocess per action, JSON in and out, across six providers, with sends kept behind a human.

lyzrai-agentsemailpython

Build a Julep Email Agent

Expose the Nylas CLI as a tool in a Julep task definition — one subprocess per action, JSON in and out, across Gmail, Outlook, and four more providers.

julepai agentemail agentpython

Build an Agency Swarm Email Agent

Wrap the Nylas CLI as an Agency Swarm BaseTool — one subprocess per action, JSON in and out, across six providers, with sends kept behind a human.

agency swarmai agentemail agentpython

Load Email into MySQL from the CLI

Load email into MySQL from the terminal. Pull messages as JSON, shape rows with jq, and INSERT a JSON column for the raw message plus typed columns for fast filters.

email to mysqlmysqljson columnimport email

Relay Inbound Email to a Webhook

Forward inbound email to any HTTP endpoint as signed JSON. Fire on a message.created webhook or a search loop, with HMAC signing and idempotent retries.

email to webhookinbound email webhookmessage.created webhookhmac signed webhook

Push Email into a Coda Doc (CLI)

Pull email as JSON with the Nylas CLI and insert one row per message into a Coda table via the Coda API rows endpoint. Upsert on message ID to avoid duplicates.

email to codacoda apiemail automationjq

Load Email into SQLite from the CLI

Pull email as JSON with the Nylas CLI, then INSERT into a SQLite table with a JSON column. Query your mailbox offline with full SQL.

email to sqlitesqlitejson columnjq

Index Email into Elasticsearch (CLI)

Pull email as JSON with the Nylas CLI, shape each message with jq, and bulk-index into Elasticsearch via the _bulk API for full-text inbox search.

email to elasticsearchelasticsearchfull-text searchbulk api

Create Confluence Pages from Email

Pull email as JSON with the Nylas CLI and POST to the Confluence Cloud REST API /wiki/api/v2/pages with a space ID. One page per message, on a schedule.

email to confluenceconfluence apiconfluence cloudemail automation

Save Email Attachments to OneDrive

List and download email attachments with the Nylas CLI, then PUT each file to the Microsoft Graph /me/drive content endpoint to store it in OneDrive.

emailonedriveattachmentsmicrosoft-graph

Automate Scheduling and Email Follow-Ups

Find a shared slot, send the calendar invite, and chase non-responders automatically: availability find, events create, and email send --schedule on a cron.

schedulingfollow-upautomationcalendar

Send Email Alerts to Microsoft Teams

Forward matching email into a Teams channel after the connector retirement: nylas email search JSON piped to a Power Automate Workflows webhook as an Adaptive Card.

teamswebhooksautomationadaptive cards

Calendar API Time Zone Handling Explained

IANA vs Windows zone IDs, all-day events without zones, DST drift in recurring series, and pinning an event to one display zone with --lock-timezone from the terminal.

calendartimezonecalendar apidst

Google Calendar API Quotas and Limits

Google Calendar API quota reference: 10,000 requests/min per project, 600 per user, 403 vs 429 usageLimits errors, backoff math, and quota-free CLI calendar reads.

google calendarapi quotasrate limitsexponential backoff

Test Email Flows with Playwright

Poll a real inbox from Playwright with expect.poll and nylas email search --json to test signup confirmation, password reset links, and OTP codes — no mock SMTP, CI ready.

playwrightemail testinge2e testingotp

Exchange Server Calendar API Options

EWS blocking starts for Exchange Online October 1, 2026. Compare EWS, Microsoft Graph, and a unified CLI for Exchange calendar access by deployment type.

exchangecalendarewsmicrosoft graph

Mailx Alternative: Send Mail Without an MTA

Replace mailx and mail(1) with one OAuth-backed command — no Postfix, no smtp= settings, no daemon. Includes a flag-by-flag mailx-to-CLI migration table and cron patterns.

mailxlinuxemailterminal

Fix Garbled Email Encoding (Mojibake)

Diagnose mojibake from raw MIME headers: charset mismatches, double-encoded UTF-8 (é for é), and quoted-printable =C3=A9 artifacts, with byte-level iconv fixes.

troubleshootingencodingmojibakeutf-8

Send Email in Rust: lettre and Email APIs

Three ways to send email in Rust: lettre over SMTP, reqwest against the Gmail REST API, and std::process::Command calling the CLI for OAuth-backed multi-provider sending.

rustlettresmtpreqwest

Send Email in C#: MailKit, Graph API, CLI

SmtpClient is no longer recommended. Compare MailKit over SMTP, Microsoft Graph sendMail, and a CLI subprocess for C#, plus an ASP.NET Core 2FA OTP endpoint.

c#mailkitmicrosoft graphsmtp

Send Email in Ruby: Net::SMTP, Mail Gem, CLI

Three ways to send email in Ruby: Net::SMTP from the stdlib, the mail gem and ActionMailer in Rails, or a CLI subprocess with OAuth and no app passwords.

rubynet-smtpmail-gemactionmailer

Send Email in Java: Jakarta Mail and APIs

Four ways to send email in Java: Jakarta Mail over SMTP, Spring Boot's JavaMailSender, the Gmail REST API, and a ProcessBuilder CLI call, compared in one table.

javajakarta mailspring bootsmtp

Send Email in PHP: mail(), PHPMailer, CLI

Three ways to send email in PHP: why mail() reports success without delivering, PHPMailer over SMTP with app passwords, and exec() to the CLI for OAuth-backed sending.

phpemailsmtpphpmailer

Send Email in Go: net/smtp, APIs, and CLI

Four ways to send email from Go: the frozen net/smtp package, the maintained go-mail library, the Gmail REST API, and a CLI subprocess via os/exec, compared in one table.

golangsmtpemailgmail api

Send and Parse Email with One API

Send with nylas email send and parse replies with nylas email search on one grant — no separate inbound-parse product, MX record, or multipart payload to unpack.

email apiinbound emailsend emailparse email

Fireflies vs Nylas Notetaker: Meeting Bots

Fireflies is a meeting-notes app with a GraphQL API for reading transcripts. Nylas Notetaker sends bots to any Zoom, Meet, or Teams call via API and CLI.

firefliesnotetakermeeting botstranscription

Kloudless Alternatives for Unified APIs

Kloudless was discontinued after the 2021 Netskope acquisition. Map each category to a live successor: Nylas for email and calendar, Apideck or Merge for the rest.

kloudlessunified apicomparisonemail api

Acuity Scheduling API Alternatives

Acuity's API manages Acuity accounts, not booking in your product. Compare Cal.com, the Calendly API, and building booking on a calendar API from the terminal.

acuityschedulingcomparisoncalendar

OnSched vs Nylas: Scheduling API Comparison

OnSched is white-label booking infrastructure with its own appointment database; Nylas is the calendar and availability API on users' real calendars. Build vs buy.

onschedscheduling apibooking apicalendar availability

Truto vs Nylas: Unified API Comparison

Truto proxies 500+ integrations across 45+ SaaS categories in real time; Nylas syncs email, calendar, and contacts with webhooks. Which model fits your build?

trutocomparisonunified apiemail api

Unified.to vs Nylas: Unified API Comparison

Unified.to normalizes 465 integrations across 28 SaaS categories; Nylas goes deep on email, calendar, and contacts. Data models, webhooks, and when each wins.

comparisonunified apiunified.toemail api

EmailEngine vs Nylas: Self-Hosted vs Managed

EmailEngine is a self-hosted IMAP bridge: $995/year license, Redis, your own OAuth apps. Nylas is a managed API with calendar and contacts. Compare burden and cost.

comparisonemailengineself-hostedimap

Aurinko vs Nylas: Email API Comparison

Aurinko pairs a unified mailbox API with pre-built CRM sync logic. Nylas adds Yahoo and IMAP coverage, 27 webhook triggers, hosted OAuth, and an open-source CLI.

comparisonaurinkoemail apicalendar api

Twilio vs Nylas: Email API Comparison

Twilio (SendGrid) pushes SMS and email out from your domain. Nylas reads, sends, and syncs user inboxes and calendars over OAuth. Comparison table and decision guide.

twiliosendgridcomparisonemail-api

Authenticate Gmail on a Headless Server or VM

Authenticate to Gmail from a headless server or VM with no browser. Configure a Nylas API key, attach an existing grant, and send over HTTPS — no OAuth redirect.

gmailheadlessservervm

Migrate Off SendGrid: A Decision Guide

Leaving SendGrid? Route outbound mail to Resend, SES, or Postmark, and move Inbound Parse to a contextual API. A migration checklist and where each piece goes.

sendgridmigrationemailapi

Email API for SaaS Startups

SaaS apps need two kinds of email: transactional sends from your domain and contextual access to a user's inbox. Which to pick, and when you need both.

emailapisaasstartup

Google Calendar Push Notifications

How Google Calendar watch channels work, why the channel-token mismatch error happens, and how to get signed calendar webhooks with one CLI command instead.

google-calendarwebhookspush-notificationscalendar

Resend vs Nylas: When to Use Each

Resend is a developer-first transactional email API with React Email. Nylas reads and sends from a user's own inbox across 6 providers. A decision guide.

resendcomparisonemailapi

Unipile vs Nylas: Messaging & Email APIs

Unipile unifies LinkedIn, WhatsApp, and email in one API. Nylas goes deep on email, calendar, and contacts with Agent Accounts and a CLI. Compare scope and fit.

unipilecomparisonmessaginglinkedin

Outlook CLI: Manage Mail and Calendar

Run Outlook mail and calendar from the terminal — no Azure app registration. One OAuth login to list, send, and schedule across Microsoft 365 and Outlook.com.

outlookclimicrosoft-365command-line

neomutt vs aerc: Terminal Email Clients

neomutt and aerc are the two leading terminal email clients. Compare config, async performance, OAuth, and where an API-backed TUI fits the gap they leave.

neomuttaerctuiterminal

Send Email with curl from the Terminal

curl speaks SMTP, so one command sends mail — but it needs an app password, an open port, and a hand-built message. Working syntax, gotchas, and a simpler path.

curlsmtpemailterminal

Reply to an Email from the Command Line

Reply in the same thread from the terminal: find the message ID, run nylas email send --reply-to, and keep the headers that hold a conversation together.

replyemailthreadingcli

Email API vs SMTP: Which to Use

SMTP is a send-only protocol; an email API is HTTP that also reads, searches, and gets webhooks. What each does, where SMTP is still enough, and how to decide.

email-apismtpcomparisonprotocol

Schedule Meetings Across Time Zones (CLI)

Find a meeting slot that works in New York, London, and Tokyo from the terminal. Convert times, handle DST, find slots, and book it — offline, no API call.

timezoneschedulingcalendardst

Email Mail Merge from the Command Line

Send personalized bulk email from a CSV without a mail-merge add-on. Loop the Nylas CLI over rows, use hosted templates, throttle sends, and dry-run first.

mail-mergebulk-emailcsvtemplates

Microsoft Graph Calendar API Quickstart

Read and create Outlook calendar events with Microsoft Graph: app registration, Calendars scopes, /me/events, calendarView, and a one-login CLI shortcut.

microsoft-graphcalendaroutlookapi

CalDAV Explained: Protocol and Pitfalls

CalDAV is the open calendar protocol behind iCloud, Fastmail, and Yahoo. How discovery and iCalendar work, which providers use it, and what makes it painful.

caldavcalendarprotocolicloud

Gmail App Passwords: Setup and Gotchas

A Gmail app password is a 16-character key for IMAP/SMTP clients that can't do OAuth. How to create one, when you need it, the errors, and how to skip it.

gmailapp-passwordimapsmtp

Outlook Calendar Change Notifications

How Microsoft Graph calendar subscriptions work, the validationToken handshake, the ~3-day expiry, clientState verification, and a simpler signed-webhook path.

outlookmicrosoft-graphsubscriptionscalendar

Gmail Push Notifications (watch + Pub/Sub)

How Gmail's users.watch and Cloud Pub/Sub deliver new-mail notifications, why the 7-day watch expires, the historyId sync, and a simpler signed-webhook path.

gmailpush-notificationspub-subwebhooks

Cal.com vs Nylas: Build vs Buy Scheduling

Cal.com is an open-source scheduling product you embed. Nylas is the calendar API you build scheduling on. Compare build-vs-buy and provider coverage.

cal.comcomparisonschedulingcalendar

Mailgun vs Nylas: When to Use Each

Mailgun sends and routes email from your domain. Nylas reads and sends from a user's inbox across 6 providers. Pricing, inbound routing, and a decision guide.

mailguncomparisonemailapi

Brevo vs Nylas: When to Use Each

Brevo (ex-Sendinblue) sends marketing and transactional email from your domain. Nylas reads and sends from a user's own inbox across 6 providers. A decision guide.

brevosendinbluecomparisonemail

Merge.dev vs Nylas: Which Unified API?

Merge.dev is a unified API for HR, ATS, CRM, and accounting systems. Nylas is a unified API for email, calendar, and contacts inboxes. They cover different categories.

merge.devcomparisonunified-apiintegrations

Gmail API vs Nylas: When to Use Each

The Gmail API reads and sends Gmail only, with OAuth, quotas, and historyId sync you manage. Nylas wraps Gmail plus 5 providers behind one API. A decision guide.

gmail-apicomparisongmailemail

Microsoft Graph vs Nylas: Email & Calendar

Microsoft Graph is the API for Outlook and Microsoft 365 only. Nylas wraps Graph plus Gmail, iCloud, Yahoo, and IMAP behind one API. A build-vs-buy decision guide.

microsoft-graphcomparisonoutlookmicrosoft-365

Nodemailer vs Nylas: When to Use Each

Nodemailer is a Node.js library that sends mail through your own SMTP server. Nylas is a hosted API that reads and sends from a user's inbox across 6 providers.

nodemailercomparisonemailnode.js

Mandrill vs Nylas: When to Use Each

Mandrill is Mailchimp's transactional add-on, sending from your domain and requiring a paid Mailchimp account. Nylas reads and sends from a user's inbox across 6 providers.

mandrillmailchimpcomparisonemail

Loops vs Nylas: When to Use Each

Loops is a modern SaaS email platform for transactional and marketing sends from your domain. Nylas reads and sends from a user's own inbox across 6 providers.

loopscomparisonemailapi

Nango vs Nylas: Build vs Buy Email

Nango is managed OAuth and sync infrastructure for building your own integrations. Nylas is a finished email, calendar, and contacts API. A build-vs-buy guide.

nangocomparisonunified-apioauth

Front vs Nylas: When to Use Each

Front is a shared-inbox product your team logs into. Nylas is the email API you build your own inbox features on. Buy-the-app vs build-the-feature, compared.

frontcomparisonshared-inboxemail

Zapier Email vs Nylas: When to Use Each

Zapier is no-code automation that glues apps together by task. Nylas is a developer API for building email and calendar into your own product. A decision guide.

zapiercomparisonautomationno-code

Build a Pydantic AI Email Agent (CLI Tool)

Give a Pydantic AI agent email by wrapping the Nylas CLI as a typed tool — one subprocess call per action, JSON in and out, across six providers, with no SDK.

pydantic-aiai-agentemailtyped

Build a LlamaIndex Email Agent (CLI Tool)

Give a LlamaIndex agent email by wrapping the Nylas CLI as a FunctionTool — one subprocess per action, JSON in and out, across six providers, with no SDK.

llamaindexai-agentemailrag

Build a LangGraph Email Agent (CLI Tool)

Give a LangGraph agent email by wrapping the Nylas CLI as a tool node — one subprocess call per action, JSON in and out, across six providers, with no SDK.

langgraphai-agentemaillangchain

How to Evaluate an Email AI Agent

Evaluate an email agent with a labeled test set, classification and action-accuracy metrics, and prompt-injection guardrail tests you run on every change.

ai-agentevaluationemailtesting

RAG Over Email: Index & Query the Inbox

Build retrieval-augmented generation over a mailbox: pull messages with the Nylas CLI, embed and index them, then answer questions grounded in real email.

ragai-agentemailretrieval

Anthropic Tool Use for Email (CLI)

Give Claude email with Anthropic tool use: define tool schemas, run the tool-use loop, dispatch each call to the Nylas CLI. Six providers, no provider SDK.

anthropicclaudeai-agentemail

Semantic Kernel Email Agent (CLI Plugin)

Give a Semantic Kernel agent email by wrapping the Nylas CLI in a native plugin function — one subprocess per action, JSON in and out, across six providers.

semantic-kernelai-agentemailmicrosoft

OpenAI Assistants Email Tools (CLI)

Give an OpenAI assistant email with function calling: define tool schemas, dispatch each call to the Nylas CLI, return JSON. Six providers, no provider SDK.

openaiai-agentemailfunction-calling

Round-Robin Scheduling from the Terminal

Distribute meetings across a team with round-robin scheduling from the terminal. The Nylas CLI checks each member's availability and books the next free rep.

calendarround-robinclischeduling

Add Video Conferencing to Calendar Events

Attach a video conferencing link to a calendar event from the terminal. The Nylas CLI adds a meeting link when you create an event, across calendar providers.

calendarconferencingclimeeting-link

Generate an ICS File from the Terminal

Generate an .ics calendar file from the terminal. Read an event as JSON with the Nylas CLI and build a valid RFC 5545 VCALENDAR you can attach or import anywhere.

calendaricscliicalendar

Reschedule a Meeting from the Terminal

Move a calendar event to a new time from the terminal. The Nylas CLI updates the event and the provider notifies attendees across five calendar backends.

calendarreschedulecliupdate-event

Find a Meeting Time from the Terminal

Find a time that works for every attendee from the terminal. The Nylas CLI reads free/busy across calendars and returns open slots in seconds, with JSON output.

calendarfind-timeclifree-busy

RSVP to Calendar Invites from the Terminal

Accept, decline, or tentatively respond to calendar invites from the terminal. One command sets your RSVP across Google, Outlook, Exchange, iCloud, and Yahoo.

calendarrsvpcliinvites

Cancel a Calendar Event from the Terminal

Cancel a calendar event from the terminal in one command. Nylas deletes the event and notifies attendees across Google, Outlook, Exchange, iCloud, and Yahoo.

calendarcancel-eventclidelete-event

Fix the OAuth invalid_grant Error (Email)

The invalid_grant error means a refresh token is dead: revoked, expired, password changed, or clock skew. Diagnose each cause and recover the grant with a re-auth.

oauthinvalid-granttroubleshootingemail

Send Email from a Bash Script

Send email from a bash script with one command and no SMTP. Add conditional sends, exit-code checks, and HTML bodies with the Nylas CLI across six providers.

bashshell-scriptemailsend

Send Email Alerts from Terraform

Notify your team on Terraform apply without SMTP. Use a local-exec provisioner to run the Nylas CLI, with the API key from an environment variable, never state.

terraformemailnotificationsdevops

Send Email from a Kubernetes CronJob

Send scheduled email from a Kubernetes CronJob without an SMTP sidecar. Run the Nylas CLI in a hardened container, keying the API key from a Secret. Manifest included.

kubernetescronjobemaildevops

Send Email from Jenkins Pipelines

Send email from Jenkins without the Email Extension plugin or an SMTP server. Call the Nylas CLI in a post block to notify on build failure with one command.

jenkinsci-cdemailnotifications

Send Email from GitLab CI Pipelines

Send email from GitLab CI without SMTP. Install the Nylas CLI in a job, authenticate with a masked variable, and notify on pipeline failure with one command.

gitlab-cici-cdemailnotifications

Send Email to Discord with a Webhook (CLI)

Post email to a Discord channel from the terminal. Pull messages as JSON with the Nylas CLI and POST them to a Discord webhook as rich embeds. No bot to host.

discordemailwebhooknotifications

Export Email to CSV from the Terminal

Export email to a clean CSV from the terminal. Pull messages as JSON with the Nylas CLI and build RFC 4180 rows with jq's @csv, with headers and safe quoting.

csvemailexportjq

Sync Email to Amazon S3 from the Terminal

Archive email to Amazon S3 from the terminal. Export messages as JSON with the Nylas CLI and upload them with the AWS CLI, partitioned by date for cheap retrieval.

s3awsemailarchive

Load Email into Postgres from the Terminal

Load email into PostgreSQL from the terminal. Pull messages as JSON with the Nylas CLI and insert them with psql, using JSONB or typed columns. Idempotent upserts.

postgresemaildatabasejsonb

Send Email to Airtable from the Terminal

Create Airtable records from email in the terminal. Pull messages as JSON with the Nylas CLI, map fields with jq, and POST records to the Airtable API. No Zapier.

airtableemailintegrationapi

Send Email to a Notion Database (CLI)

Turn email into Notion database pages from the terminal. Pull messages as JSON with the Nylas CLI and create pages with the Notion API. No paid automation needed.

notionemailintegrationapi

Log Email to Google Sheets from the Terminal

Pipe email into a Google Sheet from the terminal. Pull messages as JSON with the Nylas CLI, shape rows with jq, and append them with the Sheets API. No add-ons.

google-sheetsemailintegrationjq

Draft Email with Smart Compose (CLI)

Generate email drafts from a prompt with the Nylas CLI's smart-compose. Draft fresh messages or context-aware replies, review them, and send only after a human check.

smart-composeaiemail-draftreply

Mark Emails Read, Unread, or Starred (CLI)

Mark email read, unread, or starred from the terminal with one command. Flip a single message or bulk-update from a search across Gmail, Outlook, and four more.

emailmark-readunreadstarred

Debug Email Delivery from the Terminal

Sent an email that never arrived? Diagnose it from the terminal: confirm it sent, check for bounces, and rule out spam, SPF, DKIM, and DMARC with the Nylas CLI.

email-deliverytroubleshootingbouncesspam

Fix 429 Rate-Limit Errors on Email APIs

A 429 means you're throttled. Honor the Retry-After header, add exponential backoff with jitter, and cut request volume. How rate limits differ across email providers.

429rate-limitthrottlingretry-after

Fix 'OAuth Token Expired' (401) for Email

A 401 'token expired' means the access token aged out after about 3,600 seconds. Refresh it, tell it apart from a dead refresh token, and let the CLI prevent it.

oauthtoken-expired401troubleshooting

Microsoft Graph Error Codes and Fixes

A reference for the Microsoft Graph errors developers hit most: 401, 403, 404, 429 throttling, and 503. What each means, the fix, and how the Nylas CLI avoids many.

microsoft-grapherror-codestroubleshootingthrottling

Gmail API Error Codes and How to Fix Them

A reference for the Gmail API errors developers hit most: 401, 403 rate limits, 412, 429, and 5xx. What each means, how to fix it, and how the CLI avoids many.

gmail-apierror-codestroubleshootingrate-limit

Python smtplib Wrapper: Build or Skip It

Build a thin wrapper around smtplib.SMTP with TLS defaults, retries, and connection reuse in 35 lines, and learn when a CLI call beats maintaining one.

pythonsmtplibsmtpwrapper

Gmail API Categories: Tabs, Labels, and Search

Gmail's 5 category labels map to inbox tabs. Why labelIds with two categories returns nothing, how category: search operators work, and CLI tab filtering.

gmailapicategoriestabs

Gmail API batchDelete: Bulk Delete Messages

Gmail API batchDelete permanently removes up to 1,000 message IDs per request, skipping trash. Limits, scopes, quota costs, and safer bulk-delete patterns.

gmailapibatchdeletebulk-delete

Gmail API: List Spam and Trash Messages

The Gmail API hides SPAM and TRASH from messages.list by default. Use includeSpamTrash, labelIds, or in:spam search to read them, in Python and the CLI.

gmailapispamtrash

Email Read Receipts: API Options Compared

Gmail's API has no read receipt endpoint. Compare RFC 8098 MDNs, Outlook's isReadReceiptRequested, Workspace receipts, and webhook-based open tracking.

read-receiptstrackinggmailoutlook

Extract Email Data from JSON with jq

jq recipes for email JSON: pull sender addresses, regex-scan addresses from any payload, group senders by domain, export CSV, and guard against empty input.

jqjsonscriptingemail

Recurring Calendar Events: RRULE Explained

RRULE syntax from RFC 5545 (FREQ, INTERVAL, BYDAY, COUNT, UNTIL), plus how Google, Microsoft Graph, and CalDAV expand recurring events and exceptions.

calendarrrulerecurring-eventsrfc-5545

caldav.icloud.com: iCloud CalDAV Settings

iCloud CalDAV settings: caldav.icloud.com over HTTPS port 443, app-specific password auth, principal discovery via PROPFIND, and a CLI path without CalDAV.

icloudcaldavcalendarapple

Gmail API Sandbox: Test Email Integrations

Gmail has no API sandbox. Compare the real options: a dedicated test account, the Amazon SES sandbox, fake SMTP inboxes, and nylas demo with sample data.

testingsandboxgmailapi

Monitor Email Integration Health from Terminal

Schedule nylas doctor health checks in cron, track API error rates from audit logs, test webhook endpoints, and send an alert email when a check fails.

monitoringreliabilitydoctoraudit-logs

Email API Pricing Models: Predict Your Costs

Per-connected-account vs per-message email API pricing compared, with worked cost examples at 5, 100, and 1,000 accounts, free tiers, and hidden costs.

pricingapicomparisonper-account

Handle Email API Outages: Backoff and Queues

Detect an email API outage in under 30 seconds, retry with exponential backoff, queue sends to a local spool, and flush it cleanly when service returns.

outagereliabilitybackoffqueue

Build Reliable Email Automation: 5 Patterns

Email automation fails silently: expired tokens, rate limits, duplicate sends. Five patterns fix it: exit codes, retries, idempotency, drafts, audit logs.

automationreliabilityretriesidempotency

Email API SLAs: Uptime vs Success Rate

What a 99.99% email API SLA guarantees: uptime vs success-rate measurement, downtime math per tier, error budgets, and CLI checks to verify reliability.

slareliabilityuptimesuccess-rate

Email Threads from Terminal: List, Read, Reply

List, read, and reply to email threads from the terminal with Nylas CLI. Group conversations by subject, navigate replies, and mark them as read in one command.

emailthreadsterminalcli

Manage Email Drafts from Terminal

Create, list, inspect, and send email drafts from the terminal. Use drafts as a safety net before any email goes out — works with Gmail, Outlook, and IMAP.

emaildraftscliterminal

Email Webhook Events: Developer Reference

Trigger types, payload shapes, retry behavior, and HMAC signature verification for Nylas email, calendar, contact, and grant webhook events — one place.

webhookeventsreferencetriggers

Calendar API Compared: Google, Microsoft, CalDAV

Google Calendar API, Microsoft Graph, and CalDAV each handle auth and events differently. Compare all three to find the right calendar integration for your app.

calendarapicomparisongoogle-calendar

Manage a Shared Mailbox from Terminal

Read, send, and manage shared mailbox email from the command line. Switch between personal and team grants, list messages, and send replies as the team address.

emailshared-mailboxclimicrosoft-365

Email to Slack Alerts from Terminal

Forward important emails to Slack channels automatically. Poll for new messages, filter by sender or subject, and post formatted alerts via incoming webhooks.

emailslacknotificationswebhooks

Back Up Email to JSON from Terminal

Export your entire mailbox to JSON files from the command line. Paginate through all messages, filter by date or folder, and automate daily backups with cron.

emailbackupjsonexport

Attendee vs Recall.ai: Meeting Bots Compared

Compare Attendee, Recall.ai, and Nylas Notetaker for meeting recording and transcription. Platform support, pricing, API access, and CLI integration compared.

meetingrecordingnotetakercomparison

Agent Rules and Policies: Complete Guide

Every condition, operator, action, and trigger for agent rules and policies. Block domains, archive outbound, star VIP senders, set send limits, and control spam.

agent-accountsrulespoliciesguardrails

Automate Meeting Notes to Email

Record meetings, generate AI summaries from transcripts, and email notes to attendees automatically. Combines notetaker bots with scheduled email sends.

meetingsnotetakeraitranscript

Summarize Email Threads with AI

Summarize long email threads with an LLM from the command line. Extract action items, decisions, and deadlines from threaded conversations in one pipeline.

aiemailthreadssummarize

Gmail Labels API: Create and Manage

Manage Gmail labels with the Gmail API. Create, list, modify, and apply labels to messages. Batch label operations, system vs user labels, and CLI alternatives.

gmaillabelsapibatch

Email Templates from the CLI

Create, manage, and send email templates from the command line. Variable substitution, HTML rendering, and reusable message patterns for outbound sends.

emailtemplateshtmlvariables

Move Emails Between Folders from CLI

Create folders, list folder contents, move emails between them, and rename or delete folders from the command line. Works across Gmail, Outlook, and IMAP.

emailfolderslabelsorganize

Schedule Emails from Terminal

Schedule email sends for future delivery from the command line. Time-zone-aware scheduling, business-hours delivery, and batch queuing across Gmail and Outlook.

emailschedulesend-laterbatch

Delete and Archive Email from CLI

Delete, archive, and bulk-clean email from the command line. Remove individual messages, archive old threads, and manage trash across Gmail, Outlook, and IMAP.

emaildeletearchivebulk

SendGrid vs Nylas: When to Use Each

SendGrid sends transactional email at scale. Nylas reads, sends, and syncs across 6 providers. Feature comparison, pricing, and a use-case decision guide.

sendgridcomparisonemailapi

Best Email API for Developers

Compare SendGrid, Mailgun, Amazon SES, Resend, Postmark, and Nylas for developer email. Pricing, features, deliverability, and use-case decision matrix.

emailapicomparisonsendgrid

Microsoft Graph Email API Quick Start

Send and read email with Microsoft Graph API. App registration, OAuth 2.0 scopes, delegated vs app-only auth, and error fixes for common 403 and 401 codes.

microsoft-graphgraph-apiazure-adoauth

Outlook SMTP Settings: Server, Port, TLS

Outlook SMTP server smtp.office365.com on port 587 with STARTTLS. Modern Auth OAuth 2.0 requirements, Basic Auth removal timeline, and sending limits.

outlooksmtpsmtp-settingsport-587

Send Email from Node.js

Send email from Node.js with Nodemailer SMTP, Gmail API client library, or CLI subprocess calls. Compare setup time, authentication, and provider support.

nodejsemailsmtpnodemailer

Automate Email Reports from Terminal

Build automated daily and weekly email reports with cron, JSON output, jq pipelines, and shell scripts. Schedule inbox summaries and deliver by email.

emailreportsautomationcron

Sync Calendars Across Providers

Compare ICS export, CalDAV, Google Calendar API syncToken, and Microsoft Graph delta queries for cross-provider calendar sync from the terminal.

calendarsyncicscaldav

Search Email from Terminal

Compare Gmail search operators, Graph API $filter, IMAP SEARCH, and Nylas CLI for searching email across providers from the terminal. Cross-provider syntax guide with examples.

emailsearchgmailgraph-api

Read Email from Your Terminal

Compare NeoMutt, aerc, and Nylas CLI for reading email in the terminal. Setup time, IMAP config, search, multi-provider support, and JSON scripting output.

emailclicomparisonneomutt

Cron Job Email Without Postfix

Send email alerts from cron jobs without Postfix, msmtp, or ssmtp. One CLI command replaces MAILTO plus a local MTA daemon. Disk, backup, and schedule examples.

cronemaillinuxbash

Send Email with Attachments from CLI

Send files from the command line without MIME encoding, Postfix, or mutt config. One command attaches PDFs, CSVs, logs, and images across Gmail and Outlook.

emailattachmentssendbash

Send Email from Python: SMTP, API, and CLI

Send email from Python with smtplib SMTP, Gmail API with OAuth 2.0, or CLI subprocess calls. Compare setup time, security, and provider coverage for each.

pythonemailsmtpsmtplib

Gmail SMTP Settings 2026: Ports, TLS, Auth

Gmail SMTP server smtp.gmail.com on port 587 with STARTTLS or port 465 with SSL. App password setup, OAuth 2.0 requirements, and sending limits for 2026.

gmailsmtpsmtp-settingsport-587

Parse and Download Email Attachments

Parse email attachments with Python imaplib, Node.js Gmail API, or a single CLI command. Compare MIME parsing, base64url decoding, and provider gotchas.

emailattachmentspythonnodejs

IMAP vs Gmail API vs Graph API

Compare IMAP, Gmail API, and Microsoft Graph for email integration. Auth, search, push, rate limits, and code examples — plus a protocol decision matrix.

imapgmail-apigraph-apiemail-protocol

Gmail CLI: Send Gmail from Command Line

Send Gmail from command line with Nylas CLI. Skip Gmail API client code, SMTP passwords, Postfix, and sendmail. Supports CC/BCC, scheduling, tracking, and JSON.

gmailgoogleemailsend

Gmail API Search Query Examples

Gmail API search query examples for q, labels, categories, date filters, attachments, and rfc822msgid. Compare direct API code with supported CLI filters.

gmailapisearchquery

Calendly Alternative for Developers

Build a developer-owned scheduling flow with Nylas CLI: find time, check availability, create events, and handle calendar webhooks.

calendlycalendarschedulingavailability

Email Signature Extraction from the CLI

Create, list, attach, and extract email signatures with Nylas CLI for outbound templates and contact enrichment workflows.

emailsignaturessignature-extractionsend

Mailtrap Alternative for Real Inbox Testing

Compare Mailtrap, Mailosaur, and Nylas Agent Accounts for testing transactional email flows with real inbox delivery.

mailtrapmailosauremailtesting

GitHub Actions Email Notifications

Send GitHub Actions email notifications on failed builds, deploys, and test runs with Nylas CLI and encrypted workflow secrets.

github-actionsemailcinotifications

Parse Inbound Email Webhooks

Register inbound email webhooks, verify signatures, and parse message.created payloads into JSON your app can process.

webhooksemailinboundmessage-created

Create Calendar Invites from the CLI

Create calendar invites from the command line with attendees, location, body text, busy status, and provider-sent notifications.

calendarinviteseventsics

Check Calendar Availability from Terminal

Check calendar availability and free/busy windows from the terminal with Nylas CLI before creating meetings or booking rooms.

calendaravailabilityfree-busyscheduling

Cypress Email Testing

Test password resets, magic links, and OTP emails in Cypress with a real inbox, Nylas CLI JSON output, and isolated agent accounts.

cypressemailtestinge2e

EWS Retirement Checklist

Inventory risky EWS scripts, test Exchange email and calendar access, and choose Graph API, CLI, or Agent Account migration paths before 2027.

exchangeewsretirementmigration

iCloud Mail API Alternative

Compare iCloud Mail access options for developers: IMAP settings, app-specific passwords, aliases, and a CLI path for search and send workflows.

icloudappleemailimap

Test Email Webhooks Locally

Test Nylas email webhooks locally with tunnel setup, signed payload checks, trigger discovery, and replayable fixtures before shipping handlers.

webhooksemaillocal-developmenttesting

Gmailify and POP3 Alternatives

Gmailify and Gmail POP fetching are ending for new users after Q1 2026. Compare forwarding, IMAP, mobile Gmail, and CLI inbox access.

gmailgmailifypop3imap

Google Calendar API Pagination and Sync

Google Calendar API pagination with nextPageToken on events.list, syncToken sync, recurring event expansion, and 410 Gone recovery. With working code.

google-calendarcalendarapipagination

Google Calendar Ownership Changes

Personal accounts lose orphan secondary calendars April 27, 2026. Workspace follows October 5, 2026. New ownership transfer API arrives June. Prepare now.

googlecalendarownershipapi

Gmail API Pagination and Sync Explained

Gmail API pagination with nextPageToken, incremental sync with historyId, maxResults defaults, and 429 rate limit recovery. Step-by-step code for every pattern.

gmailgoogleapipagination

Exchange Calendar CLI: Manage Events

Use an Exchange Calendar CLI to list events, create meetings, book rooms, and check availability from terminal. Skip EWS, Graph API, and PowerShell scripts.

exchangemicrosoftcalendarevents

iCloud Calendar CLI: Manage Events

Use an iCloud Calendar CLI to list events, create meetings, and check availability from terminal. Skip CalDAV setup and app-specific passwords in scripts.

icloudapplecalendarevents

Yahoo Calendar CLI: Manage Events

Use a Yahoo Calendar CLI to list events, create meetings, and check availability from terminal. Skip CalDAV setup and app-specific passwords entirely.

yahoocalendareventsavailability

Google Calendar CLI: Manage Events from Terminal

Use a Google Calendar CLI to list events, create meetings, check availability, and find mutual times from terminal. No Google API credentials needed.

googlegmailcalendarevents

Outlook Calendar CLI: Manage Events

Use an Outlook Calendar CLI to list events, create meetings, check availability, and book rooms from terminal without Graph API or Azure AD setup in scripts.

outlookmicrosoftcalendarevents

iCloud Mail CLI: Send Email from Terminal

Use an iCloud Mail CLI to send email from terminal without SMTP config or app passwords. Supports iCloud custom domains and Hide My Email aliases in scripts.

icloudappleemailsend

Outlook CLI: Send Email from Terminal

Use an Outlook CLI to send Microsoft 365 email from terminal without Graph API setup, Azure AD registration, MSAL token code, or SMTP config in scripts.

outlookmicrosoftoffice365email

Yahoo Mail CLI: Send Email from Terminal

Use a Yahoo Mail CLI to send email from terminal without SMTP config or app passwords. Send scheduled messages and CC/BCC over HTTPS with OAuth in scripts.

yahooemailsendsmtp

Record Zoom, Meet, and Teams from the CLI

Send a notetaker bot to any Zoom, Google Meet, or Microsoft Teams call from the command line. Get the recording URL and a full transcript back as JSON.

notetakermeetingrecordingtranscript

Extract OTP Codes from Email — Skip the Inbox

Pull 2FA verification codes from email without opening your inbox. The nylas otp get command copies the latest code to your clipboard across all providers.

otp2faverificationmfa

Manage Calendar Events from Terminal

Create, list, update, and delete calendar events from your terminal with Nylas CLI. DST-aware scheduling, timezone conversion, and AI-powered meeting finder.

calendareventstimezonedst

E2E Email Testing with Playwright

Test password reset, invitation, and verification emails end-to-end. Poll with Nylas CLI, verify content in Playwright, and click links. No Gmail config needed.

e2etestingplaywrightemail