Workspace access for pages and databases
https://api.notion.com/v1/search
| Param | Type | Required | Description |
|---|---|---|---|
| query | string | optional | Search query text |
| filter | object | optional | Filter by object type (page or database) |
| sort | object | optional | Sort configuration |
| page_size | integer | optional | Number of results (max 100) |
/search
| Param | Type | Required | Description |
|---|---|---|---|
| filter | object | optional | Set to {"property": "object", "value": "database"} |
| page_size | integer | optional | Number of results |
/databases/{database_id}
| Param | Type | Required | Description |
|---|---|---|---|
| database_id | string | required | Database ID |
/databases/{database_id}/query
| Param | Type | Required | Description |
|---|---|---|---|
| database_id | string | required | Database ID |
| filter | object | optional | Filter conditions |
| sorts | array | optional | Sort configuration |
| page_size | integer | optional | Number of results |
/pages/{page_id}
| Param | Type | Required | Description |
|---|---|---|---|
| page_id | string | required | Page ID |
/pages
| Param | Type | Required | Description |
|---|---|---|---|
| parent | object | required | Parent database or page |
| properties | object | required | Page properties |
| children | array | optional | Page content blocks |
/pages/{page_id}
| Param | Type | Required | Description |
|---|---|---|---|
| page_id | string | required | Page ID |
| properties | object | optional | Properties to update |
| archived | boolean | optional | Archive the page |
/blocks/{block_id}/children
| Param | Type | Required | Description |
|---|---|---|---|
| block_id | string | required | Block ID (can be page ID) |
| page_size | integer | optional | Number of results |
/blocks/{block_id}/children
| Param | Type | Required | Description |
|---|---|---|---|
| block_id | string | required | Block ID (can be page ID) |
| children | array | required | Blocks to append |
/users
| Param | Type | Required | Description |
|---|---|---|---|
| page_size | integer | optional | Number of results |