Command

nylas webhook server

The nylas webhook server command starts a local HTTP server that receives webhook events from Nylas. It automatically creates a tunnel so Nylas can reach your machine. Use --port to choose a port. Events are logged to the terminal in real time, making it easy to debug webhook payloads during development.

Usage

nylas webhook server [--port PORT]

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
--portPort to listen on (default: 4567)

Examples

Start on default port

nylas webhook server

Start on a custom port

nylas webhook server --port 8080

Troubleshooting

Port already in use

Choose a different port with --port, or stop the process using the default port (lsof -i :4567).

Tunnel fails to connect

Check your internet connection. If behind a corporate proxy, set HTTPS_PROXY. Try a different port.

Recommended guides

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