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 one database
POST https://api.notion.com/v1/databases/{database_id}/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"
}
}
]
}
}
- Get result like that, so that we can get each page id
Update one Page
PATCH https://api.notion.com/v1/pages/{page_id}
Headers
Authorization: Bearer <Your Integration Token>,
Notion-Version: 2022-06-28
Body
{
"properties": {
"Interview Email": {
"checkbox": true
}
}
}



