Webhook Notifications
Rotate a webhook secret
Changed onUpdate the webhook secret value for a destination. The previous value will immediately stop being used and the new value will take over.
Webhook notification header
Every webhook notification Nylas sends includes the x-nylas-signature header. Depending on the SDK you're using, you might see X-Nylas-Signature instead.
post/v3/webhooks/rotate-secret/{id}
Request
- Base URLhttps://api.us.nylas.com
- AuthHTTP bearer
Path parameters
idstring required
Response
Webhook Secret Updated
Example response
{
"data": {
"id": "UMWjAjMeWQ4D8gYF2moonK4486",
"description": "Production webhook destination",
"webhook_url": "https://example.com/webhooks",
"webhook_secret": "41dD3-nXTUfebYuk81Gr",
"notification_email_addresses": [
"jane@example.com",
"joe@example.com"
]
}
}Changes
- warning
added the new
alert.triggeredenum value to the//response property for the response status
- warning