Command

nylas webhook create

The nylas webhook create command registers a URL to receive real-time notifications when email, calendar, or contact events occur. Specify trigger types like message.created, event.updated, or contact.deleted. Webhooks fire within seconds of the event, replacing polling-based sync. Real-time delivery for agent account inboxes also runs through this command — replaces the deprecated nylas inbound monitor.

Written by Qasim Muhammad Staff SRE

What does nylas webhook create do?

The nylas webhook create command registers a URL to receive real-time notifications when email, calendar, or contact events occur. Specify trigger types like message.created, event.updated, or contact.deleted. Webhooks fire within seconds of the event, replacing polling-based sync. Real-time delivery for agent account inboxes also runs through this command — replaces the deprecated nylas inbound monitor.

Usage

nylas webhook create --url URL --triggers TRIGGERS

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--urlWebhook URL
--triggersComma-separated trigger types

Examples

Create webhook

nylas webhook create --url https://yourserver.com/webhook --triggers "message.created,event.updated"

Subscribe to inbound mail for an agent account

nylas webhook create --url https://example.com/hook --triggers message.created

Troubleshooting

Migrating from nylas inbound monitor

Use nylas webhook create --triggers message.created to subscribe to real-time inbound events. There is no agent equivalent of the streaming-to-terminal mode; expose a local tunnel (cloudflared, ngrok) and point --url at it for development.

Recommended guides

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.

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.

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.

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.

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.

Mailtrap Alternative for Real Inbox Testing

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

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.

Test Email Webhooks Locally

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Run nylas webhook create --help for full help output.