Command
nylas webhook update
The nylas webhook update command modifies a webhook destination. Change the delivery URL with --url, or add and remove trigger types with --triggers. Pass the webhook ID with --id. Changes take effect immediately — the next event fires to the updated URL.
Usage
nylas webhook update --id WEBHOOK_ID [--url URL] [--triggers TRIGGERS]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 |
| --id | Webhook ID to update |
| --url | New destination URL |
| --triggers | Comma-separated trigger types to subscribe to |
Examples
Change the webhook URL
nylas webhook update --id wh_abc123def456 --url https://new-endpoint.example.com/webhookAdd a trigger type
nylas webhook update --id wh_abc123def456 --triggers message.created,event.created,event.updatedTroubleshooting
Webhook not found
Run nylas webhook list to confirm the webhook ID. It may have been deleted.
Invalid trigger type
Run nylas webhook triggers to see valid types. Trigger names are case-sensitive.
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 update --help for full help output.