cURL
curl --request POST \ --url https://api.klavis.ai/sandbox/google_sheets/{sandbox_id}/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "spreadsheets": [ { "properties": { "title": "<string>" }, "sheets": [ { "properties": { "title": "<string>", "index": 123, "gridProperties": {} }, "data": [ { "startRow": 0, "startColumn": 0, "rowData": [ { "values": [ { "userEnteredValue": {} } ] } ] } ] } ] } ] } '
{ "sandbox_id": "<string>", "status": "idle", "message": "<string>", "records_created": {} }
Initialize the sandbox with google_sheets-specific data following the defined schema.
Your Klavis AI API key.
The unique sandbox identifier
Complete Google Sheets sandbox data structure
List of Google Sheets spreadsheets
Show child attributes
Spreadsheet properties including title (required)
Spreadsheet title (required)
List of sheets in the spreadsheet
Sheet properties (required)
Sheet title (required)
1
Sheet index position
Grid properties (rowCount, columnCount)
Grid data for the sheet
Starting row index
Starting column index
Row data with values array
Cell values in the row
The value entered by the user
Successful Response
Response model for sandbox initialization
Sandbox identifier
Current status
idle
occupied
Initialization result message
Count of records created per object type