Skip to main content
POST
/
sandbox
/
confluence
/
{sandbox_id}
/
initialize
Initialize confluence sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/confluence/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "spaces": [
    {
      "key": "<string>",
      "name": "<string>",
      "description": "<string>",
      "pages": [
        {
          "title": "<string>",
          "body": "<string>",
          "children": [
            "<unknown>"
          ],
          "comments": [
            {
              "body": "<string>"
            }
          ]
        }
      ]
    }
  ]
}
'
{
  "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 Confluence sandbox data structure.

Hierarchy:

  • Spaces contain Pages
  • Pages can have children (nested pages) and Comments
spaces
ConfluenceSpace · object[]

List of spaces

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