---
title: "Initialize mock_notion sandbox with data"
method: POST
path: "/sandbox/mock_notion/{sandbox_id}/initialize"
tags: ["sandbox"]
---

# Initialize mock_notion sandbox with data

`POST /sandbox/mock_notion/{sandbox_id}/initialize`

## Request

- Base URL: `https://api.klavis.ai`
- URL: `https://api.klavis.ai/sandbox/mock_notion/{sandbox_id}/initialize`
- Auth: HTTP bearer

Initialize the sandbox with mock_notion-specific data following the defined schema.

## Path parameters

- `sandbox_id` string, required: The unique sandbox identifier

## Query parameters

- `init_default_data` boolean: If true, use default test data for initialization

## Request body

- MockNotionData: Per-server data shape for mock_notion. Currently only the template selector.
  - `tag` string, required: Template/category tag selecting which template page the mock clones (e.g. 'company_in_a_box')

## Response `200`

Successful Response

- InitializeSandboxResponse: Response model for sandbox initialization
  - `sandbox_id` string, required: Sandbox identifier
  - `status` 'idle' | 'occupied' | 'error', required: Status of a sandbox instance - matches database enum
  - `message` string, required: Initialization result message

## Other responses

- `422`: Validation Error

## Changes

- **2026-06-01** `1f05ced7280f`: 1 breaking, 1 warning
  - added the new required request property `anyOf[subschema #1: MockNotionData]/tag`
  - removed the request property `anyOf[subschema #1: MockNotionData]/task_id`
- **2026-05-26** `05c3b59aa353`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/changes/sandbox/mock_notion/:sandbox_id/initialize/post.md)

---

[API](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) - [All operations](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/klavis-ai/apis/klavis-ai-https-www-klavis-ai/revisions/1f05ced7280f?raw)
