Skip to content

How can I create new page with some contents of text #121

Answered by NatLee
NatLee asked this question in Q&A
Discussion options

You must be logged in to vote

I also asked Notion offical staff and got message replied with this code.

curl --location --request POST 'https://api.notion.com/v1/pages' \
--header 'Content-Type: application/json' \
--header 'Notion-Version: 2022-02-22' \
--header 'Authorization: Bearer secret' \
--data-raw '{
    "parent": {
        "database_id": "YOUR_DATABSE_ID"
    },
    "properties": {
        "title": {
            "title": [
                {
                    "type": "text",
                    "text": {
                        "content": "A note from your pals at Notion"
                    }
                }
            ]
        }
    },
    "children": [
        {
            "object": "block",

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@ramnes
Comment options

@NatLee
Comment options

@ramnes
Comment options

@NatLee
Comment options

Answer selected by NatLee
Comment options

You must be logged in to vote
2 replies
@GlycoProtein2
Comment options

@NatLee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #120 on March 28, 2022 09:49.