cURL
curl --request POST \ --url https://api.klavis.ai/sandbox/google_drive/{sandbox_id}/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "files": [ { "name": "<string>", "mimeType": "<string>", "description": "<string>", "parents": [ "<string>" ], "content": "<string>" } ] } '
{ "sandbox_id": "<string>", "status": "idle", "message": "<string>", "records_created": {} }
Initialize the sandbox with google_drive-specific data following the defined schema.
Your Klavis AI API key.
The unique sandbox identifier
Complete Google Drive sandbox data structure
List of Google Drive files and folders
Show child attributes
Name of the file or folder (required)
1
MIME type of the file (required). Use 'application/vnd.google-apps.folder' for folders
Description of the file
List of parent folder IDs
Text content for Google Docs documents
Successful Response
Response model for sandbox initialization
Sandbox identifier
Current status
idle
occupied
Initialization result message
Count of records created per object type