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

# Initialize google_docs sandbox with data

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

Initialize the sandbox with google_docs-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

- GoogleDocsData — Complete Google Docs sandbox data structure
  - `documents` GoogleDocsDocument[], nullable — List of Google Docs documents
    - `title` string, required — Document title (required)
    - `content` string, nullable — Plain text content of the document

## 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

---

[API](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) · [All operations](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/klavis-ai/klavis-ai-https-www-klavis-ai/versions/1f05ced7280f/schema)
