api-gateway
VerifiedCall third-party APIs through the Maton gateway, which injects the credential for an app the user has already connected. Use this skill when the user names a connected app and a concrete action in it - read a mailbox, query a CRM, file an issue, update a spreadsheet, run a query through a connected search or scraping provider. Every call goes to an app the user connected. It is not a general-purpose browser or network client, and it cannot reach a service with no Maton connection. It also manages event triggers, webhook destinations that forward event payloads to an external URL until deleted, and local `--exec` handlers that run a script per event - separate, high-risk capabilities beyond a normal API call. Default to read and list calls; every write, connection, trigger, destination, or handler needs explicit user confirmation.
references/one-note/README.md
View on GitHub# OneNote
## API Reference
> **Safety:** All write operations (POST, PUT, PATCH, DELETE) require explicit user confirmation before execution. Verify the target resource and intended effect with the user first. See the main [SKILL.md](../../SKILL.md#security--permissions) for full security policy.
**App name:** `one-note`
**Upstream base URL:** `graph.microsoft.com`
Replace the upstream base URL with the app name. Everything after the base URL including query strings is kept as-is. Any account-specific part of the base URL and the API credentials are stored in the Maton connection, and the gateway injects both so requests never carry them. For example:
- Upstream: `https://graph.microsoft.com/v1.0/me/onenote/notebooks`
- Gateway: `https://api.maton.ai/one-note/v1.0/me/onenote/notebooks`
### Notebooks API
#### List Notebooks
```bash
maton api '/one-note/v1.0/me/onenote/notebooks'
```
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/notebooks'
```
**Response:**
```json
{
"value": [
{
"id": "1-30487038-8c2e-440a-860d-e82c6dc74f10",
"displayName": "My Notebook",
"createdDateTime": "2026-03-12T10:25:00Z",
"lastModifiedDateTime": "2026-03-12T10:30:00Z",
"isDefault": true,
"isShared": false,
"sectionsUrl": "https://graph.microsoft.com/v1.0/me/onenote/notebooks/.../sections",
"sectionGroupsUrl": "https://graph.microsoft.com/v1.0/me/onenote/notebooks/.../sectionGroups"
}
]
}
```
#### List Notebooks with Sections
Use `$expand` to include sections and section groups:
```bash
maton api '/one-note/v1.0/me/onenote/notebooks?$expand=sections,sectionGroups'
```
#### Get Notebook
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/{notebook_id}'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/{notebook_id}'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
#### Create Notebook
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "New Notebook"
}
JSON
```
**Example:**
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "My New Notebook"
}
JSON
```
#### Copy Notebook
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/copyNotebook'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/copyNotebook' -H 'Content-Type: application/json' --input - <<'JSON'
{
"renameAs": "Copied Notebook"
}
JSON
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
> **Note:** Copy operations are asynchronous. The response includes a status URL to check progress.
#### Get Recent Notebooks
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks=true)'
```
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/getRecentNotebooks(includePersonalNotebooks=true)'
```
### Sections API
#### List All Sections
```bash
maton api '/one-note/v1.0/me/onenote/sections'
```
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/sections'
```
**Response:**
```json
{
"value": [
{
"id": "1-c9d63289-4f64-4579-9043-155543978c78",
"displayName": "My Section",
"createdDateTime": "2026-03-12T10:26:00Z",
"lastModifiedDateTime": "2026-03-12T10:28:00Z",
"isDefault": false,
"pagesUrl": "https://graph.microsoft.com/v1.0/me/onenote/sections/.../pages"
}
]
}
```
#### List Sections in Notebook
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sections'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sections'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
#### Get Section
```bash
maton api '/one-note/v1.0/me/onenote/sections/{section_id}'
```
**Note:** `{section_id}` is a placeholder. Replace it with a real value before sending the request.
#### Create Section
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sections' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "New Section"
}
JSON
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sections' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "Meeting Notes"
}
JSON
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
### Section Groups API
Organize sections into groups.
#### List All Section Groups
```bash
maton api '/one-note/v1.0/me/onenote/sectionGroups'
```
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/sectionGroups'
```
#### List Section Groups in Notebook
```bash
maton api '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sectionGroups'
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
#### Get Section Group
```bash
maton api '/one-note/v1.0/me/onenote/sectionGroups/{section_group_id}'
```
**Note:** `{section_group_id}` is a placeholder. Replace it with a real value before sending the request.
#### Create Section Group
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sectionGroups' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "New Section Group"
}
JSON
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api -X POST '/one-note/v1.0/me/onenote/notebooks/{notebook_id}/sectionGroups' -H 'Content-Type: application/json' --input - <<'JSON'
{
"displayName": "Project Notes"
}
JSON
```
**Note:** `{notebook_id}` is a placeholder. Replace it with a real value before sending the request.
### Pages API
#### List All Pages
```bash
maton api '/one-note/v1.0/me/onenote/pages'
```
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/pages'
```
**Response:**
```json
{
"value": [
{
"id": "1-42a904024c734393b561d0a85428965d!251-c9d63289-4f64-4579-9043-155543978c78",
"title": "My Page",
"createdDateTime": "2026-03-12T10:29:42Z",
"lastModifiedDateTime": "2026-03-12T10:30:00Z",
"contentUrl": "https://graph.microsoft.com/v1.0/me/onenote/pages/.../content"
}
]
}
```
#### List Pages in Section
```bash
maton api '/one-note/v1.0/me/onenote/sections/{section_id}/pages'
```
**Note:** `{section_id}` is a placeholder. Replace it with a real value before sending the request.
#### Get Page
```bash
maton api '/one-note/v1.0/me/onenote/pages/{page_id}'
```
**Note:** `{page_id}` is a placeholder. Replace it with a real value before sending the request.
#### Get Page Content
Returns the HTML content of a page:
```bash
maton api '/one-note/v1.0/me/onenote/pages/{page_id}/content'
```
**Note:** `{page_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api '/one-note/v1.0/me/onenote/pages/{page_id}/content'
```
**Note:** `{page_id}` is a placeholder. Replace it with a real value before sending the request.
#### Create Page
Pages are created with HTML content:
```bash
maton api -X POST '/one-note/v1.0/me/onenote/sections/{section_id}/pages' -H 'Content-Type: text/html' --input - <<'BODY'
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>Page content here</p>
</body>
</html>
BODY
```
**Note:** `{section_id}` is a placeholder. Replace it with a real value before sending the request.
**Example:**
```bash
maton api -X POST '/one-note/v1.0/me/onenote/sections/{section_id}/pages' -H 'Content-Type: text/html' --input - <<'BODY'
<!DOCTYPE html>
<html>
<head>
<title>Meeting Notes - March 12</title>
</head>
<body>
<h1>Meeting Notes</h1>
<p>Attendees: Alice, Bob, Charlie</p>
<ul>
<li>Discussed Q1 goals</li>
<li>Reviewed project timeline</li>
</ul>
</body>
</html>
BODY
```
**Note:** `{section_id}` is a placeholder. Replace it with a real value before sending the request.
#### Update Page Content
Use PATCH to append, insert, or replace content:
```bash
maton api -X PATCH '/one-note/v1.0/me/onenote/pages/{page_id}/content' -H 'Content-Type: application/json' --input - <<'JSON'
[
{
"target": "body",
"action": "append",
"content": "<p>New paragraph added!</p>"
}
]
JSON
```
**Note:** `{page_id}` is a placeholder. Replace it with a real value before sending the request.
**Actions:**
- `append` - Add content at the end of target
- `prepend` - Add content at the beginning of target
- `replace` - Replace target content
- `insert` - Insert after target
**Example:**
```bash
maton api -X PATCH '/one-note/v1.0/me/onenote/pages/{page_id}/content' -H 'Content-Type: application/json' --input - <<'JSON'
[
{
"target": "body",
"action": "append",
"content": "<p>Updated at 2026-03-12</p>"
}
]
JSON
```
**Note:** `{page_id}` is a placeholder. Replace it with a real value before sending the request.
### OData Query parameters
The OneNote API supports OData query parameters:
| Parameter | Description | Example |
|-----------|-------------|---------|
| `$select` | Select specific properties | `$select=id,displayName` |
| `$expand` | Include related resources | `$expand=sections,sectionGroups` |
| `$filter` | Filter results | `$filter=isDefault eq true` |
| `$orderby` | Sort results | `$orderby=displayName` |
| `$top` | Limit results | `$top=10` |
| `$skip` | Skip results | `$skip=20` |
**Example with $select:**
```bash
maton api '/one-note/v1.0/me/onenote/notebooks?$select=id,displayName'
```
### Page HTML Format
OneNote pages use a specific HTML format:
#### Basic Structure
```html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta name="created" content="2026-03-12T10:00:00Z" />
</head>
<body>
<p>Content here</p>
</body>
</html>
```
#### Supported Elements
- Headings: `<h1>` through `<h6>`
- Paragraphs: `<p>`
- Lists: `<ul>`, `<ol>`, `<li>`
- Tables: `<table>`, `<tr>`, `<td>`
- Images: `<img src="..." />`
- Links: `<a href="...">`
- Formatting: `<b>`, `<i>`, `<u>`, `<strike>`
#### Adding Images
```html
<img src="https://example.com/image.jpg" alt="Description" />
```
Or embed base64 images:
```html
<img src="data:image/png;base64,..." alt="Embedded image" />
```
### Notes
- OneNote uses Microsoft Graph API v1.0
- Pages are created with HTML content (Content-Type: text/html)
- Page updates use PATCH with JSON array of operations
- Copy operations are asynchronous - check the returned status URL
- Use `$expand=sections,sectionGroups` to get notebook contents in one call
- Notebook and section names must be unique within their container
### Resources
- [OneNote API Overview](https://learn.microsoft.com/en-us/graph/integrate-with-onenote)
- [OneNote REST API Reference](https://learn.microsoft.com/en-us/graph/api/resources/onenote-api-overview)
- [Maton CLI Manual](https://cli.maton.ai/manual)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |