Hello Isha Sharma,
Thanks for posting!
As per my Investigation, it seems there is some issue with the Calendar ID which you are using to list the events i.e., object Id you are passing as calendar Id is incorrect. I am able to replicate the error message when I am passing incorrect Calendar-Id.
Please refer the below steps to get the calendar-Id using graph API.
- Run the Graph Endpoint
GET /users/{id | userPrincipalName}/calendars
. - After executing the first step you can obtain the calendar-Id, please refer below screenshot for same.
Now, you can be able to list the calendars events using below Graph API:
GET /users/{id | userPrincipalName}/calendars/{id}/events
Reference link: List events
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.