Skip to main content
POST
/
sandbox
/
snowflake
/
{sandbox_id}
/
initialize
Initialize snowflake sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/snowflake/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "databases": [
    {
      "name": "<string>",
      "comment": "<string>",
      "schemas": [
        {
          "name": "<string>",
          "tables": [
            {
              "name": "<string>",
              "columns": [
                {
                  "name": "<string>",
                  "data_type": "<string>",
                  "nullable": true,
                  "default": "<string>"
                }
              ],
              "rows": [
                {
                  "values": {}
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
'
{
  "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 Snowflake sandbox data structure.

Hierarchical structure for initialization:

  • Databases contain Schemas
  • Schemas contain Tables
  • Tables contain Columns and Rows
databases
SnowflakeDatabase · object[]

List of databases with their schemas

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