This is an old revision of the document!
Integrate Notion
Add integrations
- Login your Notion account on browser
- Click button 'Add integration'
- Set a name, like 'For Testing'
- Set the following options
- After that you will get a 'Integration Token'
Set an Integration for Notion Page
Use postman to test API
Get database id
Get database
POST https://api.notion.com/v1/databases/498e7f9d5c244016af1abf53978272e3/query Headers Authorization: Bearer <Your Integration Token> Body { "filter": { "and": [ { "property": "Interview Email", "checkbox": { "equals": false } }, { "property": "Email time", "date": { "after": "2022-10-22T22:30:00.000+08:00", "before": "2022-10-25T22:40:00.000+08:00" } }, { "property": "Status", "select": { "equals": "Pending" } }, { "property": "Post", "select": { "does_not_equal": "QA" } }, { "property": "Post", "select": { "does_not_equal": "Design" } } ] } }
Update Page database
PATCH https://api.notion.com/v1/pages/073c87de-3ffc-4de2-aafc-8a168f8079c8 Headers Authorization: Bearer <Your Integration Token>, Notion-Version: 2022-06-28 Body { "properties": { "Interview Email": { "checkbox": true } } }