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.

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"

Troubleshooting

Recommended guides

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