Microsoft OneNote
App · Notes · 8 actions
Organize, create, and retrieve notebooks, sections, and pages in Microsoft OneNote.
Actions
| Action | What it does |
|---|---|
| Create notebook | Create a new OneNote notebook. |
| Create page | Create a new page in a OneNote section. |
| Create section | Create a new section in a OneNote notebook. |
| Delete page | Delete a OneNote page. |
| Get page content | Get the HTML content of a OneNote page. |
| List notebooks | List all OneNote notebooks for a user. |
| List pages | List all pages in a OneNote section. |
| List sections | List all sections in a OneNote notebook. |
Create notebook
Create a new OneNote notebook.
Inputs
- Notebook name
display_nametextRequired - The name for the new notebook.
Outputs
displayNametext- Notebook name.
idtext- Notebook ID.
Example output
{
"displayName": "New Notebook",
"id": "nb2"
}Create page
Create a new page in a OneNote section.
Inputs
- Section ID
section_idtextRequired - The ID of the section.
- Title
titletextRequired - The title of the page.
- Page content
html_contenttextRequired - The content of the page, written in HTML (for example, <p>Meeting notes</p>).
Outputs
idtext- Page ID.
titletext- Page title.
Example output
{
"id": "page2",
"title": "New Page"
}Create section
Create a new section in a OneNote notebook.
Inputs
- Notebook ID
notebook_idtextRequired - The ID of the notebook.
- Section name
display_nametextRequired - The name for the new section.
Outputs
displayNametext- Section name.
idtext- Section ID.
Example output
{
"displayName": "New Section",
"id": "sec2"
}Delete page
Delete a OneNote page.
Inputs
- Page ID
page_idtextRequired - The ID of the page to delete.
Outputs
deletedtrue/false- Whether deletion succeeded.
Example output
{
"deleted": true
}Get page content
Get the HTML content of a OneNote page.
Inputs
- Page ID
page_idtextRequired - The ID of the page.
Outputs
contenttext- HTML content of the page.
Example output
{
"content": "<html>...</html>"
}List notebooks
List all OneNote notebooks for a user.
Inputs
None.
Outputs
valuelist- List of notebooks.
Example output
{
"value": [
{
"displayName": "Notebook 1",
"id": "nb1"
}
]
}List pages
List all pages in a OneNote section.
Inputs
- Section ID
section_idtextRequired - The ID of the section.
Outputs
valuelist- List of pages.
Example output
{
"value": [
{
"id": "page1",
"title": "Page 1"
}
]
}List sections
List all sections in a OneNote notebook.
Inputs
- Notebook ID
notebook_idtextRequired - The ID of the notebook.
Outputs
valuelist- List of sections.
Example output
{
"value": [
{
"displayName": "Section 1",
"id": "sec1"
}
]
}