Productivity
Notion in your product and your AI agents, through one API
The Notion toolkit works on the pages and data sources the customer shared with the connection: search, read properties and Markdown content, create and update pages, append blocks, query database rows and handle comments. Your product or AI agent calls it through Connect, which stores the credentials and logs every execution.
15 days to try it. No credit card.
POST https://connect.reportei.com/api/tools/notion_search/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"query": "<query>"
}
}How it works
From a connected customer to the first Notion call.
- 1
Your customer connects the account
Your system opens a Connect session for the toolkit and your customer connects their Notion account. You get the connection id.
- 2
Your product calls the tool
A POST to /api/tools/{tool}/execute with the connection id and arguments. On success, Connect preserves the app's response status and body.
- 3
Connect handles the rest
It stores the credential encrypted, renews tokens for OAuth connections that support renewal and records executions in an audit trail available through the API.
Use cases
What your product does with Notion.
Write records into Notion
A SaaS creates a page in a customer's data source for each new lead, ticket or report, filling the properties the data source defines.
Keep docs up to date
An agency tool edits a page's Markdown with search-and-replace or rewrites it whole when the numbers change.
Agent with workspace memory
An AI agent searches pages by title, reads their Markdown, lists the rows of a data source and replies in the comments.
Tools
13 Notion tools
- SearchPOSTSearches the pages and data sources shared with the connection by title. Returns has_more and next_cursor for the following page.
- Retrieve pageGETReturns the properties of a page. The content of the page is not included: read it with Get page markdown.
- Create pagePOSTCreates a page under a page or a data source shared with the connection. Send the content as Markdown in markdown, or as blocks in children, never both.
- Update pagePATCHUpdates the properties, icon or cover of a page, or moves it to the trash and back with in_trash. Properties left out keep their values. The content of the page changes with Update page markdown or Create blocks.
- Get page markdownGETReturns the content of a page as Markdown in the markdown field. On a very large page, truncated is true and unknown_block_ids lists the parts left out, each readable by passing its id as page_id.
- Update page markdownPATCHEdits the content of a page with Markdown: type update_content applies search-and-replace edits, and replace_content rewrites the whole page. Child pages and databases are never deleted unless allow_deleting_content is true. Returns the new content of the page.
- Create blocksPATCHAppends content blocks to a page, or to a block that takes children, at the end unless position says otherwise. Up to 100 blocks per call, with up to two levels of nesting. Returns the new first-level blocks with their ids.
- Get databaseGETReturns a database with its title, parent and data_sources, the id and name of each data source in it. List data source pages, Get data source and Create page take that data source id, not the database id.
- Get data sourceGETReturns the schema of a data source: the name, id, type and options of each property. Read it before creating, updating or filtering pages in it.
- List data source pagesPOSTLists the pages of a data source, the rows of a database, with an optional filter and sorts. Returns has_more and next_cursor for the following page. A query stops at 10,000 results.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
OAuth with your product's app
You register your product's OAuth app once, with POST /api/merchants/credentials/notion, and your customer authorizes the account on a consent screen. Connect renews the token when it is about to expire.
Questions about the Notion toolkit
Do I need to build against the Notion API?
No. Connect ships 13 Notion tools, described and ready. Your customer connects the account and your system calls every tool through the same endpoint, with the same request format.
How does my customer connect their Notion account?
With the mode the toolkit accepts: API key, OAuth with your product's app. Connect stores the credential encrypted and never returns it to your system.
Does it work with AI agents?
Yes. Each tool's input is described in JSON Schema, which your agent uses directly as a tool definition. The agent picks the tool and the arguments, and your system makes the call to Connect.
Does my customer need a Reportei account?
No. Your customer connects the account on a Connect screen, or your system sends the credential through the API, and they keep using only your product.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
