Command
nylas webhook triggers
The nylas webhook triggers command displays every event type you can subscribe a webhook to — message.created, event.updated, contact.deleted, and more. Use --json for pipe-friendly output. Useful when configuring or updating webhook subscriptions.
Usage
nylas webhook triggers [--json]Flags
| Flag | Description |
|---|---|
| --json | Output as JSON |
| --no-color | Disable color output |
| --verbose(-v) | Enable verbose output |
| --config | Custom config file path |
| --help(-h) | Show help for the command |
| --limit | Limit results (most list commands) |
| --yes(-y) | Skip confirmations |
| --json | Output as JSON |
Examples
List all trigger types
nylas webhook triggersFilter for email triggers
nylas webhook triggers --json | jq '.[] | select(startswith("message."))'Troubleshooting
Empty trigger list
Ensure you have a valid API key configured. Run nylas auth config to verify.
Trigger type not recognized when creating webhook
Copy the exact trigger string from this list. Trigger names are case-sensitive (e.g. message.created, not Message.Created).
Recommended guides
Extract OTP Codes from Email — Skip the Inbox
Pull 2FA verification codes from email without opening your inbox. nylas otp get copies the code to your clipboard. Works with Gmail, Outlook, Exchange, Yahoo, iCloud, and IMAP.
Test Email in CI/CD with PowerShell
Test email delivery and content in CI/CD pipelines using PowerShell and Nylas CLI. GitHub Actions and Azure DevOps examples with Pester assertions on email content.
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.
Run nylas webhook triggers --help for full help output.