Table of Contents

Integrate Notion

Add integrations

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"
                }
            }
        ]
    }
}

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
        }
    }
}