Command
nylas webhook test send
The nylas webhook test send-URL command fires a simulated webhook event to any URL you specify. Choose the trigger type with --trigger (e.g. message.created, event.created). Use it to verify your endpoint handles payloads correctly before going live.
Usage
nylas webhook test send-URL --url URL --trigger TRIGGERFlags
| 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 |
| --url | Destination URL to send the test event to |
| --trigger | Trigger type (e.g. message.created, event.created) |
Examples
Test with an email trigger
nylas webhook test send-URL --url https://example.com/webhook --trigger message.createdTest with a calendar trigger
nylas webhook test send-URL --url http://localhost:4567/webhook --trigger event.createdTroubleshooting
Connection refused
Verify the URL is reachable. For localhost URLs, ensure your server is running on the correct port.
Unknown trigger type
Run nylas webhook triggers to see all available trigger types.
Recommended guides
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 test send --help for full help output.