Skip to main content
POST
Initialize notion sandbox with data

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Query Parameters

init_default_data
boolean
default:false

If true, use default test data for initialization

Body

application/json

Complete Notion sandbox data structure.

Hierarchical structure for initialization:

  • Databases contain Data Sources
  • Data Sources contain Pages (with properties matching the schema)
  • Standalone Pages exist at top level (not in databases)
  • Pages contain Blocks (content) and Comments

Relational structure:

  • Pages refer to Data Sources (via parent_source)
  • Data Sources are nested in Databases
databases
NotionDatabase · object[] | null

List of databases with their data sources and pages

pages
NotionPage · object[] | null

List of standalone pages (not in databases)

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied,
error
message
string
required

Initialization result message