https://api.us.nylas.com/v3/webhooksCreate a webhook destination
Creates a webhook destination with the specified URL and list of trigger types. If you omit
trigger_types or pass an empty list, Nylas creates the destination without any trigger types.
Webhook destinations and retry logic
You should limit the number of webhook destinations you have for each trigger type. When Nylas retries a webhook, the retry goes to all the destinations for that trigger type. This can result in a lot of notifications.
Some webhook testing tools rate-limit or block you if your endpoint generates too much traffic. Nylas blocks Ngrok connections for this reason.
Webhook notification header
Every webhook notification Nylas sends includes the x-nylas-signature header. If you're using
the Nylas SDKs, you might see X-Nylas-Signature instead.
Works with an API key or an IAM API key with the webhook_destinations.create permission.
Destination definition
trigger_typesThe event that triggers the notification. See the notification schemas for details about each trigger type.
See the Grants, Calendar, Events, and Messages references for information on how to trigger each event type.
webhook_url*The URL to send webhooks to. The URL must use HTTPS and a public hostname. Nylas rejects IP
addresses, single-label hostnames such as localhost, and internal hostnames such as those
ending in .internal or .local.
Nylas verifies the URL by sending a GET request with a challenge query parameter. Your
endpoint must respond with a 200 status and the exact value of challenge as the response
body.
notification_email_addressesThe email addresses that Nylas notifies when a webhook is down for a while. See Failing and failed webhooks for details.