Hi @Dhage, Endraja (CIB Tech, IND)
Looks like a gateway timeout error, which is usually caused by the amount of data being returned.
I suggest you use the $top
query parameter to paginate to reduce data concurrency:
https://graph.microsoft.com/v1.0/users/******@exchaddev.labmorgan.com/mailfolders/inbox/messages?$expand=attachments&$filter=subject eq 'Test Send Mail'&$top=10
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.