Skip to main content
Workspace and knowledge management API for searching, creating, and updating pages, databases, and blocks in Notion. Best for workflows that need to read or write structured content — project boards, wikis, meeting notes, and knowledge bases. Unlike Google Workspace (document-centric), Notion’s API exposes a database-like structure where pages have typed properties. 6 example endpoints available through Lava’s AI Gateway. See the Notion API docs for full documentation.
This provider requires your own credentials — connect your API key or OAuth account before use.
This is a catch-all provider — any valid URL under https://api.notion.com/v1 is supported. Any Notion API endpoint. Construct URL as https://api.notion.com/v1/{path}. See https://developers.notion.com/reference for full reference. The endpoints below are curated examples.

Endpoints

Search pages and databases

POST https://api.notion.com/v1/search — Free
const data = await lava.gateway('https://api.notion.com/v1/search', { body: {"query":"your search term"} });

Query a database

POST https://api.notion.com/v1/databases/{database_id}/query — Free
const data = await lava.gateway('https://api.notion.com/v1/databases/{database_id}/query', { body: {} });

Retrieve a page

GET https://api.notion.com/v1/pages/{page_id} — Free
const data = await lava.gateway('https://api.notion.com/v1/pages/{page_id}', { method: 'GET' });

Create a page

POST https://api.notion.com/v1/pages — Free
const data = await lava.gateway('https://api.notion.com/v1/pages', {
  body: {
"parent": {
  "database_id": "..."
},
"properties": {
  "Name": {
    "title": [
      {
        "text": {
          "content": "New page"
        }
      }
    ]
  }
}
},
});

Update page properties

PATCH https://api.notion.com/v1/pages/{page_id} — Free
const data = await lava.gateway('https://api.notion.com/v1/pages/{page_id}', { method: 'PATCH', body: {"properties":{"Status":{"select":{"name":"Done"}}}} });

Delete a block

DELETE https://api.notion.com/v1/blocks/{block_id} — Free
const data = await lava.gateway('https://api.notion.com/v1/blocks/{block_id}', { method: 'DELETE' });

Next Steps

All Providers

Browse all supported AI providers

Forward Proxy

Learn how to construct proxy URLs and authenticate requests