Microsoft OneNote

App · Notes · 8 actions

Organize, create, and retrieve notebooks, sections, and pages in Microsoft OneNote.

Actions

ActionWhat it does
Create notebookCreate a new OneNote notebook.
Create pageCreate a new page in a OneNote section.
Create sectionCreate a new section in a OneNote notebook.
Delete pageDelete a OneNote page.
Get page contentGet the HTML content of a OneNote page.
List notebooksList all OneNote notebooks for a user.
List pagesList all pages in a OneNote section.
List sectionsList all sections in a OneNote notebook.

Create notebook

Create a new OneNote notebook.

Inputs

Notebook namedisplay_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 IDsection_idtextRequired
The ID of the section.
TitletitletextRequired
The title of the page.
Page contenthtml_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 IDnotebook_idtextRequired
The ID of the notebook.
Section namedisplay_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 IDpage_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 IDpage_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 IDsection_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 IDnotebook_idtextRequired
The ID of the notebook.

Outputs

valuelist
List of sections.
Example output
{
  "value": [
    {
      "displayName": "Section 1",
      "id": "sec1"
    }
  ]
}

On this page