Create a database
Create a database and its initial data source.
properties schema set on its initial_data_source. Currently, the parent of a new database must be a Notion page (page_id type) or a wiki database.
Use this endpoint to create a database, its first data source, and its first table view, all in one API call. Then, if you want to add a second data source, use the Create a data source API with a version of at least 2025-09-03, and provide the database_id as the id returned by the database create response.
For a complete reference on what properties are available, see Data source properties. After creating the database, to update one of its child data sources’ properties, use the Update a data source API.
Typed databases
Passdatabase_type to build the database from one of Notion’s canonical schemas instead of your own. Notion sets the properties and the metadata that marks the database as that type, so the result matches a database of that type created in the Notion app. Supported values are tasks, projects, and skills.
Each type creates a fixed set of properties:
status option names and IDs, before writing pages. To add properties of your own on top of a typed schema, use Update a data source.
database_type can’t be combined with initial_data_source, because a typed database always uses Notion’s schema. Sending both returns a 400 HTTP response. If you omit title, the database is named after its type. The created database and its data source both report the type back as database_type.
This endpoint requires a connection to have insert content capabilities. Attempting to call this API without insert content capabilities will return an HTTP response with a 403 status code. For more information on connection capabilities, see the capabilities guide.
Errors
Returns a 404 if the specified parent page does not exist, or if the connection does not have access to the parent page.
Returns a 400 if the request is incorrectly formatted, or a 429 HTTP response if the request exceeds the request limits.Note: Each Public API endpoint can return several possible error codes. See the Error codes section of the Status codes documentation for more information.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
The API version to use for this request. The latest version is 2026-03-11.
2026-03-11 Body
The parent page or workspace where the database will be created.
- Page Id
- Workspace
The title of the database.
100- Text
- Mention
- Equation
The description of the database.
100- Text
- Mention
- Equation
Whether the database should be displayed inline in the parent page. Defaults to false.
Initial data source configuration for the database.
Create a typed database with Notion's canonical schema. One of tasks, projects, or skills. Cannot be combined with initial_data_source. When title is omitted, the database is named after the type.
tasks, projects, skills The icon for the database.
- File Upload
- Emoji
- External
- Custom Emoji
- Icon
The cover image for the database.
- File Upload
- External