Description
Execute Notion API operations with automatic version header and structured outputs.
Usage
{"auth": {"notionApiKey": "secret_..."}, "input": {"operation": "queryDataSource", "params": {"dataSourceId": "abc123"}}}
Operations: search, getPage, queryDataSource, createPage, updatePage, appendBlocks, createDataSource
Input schema
{"type": "object", "properties": {"operation": {"type": "string", "enum": ["search","getPage","queryDataSource","createPage","updatePage","appendBlocks","createDataSource"]}, "params": {"type": "object"}}, "required": ["operation"]}
Output schema
{"type": "object", "properties": {"status": {"type": "string", "enum": ["success","error"]}, "data": {}, "meta": {}, "error
type": {"type": "string"}, "httpstatus": {"type": "integer"}}, "required": ["status"]}
Environment variables
NOTION
APIKEY: secret
or ntn key from notion.so/my-integrations
描述
通过自动版本标头和结构化输出执行 Notion API 操作。
使用方法
{auth: {notionApiKey: secret_...}, input: {operation: queryDataSource, params: {dataSourceId: abc123}}}
操作:search、getPage、queryDataSource、createPage、updatePage、appendBlocks、createDataSource
输入模式
{type: object, properties: {operation: {type: string, enum: [search,getPage,queryDataSource,createPage,updatePage,appendBlocks,createDataSource]}, params: {type: object}}, required: [operation]}
输出模式
{type: object, properties: {status: {type: string, enum: [success,error]}, data: {}, meta: {}, error
type: {type: string}, httpstatus: {type: integer}}, required: [status]}
环境变量
NOTION
APIKEY:来自 notion.so/my-integrations 的 secret
或 ntn 密钥