Microsoft OneNote
API actions for the Microsoft OneNote integration.
Microsoft OneNote
Organize, create, and retrieve OneNote notebooks, sections, and pages via Microsoft Graph.
Create notebook
Create a new OneNote notebook.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
display_name | string | Yes | The name for the new notebook. |
Response
{
"displayName": "New Notebook",
"id": "nb2"
}Create page
Create a new page in a OneNote section.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
section_id | string | Yes | The ID of the section. |
title | string | Yes | The title of the page. |
html_content | string | Yes | The HTML content of the page. |
Response
{
"id": "page2",
"title": "New Page"
}Create section
Create a new section in a OneNote notebook.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
notebook_id | string | Yes | The ID of the notebook. |
display_name | string | Yes | The name for the new section. |
Response
{
"displayName": "New Section",
"id": "sec2"
}Delete page
Delete a OneNote page.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | The ID of the page to delete. |
Response
{
"deleted": true
}Get page content
Get the HTML content of a OneNote page.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
page_id | string | Yes | The ID of the page. |
Response
{
"content": "<html>...</html>"
}List notebooks
List all OneNote notebooks for a user.
Response
{
"value": [
{
"displayName": "Notebook 1",
"id": "nb1"
}
]
}List pages
List all pages in a OneNote section.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
section_id | string | Yes | The ID of the section. |
Response
{
"value": [
{
"id": "page1",
"title": "Page 1"
}
]
}List sections
List all sections in a OneNote notebook.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
notebook_id | string | Yes | The ID of the notebook. |
Response
{
"value": [
{
"displayName": "Section 1",
"id": "sec1"
}
]
}