retrieving email message expanding attachments doesn't retrieve referenceattachments (that we upload using upload & share from onedrive) If an email contains only reference attachments the list would return empty
GET /users/{id | userPrincipalName}/messages/{id}/attachments
I tried following request
GET /users/{id | userPrincipalName}/messages/{id}?$expand=attachments
The above request gets all the attachments however reference attachments are not included in the result.
Try using below URL
GET https://graph.microsoft.com/v1.0/me/messages/{id}/?$expand=microsoft.graph.itemattachment/item
See the docs for more info - https://learn.microsoft.com/en-us/graph/api/attachment-get?view=graph-rest-1.0&tabs=http#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item