Setup
The mount needs a delegated Microsoft Graph access token withNotes.Read,
which reads the signed-in user’s notebooks. OneNote’s Graph API refuses
app-only tokens since March 31, 2025.
Quick token (Graph Explorer)
Quick token (Graph Explorer)
The fastest way to try it. The token lasts about an hour.
- Open Graph Explorer and sign in.
- Run
GET /me/onenote/notebooksand consent toNotes.Readwhen asked. - Open the Access token tab and copy the token.
Device-code token (own app registration)
Device-code token (own app registration)
A delegated token from an app registration. The first sign-in is
interactive, so this is a development bootstrap, not an unattended
credential.
- In the Microsoft Entra admin center, go to Entra ID > App registrations > New registration.
- Under Authentication, set Allow public client flows to Yes.
-
Under API permissions > Microsoft Graph > Delegated
permissions, add
Notes.Read. -
Request a device code with the Application (client) ID and the
Directory (tenant) ID from the registration’s Overview, open
https://microsoft.com/deviceloginand enter theuser_codeit prints. A registration that accepts accounts in any tenant can usecommonfor the tenant: -
After signing in, exchange the
device_codefor tokens:
access_token that returns a fresh token.Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- A notebook, a section group and a section are each a folder named by its display name; section groups nest to any depth.
- A page file is the HTML OneNote answers for the page.
- The part after
__is the page’s Graph id.
Sample runs
SDK guides
Python
Every config field, the layout and the VFS.md.
TypeScript
Every config field, the layout and the VFS.md.