Get resource

Important: APIs under the /beta version in Microsoft Graph are in preview and are subject to change. Use of these APIs in production applications is not supported.

Retrieve the binary data of a file or image resource object.


One of the following scopes is required to execute this API:
Notes.Read, Notes.ReadWrite, Notes.Read.All, or Notes.ReadWrite.All

HTTP request

GET /me/onenote/resources/{id}/content
GET /users/{id | userPrincipalName}/onenote/resources/{id}/content
GET /groups/{id}/onenote/resources/{id}/content
GET /sites/{id}/onenote/resources/{id}/content

Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

Do not supply a request body for this method.


If successful, this method returns a 200 OK response code and the image or file binary data in the response body.

Note: Images won't render directly in a browser because they require authorization to retrieve them, like the rest of the page content.



Here is an example of the request.


Here is an example of the response.

HTTP/1.1 200 OK

...binary data...