Your URL is wrong your missing the users segment so it should be
https://graph.microsoft.com/v1.0/users/dinesh.test@example.com/sendMail
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
HI Team,
I wanted to Send email via graph API. I followed the documentation and Created a application in Azure Directory and got Admin Consent permission for mail.send.
I am using the below URL https://graph.microsoft.com/v1.0/dinesh.test[@](/users/na/?userId=12dda09b-4001-0003-0000-000000000000).com/sendMail
In the headers I am passing the Bearer token.
When I tried to execute this i am getting below error
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'dinesh.test@ssss .com'.",
"innerError": {
"date": "2021-11-01T11:26:02",
"request-id": "90a7aea5-29ea-49c2-b297-695ee0f2d296",
"client-request-id": "90a7aea5-29ea-49c2-b297-695ee0f2d296"
}
}
}
The email id i have used present in the AD.
Your URL is wrong your missing the users segment so it should be
https://graph.microsoft.com/v1.0/users/dinesh.test@example.com/sendMail
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'onlineMeetings'.",
"innerError": {
"date": "2023-08-24T06:13:35",
"request-id": "30976cc5-c8a6-4f3f-86d3-b347836ebe52",
"client-request-id": "30976cc5-c8a6-4f3f-86d3-b347836ebe52"
}
}
}
i found some errors like this by using
https://graph.microsoft.com/v1.0/onlineMeetings