Lodol Docs

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

ParameterTypeRequiredDescription
display_namestringYesThe name for the new notebook.

Response

{
  "displayName": "New Notebook",
  "id": "nb2"
}

Create page

Create a new page in a OneNote section.

Parameters

ParameterTypeRequiredDescription
section_idstringYesThe ID of the section.
titlestringYesThe title of the page.
html_contentstringYesThe HTML content of the page.

Response

{
  "id": "page2",
  "title": "New Page"
}

Create section

Create a new section in a OneNote notebook.

Parameters

ParameterTypeRequiredDescription
notebook_idstringYesThe ID of the notebook.
display_namestringYesThe name for the new section.

Response

{
  "displayName": "New Section",
  "id": "sec2"
}

Delete page

Delete a OneNote page.

Parameters

ParameterTypeRequiredDescription
page_idstringYesThe ID of the page to delete.

Response

{
  "deleted": true
}

Get page content

Get the HTML content of a OneNote page.

Parameters

ParameterTypeRequiredDescription
page_idstringYesThe 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

ParameterTypeRequiredDescription
section_idstringYesThe ID of the section.

Response

{
  "value": [
    {
      "id": "page1",
      "title": "Page 1"
    }
  ]
}

List sections

List all sections in a OneNote notebook.

Parameters

ParameterTypeRequiredDescription
notebook_idstringYesThe ID of the notebook.

Response

{
  "value": [
    {
      "displayName": "Section 1",
      "id": "sec1"
    }
  ]
}

On this page