I want to subscribe to webhooks event in outlook-calendar integration

Shruti Malode 0 Reputation points
2024-08-16T09:13:40.9266667+00:00
{
    "error": {
        "code": "ValidationError",
        "message": "Subscription validation request failed. Notification endpoint must respond with 200 OK to validation request.",
        "innerError": {
            "date": "2024-08-16T05:58:22",
            "request-id": "840bba1d-8a92-48b5-b709-a65ca12a9a44",
            "client-request-id": "840bba1d-8a92-48b5-b709-a65ca12a9a44"
        }
    }
}


I am getting the above error as my notification endpoint is publicly accessible with name: https://x.y.z/en/outlook-calendar/webhooks. I am using php curl library for integration.

What could be the possible error ? I have verified the SSL Certificate of my notification endpoint, it is not expired.

My subscribe request (post) is having payload as :

            'changeType' => 'created,updated,deleted',
            'notificationUrl' => $notificationUrl,
            'resource' => 'me/events',
            'expirationDateTime' => $expirationDateTime,
            'clientState' => '5755-1233-6767-0007',


Outlook
Outlook
A family of Microsoft email and calendar products.
4,503 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,322 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,712 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.