Hi Nylas Team,
I recently set up Microsoft email integration using the Nylas v3 API for sending emails only (no reading/syncing). Following the documentation, I configured my Azure AD app with the Mail.Send delegated permission as recommended.
However, when attempting to send emails using the /messages/send endpoint, I consistently received a 403 error:
{
"error": {
"type": "api.insufficient_scopes",
"message": "missing scope required to send email",
"provider_error": {
"error": {
"code": 403,
"message": "Access is denied. Check credentials and try again."
}
}
}
}
After extensive troubleshooting, I discovered that adding Mail.ReadWrite to both the Azure AD app permissions AND the Nylas connector scopes resolved the issue. Email sending now works perfectly.
My questions:
-
Why is
Mail.ReadWriterequired for sending emails? Is this because Nylas creates a draft message (POST /me/messages) before sending it, rather than using thePOST /me/sendMailendpoint directly? -
Should the documentation be updated to include
Mail.ReadWriteas a required permission for email sending functionality? -
Is there a way to send emails with only
Mail.Send(withoutMail.ReadWrite) for organizations that have strict permission policies?
Environment:
- Nylas API v3
- Microsoft Graph API (Microsoft 365 accounts)
- Azure AD app with delegated permissions
