cURL
curl --request POST \ --url https://api.klavis.ai/sandbox/onedrive/{sandbox_id}/initialize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "root": { "name": "<string>", "id": "<string>", "folders": [ "<unknown>" ], "files": [ { "name": "<string>", "id": "<string>", "content": "<string>" } ] } } '
{ "sandbox_id": "<string>", "status": "idle", "message": "<string>", "records_created": {} }
Initialize the sandbox with onedrive-specific data following the defined schema.
Your Klavis AI API key.
The unique sandbox identifier
Complete OneDrive sandbox data structure
Root folder containing all subfolders and files
Show child attributes
Folder name
Folder ID (read-only, set by OneDrive)
List of subfolders
List of files in the folder
File name
File ID (read-only, set by OneDrive)
File content (text files only)
Successful Response
Response model for sandbox initialization
Sandbox identifier
Current status
idle
occupied
Initialization result message
Count of records created per object type