notebook: getRecentNotebooks

Get a list of recentNotebook instances that have been accessed by the signed-in user.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Notes.Create, Notes.Read, Notes.ReadWrite, Notes.Read.All, Notes.ReadWrite.All,
Delegated (personal Microsoft account) Notes.Create, Notes.Read, Notes.ReadWrite
Application Notes.Read.All, Notes.ReadWrite.All

HTTP request

GET /me/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks=includePersonalNotebooks-value)
GET /users/{id | userPrincipalName}/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks=includePersonalNotebooks-value)

The {id | userPrincipalName} for the user must match the user encoded in the authorization token used to make the request.

Function parameters

Parameter Type Description
includePersonalNotebooks Boolean Include notebooks owned by the user. Set to true to include notebooks owned by the user; otherwise, set to false. If you don't include the includePersonalNotebooks parameter, your request will return a 400 error response.

Request headers

Name Description
Authorization Bearer {code}

Request body

Do not supply a request body for this method.


A successful response returns a 200 OK that contains a JSON collection of recentNotebooks.


The following example shows how to call this API.


The following example shows the request.



The following example shows the response.

HTTP/1.1 200 OK
Content-type: application/json
Content-Length: 1110

      "displayName":"Personal Notebook","lastAccessedTime":"timestamp","links":{
      "displayName":"Team Shared Notebook","lastAccessedTime":"timestamp","links":{

SDK sample code

const options = {

const client = Client.init(options);

let res = await client.api('/me/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks=true)')

Read the SDK documentation for details on how to add the SDK to your project and create an authProvider instance.