Command

nylas webhook create

Create a webhook for real-time event notifications.

Written by Qasim Muhammad Staff SRE

What does nylas webhook create do?

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. Real-time delivery for agent account inboxes also runs through this command — replaces the deprecated nylas inbound monitor.

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
--description(-d)Webhook description
--notify(-n)Notification email addresses

Examples

Create webhook

nylas webhook create --url https://yourserver.com/webhook --triggers "message.created,event.updated"

Subscribe to inbound mail for an agent account

nylas webhook create --url https://example.com/hook --triggers message.created

Example output

✓ Webhook created (webhook_abc123)
  URL:       https://example.com/webhooks
  Triggers:  message.created, event.created
  Status:    active

Save the signing secret shown above — it is only displayed once.

Troubleshooting

Migrating from nylas inbound monitor

Use nylas webhook create --triggers message.created to subscribe to real-time inbound events. There is no agent equivalent of the streaming-to-terminal mode; expose a local tunnel (cloudflared, ngrok) and point --url at it for development.

Recommended guides

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