Create a Database, Seed a Page, and Add Content
A 3-step recipe with Notion. We can help you get access.
Recipe · 3 steps
Create a Database, Seed a Page, and Add Content
with Notion
Create a database, add a page to it, and append content blocks to that page.
- Create a database as a subpage of the parent page with a single title property in its schema.
- Create a page whose parent is the new database, setting the title property so the page conforms to the database schema.
- Append a heading and a paragraph block to the newly created page using the page ID as the block to append children to.
What you'll need to have ready
- token: Notion integration token passed as a bearer credential.
- notionVersion: The Notion API version date sent in the Notion-Version header (e.g. 2022-06-28).
- parentPageId: The ID of the existing page that will be the parent of the new database.
- databaseTitle: Plain-text title for the new database.
- titlePropertyName: The name of the title property in the new database schema (e.g. "Name").
- pageTitle: Plain-text title for the first page created inside the database.
For your developer
Arazzo workflow notion:create-database-page-content, 3 operations: createDatabase → createPage → appendBlockChildren. Specs on APIs.io.