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": "Project Documents",
"mimeType": "application/vnd.google-apps.folder",
"description": "Main folder for project documentation"
},
{
"name": "Reports",
"mimeType": "application/vnd.google-apps.folder",
"description": "Quarterly and annual reports"
},
{
"name": "Project Plan",
"mimeType": "application/vnd.google-apps.document",
"content": "# Project Plan\n\nThis is a comprehensive project plan document outlining goals, milestones, and deliverables.",
"description": "Main project planning document"
},
{
"name": "Meeting Notes",
"mimeType": "application/vnd.google-apps.document",
"content": "# Meeting Notes\n\n## 2025-01-15 - Kickoff Meeting\n- Discussed project scope\n- Assigned team roles\n- Set initial deadlines\n\n## 2025-02-01 - Progress Review\n- Reviewed Q1 deliverables\n- Adjusted timeline\n- Budget discussion",
"description": "Team meeting notes and action items"
},
{
"name": "Q1 Budget Report",
"mimeType": "application/vnd.google-apps.document",
"content": "# Q1 Budget Report\n\n## Summary\nTotal Budget: $250,000\nSpent: $180,000\nRemaining: $70,000\n\n## Breakdown\n- Personnel: $120,000\n- Infrastructure: $40,000\n- Marketing: $20,000",
"description": "First quarter budget analysis"
},
{
"name": "Team Roster",
"mimeType": "application/vnd.google-apps.spreadsheet",
"description": "Complete team member directory"
},
{
"name": "Sales Dashboard 2025",
"mimeType": "application/vnd.google-apps.spreadsheet",
"description": "Real-time sales tracking and analytics"
},
{
"name": "Product Presentation",
"mimeType": "application/vnd.google-apps.presentation",
"description": "Quarterly product showcase slides"
},
{
"name": "README",
"mimeType": "application/vnd.google-apps.document",
"content": "# Welcome to the Project Workspace\n\nThis Drive contains all project-related documents, spreadsheets, and presentations.\n\n## Folder Structure\n- Project Documents: Planning and documentation\n- Reports: Quarterly reports and analytics\n\n## Getting Started\n1. Review the Project Plan\n2. Check Meeting Notes for latest updates\n3. Access shared resources in respective folders"
},
{
"name": "Company Logo.png",
"mimeType": "image/png",
"description": "Official company logo file"
}
]
}
'{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>",
"records_created": {}
}Initialize the sandbox with google_drive-specific data following the defined schema.
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": "Project Documents",
"mimeType": "application/vnd.google-apps.folder",
"description": "Main folder for project documentation"
},
{
"name": "Reports",
"mimeType": "application/vnd.google-apps.folder",
"description": "Quarterly and annual reports"
},
{
"name": "Project Plan",
"mimeType": "application/vnd.google-apps.document",
"content": "# Project Plan\n\nThis is a comprehensive project plan document outlining goals, milestones, and deliverables.",
"description": "Main project planning document"
},
{
"name": "Meeting Notes",
"mimeType": "application/vnd.google-apps.document",
"content": "# Meeting Notes\n\n## 2025-01-15 - Kickoff Meeting\n- Discussed project scope\n- Assigned team roles\n- Set initial deadlines\n\n## 2025-02-01 - Progress Review\n- Reviewed Q1 deliverables\n- Adjusted timeline\n- Budget discussion",
"description": "Team meeting notes and action items"
},
{
"name": "Q1 Budget Report",
"mimeType": "application/vnd.google-apps.document",
"content": "# Q1 Budget Report\n\n## Summary\nTotal Budget: $250,000\nSpent: $180,000\nRemaining: $70,000\n\n## Breakdown\n- Personnel: $120,000\n- Infrastructure: $40,000\n- Marketing: $20,000",
"description": "First quarter budget analysis"
},
{
"name": "Team Roster",
"mimeType": "application/vnd.google-apps.spreadsheet",
"description": "Complete team member directory"
},
{
"name": "Sales Dashboard 2025",
"mimeType": "application/vnd.google-apps.spreadsheet",
"description": "Real-time sales tracking and analytics"
},
{
"name": "Product Presentation",
"mimeType": "application/vnd.google-apps.presentation",
"description": "Quarterly product showcase slides"
},
{
"name": "README",
"mimeType": "application/vnd.google-apps.document",
"content": "# Welcome to the Project Workspace\n\nThis Drive contains all project-related documents, spreadsheets, and presentations.\n\n## Folder Structure\n- Project Documents: Planning and documentation\n- Reports: Quarterly reports and analytics\n\n## Getting Started\n1. Review the Project Plan\n2. Check Meeting Notes for latest updates\n3. Access shared resources in respective folders"
},
{
"name": "Company Logo.png",
"mimeType": "image/png",
"description": "Official company logo file"
}
]
}
'{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>",
"records_created": {}
}Your Klavis AI API key.
The unique sandbox identifier
If true, use default test data for initialization
Complete Google Drive sandbox data structure
List of Google Drive files and folders
Show child attributes
Successful Response
Response model for sandbox initialization