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

# Initialize wordpress sandbox with data

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

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

- WordPressData — WordPress sandbox data structure
  - `posts` Post[]
    - `title` string, required
    - `content` string, required
    - `status` 'draft' | 'publish' | 'private' | 'pending' | 'trash'
    - `summary` string, nullable
    - `categories` string[]
    - `tags` string[]
    - `image` string, nullable
    - `publish_date` string, nullable
    - `format` 'standard' | 'aside' | 'gallery' | 'link' | 'image' | 'quote' | 'status' | 'video' | 'audio' | 'chat', nullable

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