curl --request POST \
--url https://api.klavis.ai/sandbox/linear/{sandbox_id}/initialize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"projects": [
{
"name": "Q1 2024 Product Roadmap",
"description": "First quarter 2024 product development roadmap",
"state": "started",
"issues": [
{
"title": "Implement user authentication",
"description": "Add OAuth2 authentication flow with PKCE support",
"priority": 1,
"state_name": "In Progress",
"comments": [
{
"body": "We should use OAuth 2.0 with PKCE for better security"
},
{
"body": "I'll handle the backend implementation"
}
]
},
{
"title": "Design database schema",
"description": "Create initial database schema for users and projects",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Schema design completed and reviewed"
}
]
},
{
"title": "Setup CI/CD pipeline",
"description": "Configure automated testing and deployment pipeline",
"priority": 3,
"state_name": "Todo",
"comments": []
},
{
"title": "Fix login page responsiveness",
"priority": 4,
"state_name": "Backlog",
"comments": []
},
{
"title": "Research new UI framework",
"description": "Evaluate modern UI frameworks for future migration",
"priority": 0,
"state_name": "Todo",
"comments": [
{
"body": "Looking at React, Vue, and Svelte"
}
]
}
]
},
{
"name": "Customer Dashboard Redesign",
"state": "completed",
"issues": [
{
"title": "Create wireframes for dashboard",
"description": "Design initial wireframes and mockups",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Wireframes approved by design team"
},
{
"body": "Moving to implementation phase"
},
{
"body": "All stakeholders signed off"
}
]
},
{
"title": "Implement dashboard components",
"description": "Build reusable dashboard components",
"priority": 1,
"state_name": "Done",
"comments": []
},
{
"title": "Add analytics widgets",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Integrated with analytics API"
}
]
}
]
}
]
}
EOF{
"sandbox_id": "<string>",
"status": "idle",
"message": "<string>",
"records_created": {}
}Initialize the sandbox with linear-specific data following the defined schema.
curl --request POST \
--url https://api.klavis.ai/sandbox/linear/{sandbox_id}/initialize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"projects": [
{
"name": "Q1 2024 Product Roadmap",
"description": "First quarter 2024 product development roadmap",
"state": "started",
"issues": [
{
"title": "Implement user authentication",
"description": "Add OAuth2 authentication flow with PKCE support",
"priority": 1,
"state_name": "In Progress",
"comments": [
{
"body": "We should use OAuth 2.0 with PKCE for better security"
},
{
"body": "I'll handle the backend implementation"
}
]
},
{
"title": "Design database schema",
"description": "Create initial database schema for users and projects",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Schema design completed and reviewed"
}
]
},
{
"title": "Setup CI/CD pipeline",
"description": "Configure automated testing and deployment pipeline",
"priority": 3,
"state_name": "Todo",
"comments": []
},
{
"title": "Fix login page responsiveness",
"priority": 4,
"state_name": "Backlog",
"comments": []
},
{
"title": "Research new UI framework",
"description": "Evaluate modern UI frameworks for future migration",
"priority": 0,
"state_name": "Todo",
"comments": [
{
"body": "Looking at React, Vue, and Svelte"
}
]
}
]
},
{
"name": "Customer Dashboard Redesign",
"state": "completed",
"issues": [
{
"title": "Create wireframes for dashboard",
"description": "Design initial wireframes and mockups",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Wireframes approved by design team"
},
{
"body": "Moving to implementation phase"
},
{
"body": "All stakeholders signed off"
}
]
},
{
"title": "Implement dashboard components",
"description": "Build reusable dashboard components",
"priority": 1,
"state_name": "Done",
"comments": []
},
{
"title": "Add analytics widgets",
"priority": 2,
"state_name": "Done",
"comments": [
{
"body": "Integrated with analytics API"
}
]
}
]
}
]
}
EOF{
"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 Linear sandbox data structure.
Relational structure for initialization:
List of projects with their issues. At most 50 projects can be included.
Show child attributes
Successful Response
Response model for sandbox initialization