Skip to main content
POST
/
sandbox
/
wordpress
/
{sandbox_id}
/
initialize
Initialize wordpress sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/wordpress/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "posts": [
    {
      "title": "<string>",
      "content": "<string>",
      "status": "draft",
      "excerpt": "<string>",
      "categories": [
        "<string>"
      ],
      "tags": [
        "<string>"
      ],
      "featured_image": "<string>",
      "date": "<string>",
      "format": "standard"
    }
  ]
}
'
{
  "sandbox_id": "<string>",
  "status": "idle",
  "message": "<string>",
  "records_created": {}
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Body

application/json

Complete WordPress sandbox data structure

Note: Posts are created in a single batch without dependencies. Future expansion could include pages, media, categories, etc.

posts
WordPressPost · object[] | null

List of WordPress posts to create

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied
message
string
required

Initialization result message

records_created
Records Created · object

Count of records created per object type