Create page
Creates a child page above another parent page
- Parameters
- Advanced call ?
Function CreatePage(Val Token, Val Parent, Val Title) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Parent | --page | String | ✔ | Parent ID |
| Title | --title | String | ✔ | Page title |
Returns
Map Of KeyAndValue - serialized JSON response from Notion
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "secret_9RsfMrRMqZwqp0Zl0B...";
Parent = "5dd94c34fab04bff986b7511c0779f77";
Title = "TestTitle";
Result = OPI_Notion.CreatePage(Token, Parent, Title);
- Bash
- CMD/Bat
oint notion CreatePage \
--token "***" \
--page "5dd94c34fab04bff986b7511c0779f77" \
--title "TestTitle"
oint notion CreatePage ^
--token "***" ^
--page "5dd94c34fab04bff986b7511c0779f77" ^
--title "TestTitle"
Result
{
"object": "page",
"id": "36c82aa7-fc4e-8146-864a-e7e2b5175d1d",
"created_time": "2026-05-26T14:05:00Z",
"last_edited_time": "2026-05-26T14:05:00Z",
"created_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"last_edited_by": {
"object": "user",
"id": "8b07422e-eeea-40d1-8d5e-c784211825b0"
},
"cover": null,
"icon": null,
"parent": {
"type": "page_id",
"page_id": "5dd94c34-fab0-4bff-986b-7511c0779f77"
},
"in_trash": false,
"is_archived": false,
"is_locked": false,
"properties": {
"title": {
"id": "title",
"type": "title",
"title": [
{
"type": "text",
"text": {
"content": "title",
"link": null
},
"annotations": {
"bold": false,
"italic": false,
"strikethrough": false,
"underline": false,
"code": false,
"color": "default"
},
"plain_text": "title",
"href": null
}
]
}
},
"url": "https://www.notion.so/title-36c82aa7fc4e8146864ae7e2b5175d1d",
"public_url": null,
"archived": false,
"request_id": "564097c4-0a5d-43f1-aa7c-0c827b33fbd2"
}