An API that connects multiple Microsoft services, enabling data access and automation across platforms
have you noticed notification URL validation as mentioned in here in your documentation ?
This error trends to occure due to lack of notification url validation..
when you create subscription, Microsoft graph validates your notification URL by sending some token such as this
POST https://{notificationUrl}?validationToken={opaqueTokenCreatedByMicrosoftGraph}
therefore, you need to separately handle that request from your notification endpoint.
in this scenario, take the value of validationToken and return it like below.
if (Request.QueryString["validationToken"] != null)
{
var token = Request.QueryString["validationToken"];
return Content(token, "text/plain");
}
make sure return content type "text/plan"
find this samples for more details
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".