VX Agents

OpenAPI Marketplace

notion-workspace-core-openapi

v1.0.0 · 6 endpoints · 2 connections · shared by Lân Nguyễn Trịnh

Core Notion REST API for searching a workspace, retrieving pages, creating and updating pages, querying data sources, and identifying the connected user. The user supplies a Notion integration or OAuth Bearer token at connection time; no credential is included. Official documentation: https://developers.notion.com/reference/intro

Connect this API to an AI agent Browse all specs

What you can do with notion-workspace-core-openapi via MCP

Every endpoint below becomes a governed tool your AI agent (Claude, ChatGPT, or a customer-facing VX agent) can call — with scoped permissions, sandbox testing, and audit logs.

MethodPathOperationDescription
GET /v1/users/me getCurrentUser Get the connected user
POST /v1/search searchWorkspace Search a Notion workspace
GET /v1/pages/{page_id} getPage Retrieve a page
PATCH /v1/pages/{page_id} updatePage Update or archive a page
POST /v1/pages createPage Create a page
POST /v1/data_sources/{data_source_id}/query queryDataSource Query a Notion data source

Authentication

bearerAuth

Bearer token — sent as Authorization: Bearer <token>

Usage guide

Getting credentials

  1. Create or log in to an account at Notion.
  2. Create an internal integration or configure an OAuth public connection in the Notion Developer Portal.
  3. Share the target pages and data sources with the integration using Notion's Add connections setting.
  4. When VX Agent asks for authentication, provide the Notion Bearer token.

Keep the token private. Do not paste it into the Swagger file, marketplace description, prompts, or chat messages.

How to use this API

Use this API to search an authorized Notion workspace, read pages, create pages, update pages, and query structured data sources.

A typical workflow is:

  1. Use GET /v1/users/me to verify the connected integration or user.
  2. Use POST /v1/search to find pages or data sources and obtain their IDs.
  3. Use GET /v1/pages/{page_id} to retrieve page properties and metadata.
  4. Use POST /v1/data_sources/{data_source_id}/query to query pages in a structured data source with filters, sorts, and pagination.
  5. Use POST /v1/pages to create a page under an authorized parent page or data source.
  6. Use PATCH /v1/pages/{page_id} to update page properties, icon, cover, lock state, or archive status.

Every request must include the Notion-Version header configured in the Swagger file. Use the current version supported by the connection and follow the data source model rather than the deprecated database query endpoint.

Safety and usage notes

Only access pages and data sources that have been explicitly shared with the connected integration. Creating, updating, archiving, locking, or erasing page content changes the user's workspace, so require confirmation before each consequential operation.

Never set erase_content to true unless the user explicitly confirms that all existing page content may be removed. Do not expose private workspace content, integration tokens, customer data, or confidential notes.

Use pagination for large searches and data-source queries. Verify page IDs, parent IDs, property names, and content before creating or updating pages.

Official documentation: Notion API Introduction.

How to use this spec

  1. Create a free VX Agents account (sandbox tools included).
  2. Open the marketplace and connect “notion-workspace-core-openapi” to an agent.
  3. Expose it as an MCP server for Claude/ChatGPT, or chat with it directly.

Related APIs