[
{
"handle": "databases",
"meta": {
"short": "Databases",
"description": "Manage and query Notion databases"
},
"endpoint": {
"value": "v1/databases"
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "Unique identifier for the database"
}
},
{
"name": "title",
"type": "String",
"selector": [
"title",
0,
"plain_text"
],
"meta": {
"description": "Title of the database"
},
"multivalue": true
},
{
"name": "created_time",
"type": "String",
"selector": [
"created_time"
],
"meta": {
"description": "ISO 8601 timestamp when the database was created."
}
},
{
"name": "last_edited_time",
"type": "String",
"selector": [
"last_edited_time"
],
"meta": {
"description": "ISO 8601 timestamp when the database was last edited."
}
},
{
"name": "url",
"type": "String",
"selector": [
"url"
],
"meta": {
"description": "The URL of the database in Notion."
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"read": {
"method": "GET",
"path": {
"value": "{{databaseId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"create": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"parent\": {\"type\": \"{{parentType}}\", \"{{parentType}}\": \"{{parentId}}\"},\"title\": [{\"type\": \"text\", \"text\": {\"content\": \"{{title}}\"}}],\"properties\": {{properties}}}"
}
},
"update": {
"method": "PATCH",
"path": {
"value": "{{databaseId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"title\": [{\"type\": \"text\", \"text\": {\"content\": \"{{title}}\"}}],\"properties\": {{properties}}}"
}
}
},
"webhooks": [
{
"event": "database.created",
"path": "/webhooks/notion/database.created",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the database." } },
{ "name": "title", "type": "String", "selector": ["title", 0, "plain_text"], "meta": { "description": "The title of the database." } }
]
},
{
"event": "database.updated",
"path": "/webhooks/notion/database.updated",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the database." } },
{ "name": "title", "type": "String", "selector": ["title", 0, "plain_text"], "meta": { "description": "The title of the database." } }
]
}
]
},
{
"handle": "pages",
"meta": {
"short": "Pages",
"description": "Manage Notion pages"
},
"endpoint": {
"value": "v1/pages"
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "Unique identifier for the page"
}
},
{
"name": "title",
"type": "String",
"selector": [
"properties",
"title",
"title",
0,
"plain_text"
],
"meta": {
"description": "Title of the page"
},
"multivalue": true
},
{
"name": "content",
"type": "String",
"selector": [
"properties",
"content",
"rich_text",
0,
"plain_text"
],
"meta": {
"description": "Content of the page"
},
"multivalue": true
}
],
"operations": {
"read": {
"method": "GET",
"path": {
"value": "{{pageId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"create": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"parent\": {\"type\": \"{{parentType}}\", \"{{parentType}}\": \"{{parentId}}\"},\"properties\": {\"title\": {\"title\": [{\"type\": \"text\", \"text\": {\"content\": \"{{title}}\"}}]}}}"
}
},
"update": {
"method": "PATCH",
"path": {
"value": "{{pageId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"properties\": {\"title\": {\"title\": [{\"type\": \"text\", \"text\": {\"content\": \"{{title}}\"}}]}}}"
}
}
},
"webhooks": [
{
"event": "page.created",
"path": "/webhooks/notion/page.created",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the page." } },
{ "name": "title", "type": "String", "selector": ["properties", "title", "title", 0, "plain_text"], "meta": { "description": "The title of the page." } }
]
},
{
"event": "page.updated",
"path": "/webhooks/notion/page.updated",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the page." } },
{ "name": "title", "type": "String", "selector": ["properties", "title", "title", 0, "plain_text"], "meta": { "description": "The title of the page." } }
]
}
]
},
{
"handle": "blocks",
"meta": {
"short": "Blocks",
"description": "Manage Notion blocks"
},
"endpoint": {
"value": "v1/blocks"
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "Unique identifier for the block"
}
},
{
"name": "type",
"type": "String",
"selector": [
"type"
],
"meta": {
"description": "Type of the block"
}
},
{
"name": "content",
"type": "String",
"selector": [
"{{type}}",
"rich_text",
0,
"plain_text"
],
"meta": {
"description": "Content of the block"
},
"multivalue": true
}
],
"operations": {
"read": {
"method": "GET",
"path": {
"value": "{{blockId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"list": {
"method": "GET",
"path": {
"value": "{{blockId}}/children"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"update": {
"method": "PATCH",
"path": {
"value": "{{blockId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"{{type}}\": {\"rich_text\": [{\"type\": \"text\", \"text\": {\"content\": \"{{content}}\"}}]}}"
}
},
"delete": {
"method": "DELETE",
"path": {
"value": "{{blockId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
}
},
"webhooks": [
{
"event": "block.updated",
"path": "/webhooks/notion/block.updated",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the block." } },
{ "name": "type", "type": "String", "selector": ["type"], "meta": { "description": "The type of the block." } }
]
}
]
},
{
"handle": "search",
"meta": {
"short": "Search",
"description": "Search across Notion pages and databases"
},
"endpoint": {
"value": "v1/search"
},
"fields": [
{
"name": "results_0_id",
"type": "String",
"selector": [
"results",
0,
"id"
],
"meta": {
"description": "ID of the first search result."
},
"multivalue": true
},
{
"name": "results_0_object",
"type": "String",
"selector": [
"results",
0,
"object"
],
"meta": {
"description": "Object type of the first result (page or database)."
},
"multivalue": true
},
{
"name": "results_0_url",
"type": "String",
"selector": [
"results",
0,
"url"
],
"meta": {
"description": "URL of the first search result."
},
"multivalue": true
}
],
"operations": {
"list": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"query\": \"{{query}}\", \"filter\": {\"value\": \"{{filterType}}\", \"property\": \"{{filterProperty}}\"}}"
}
}
},
"webhooks": []
},
{
"handle": "users",
"meta": {
"short": "Users",
"description": "Manage Notion users"
},
"endpoint": {
"value": "v1/users"
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "Unique identifier for the user"
}
},
{
"name": "name",
"type": "String",
"selector": [
"name"
],
"meta": {
"description": "User's name"
}
},
{
"name": "type",
"type": "String",
"selector": [
"type"
],
"meta": {
"description": "Type of user, e.g., 'person' or 'bot'"
}
},
{
"name": "avatar_url",
"type": "String",
"selector": [
"avatar_url"
],
"meta": {
"description": "URL of the user's avatar"
}
},
{
"name": "email",
"type": "String",
"selector": [
"person",
"email"
],
"meta": {
"description": "Email address of the person"
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"read": {
"method": "GET",
"path": {
"value": "{{userId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
}
},
"webhooks": [
{
"event": "user.updated",
"path": "/webhooks/notion/user.updated",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the user." } },
{ "name": "name", "type": "String", "selector": ["name"], "meta": { "description": "The name of the user." } }
]
}
]
},
{
"handle": "comments",
"meta": {
"short": "Comments",
"description": "Manage Notion comments"
},
"endpoint": {
"value": "v1/comments"
},
"fields": [
{
"name": "id",
"type": "String",
"selector": [
"id"
],
"meta": {
"description": "Unique identifier for the comment"
}
},
{
"name": "discussion_id",
"type": "String",
"selector": [
"discussion_id"
],
"meta": {
"description": "ID of the discussion the comment belongs to"
}
},
{
"name": "rich_text",
"type": "String",
"selector": [
"rich_text",
0,
"plain_text"
],
"meta": {
"description": "Plain text content of the comment"
},
"multivalue": true
},
{
"name": "created_time",
"type": "String",
"selector": [
"created_time"
],
"meta": {
"description": "Creation time of the comment"
}
},
{
"name": "created_by_id",
"type": "String",
"selector": [
"created_by",
"id"
],
"meta": {
"description": "ID of the user who created the comment"
}
}
],
"operations": {
"list": {
"method": "GET",
"path": {
"value": "?block_id={{blockId}}"
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}"
}
},
"create": {
"method": "POST",
"path": {
"value": ""
},
"headers": {
"Notion-Version": "2022-06-28",
"Authorization": "Bearer {{apiKey}}",
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"parent\": {\"{{parentType}}\": \"{{parentId}}\"}, \"rich_text\": [{\"text\": {\"content\": \"{{content}}\"}}]}"
}
}
},
"webhooks": [
{
"event": "comment.created",
"path": "/webhooks/notion/comment.created",
"payload": [
{ "name": "id", "type": "String", "selector": ["id"], "meta": { "description": "The unique identifier for the comment." } },
{ "name": "discussion_id", "type": "String", "selector": ["discussion_id"], "meta": { "description": "The ID of the discussion the comment belongs to." } },
{ "name": "rich_text", "type": "String", "selector": ["rich_text", 0, "plain_text"], "meta": { "description": "The plain text content of the comment." } }
]
}
]
}
]