Why am I receiving 405s from a `Get Messages` endpoint specified in the API documentation?

Jon Schipp 1 Reputation point
2024-05-10T14:37:14.7233333+00:00

https://learn.microsoft.com/en-us/graph/api/message-get?view=graph-rest-1.0&tabs=http
This page in the documentation (updated 03/15/2024) specifies an endpoint to receive the MIME content of a message. When using this endpoint on Postman, I receive a 405 invalid request error with :
"The OData request is not supported".
The endpoint: GET /users/{id | userPrincipalName}/mailFolders/{id}/messages/{id}/$value
I have used other endpoints locally that append the `$value` OData param and these work fine.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,838 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,501 Reputation points Microsoft Vendor
    2024-05-10T18:10:05.8966667+00:00

    Hello @Jon Schipp,

    I am able to replicate the issue. Meanwhile, alternatively, you can use the below endpoint to fetch the MIME content of the message:

    https://graph.microsoft.com/v1.0/users/{user-id}/messages/{message-id}/$value

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.