Skip to main content
POST
/
sandbox
/
asana
/
{sandbox_id}
/
initialize
Initialize asana sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/asana/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "projects": [
    {
      "name": "Website Redesign Project",
      "description": "Complete redesign of company website with modern UI/UX",
      "tasks": [
        {
          "name": "Design homepage mockups",
          "description": "Create initial design mockups for the new homepage layout",
          "due_date": "2025-12-15",
          "completed": false,
          "stories": [
            {
              "text": "Let's prioritize the mobile-first design approach for this mockup"
            }
          ]
        },
        {
          "name": "Fix navigation menu bug",
          "description": "Navigation menu not working properly on mobile devices",
          "due_date": "2025-12-03",
          "completed": false,
          "stories": [
            {
              "text": "This bug is blocking the mobile release, marking as urgent"
            }
          ]
        }
      ]
    },
    {
      "name": "Mobile App Development",
      "description": "iOS and Android app development for customer portal",
      "tasks": [
        {
          "name": "Set up development environment",
          "description": "Configure local development environment for mobile app",
          "due_date": "2025-12-05",
          "completed": false,
          "stories": [
            {
              "text": "We should ensure the development environment uses the latest stable versions"
            }
          ]
        },
        {
          "name": "Write API documentation",
          "description": "Document all REST API endpoints for the mobile app",
          "due_date": "2025-12-20",
          "completed": false,
          "stories": [
            {
              "text": "Include code examples for each API endpoint to help developers"
            }
          ]
        },
        {
          "name": "Implement user authentication",
          "description": "Add OAuth2 authentication flow to mobile app",
          "due_date": "2025-12-22",
          "completed": false
        }
      ]
    },
    {
      "name": "Marketing Campaign Q4",
      "description": "Q4 marketing initiatives and campaign planning",
      "tasks": [
        {
          "name": "Create social media content calendar",
          "description": "Plan and schedule social media posts for Q4 campaign",
          "due_date": "2025-12-10",
          "completed": false,
          "stories": [
            {
              "text": "Don't forget to coordinate with the content team for approval"
            }
          ]
        },
        {
          "name": "Review competitor analysis",
          "description": "Analyze competitor offerings and positioning",
          "due_date": "2025-12-08",
          "completed": false,
          "stories": [
            {
              "text": "This is critical for our competitive positioning"
            }
          ]
        },
        {
          "name": "Update brand guidelines",
          "description": "Refresh brand guidelines to reflect new visual identity",
          "due_date": "2025-12-12",
          "completed": false,
          "stories": [
            {
              "text": "The new guidelines should include updated logo usage rules"
            }
          ]
        }
      ]
    },
    {
      "name": "Product Launch 2025",
      "description": "New product launch preparation and coordination",
      "tasks": [
        {
          "name": "Conduct user testing sessions",
          "description": "Schedule and conduct user testing for new features",
          "due_date": "2025-12-18",
          "completed": false,
          "stories": [
            {
              "text": "We need at least 10 participants for meaningful user testing results"
            }
          ]
        },
        {
          "name": "Prepare product demo presentation",
          "description": "Create compelling demo presentation for stakeholders",
          "due_date": "2025-12-25",
          "completed": false
        }
      ]
    }
  ]
}
EOF
import requests

url = "https://api.klavis.ai/sandbox/asana/{sandbox_id}/initialize"

payload = { "projects": [
{
"name": "Website Redesign Project",
"description": "Complete redesign of company website with modern UI/UX",
"tasks": [
{
"name": "Design homepage mockups",
"description": "Create initial design mockups for the new homepage layout",
"due_date": "2025-12-15",
"completed": False,
"stories": [{ "text": "Let's prioritize the mobile-first design approach for this mockup" }]
},
{
"name": "Fix navigation menu bug",
"description": "Navigation menu not working properly on mobile devices",
"due_date": "2025-12-03",
"completed": False,
"stories": [{ "text": "This bug is blocking the mobile release, marking as urgent" }]
}
]
},
{
"name": "Mobile App Development",
"description": "iOS and Android app development for customer portal",
"tasks": [
{
"name": "Set up development environment",
"description": "Configure local development environment for mobile app",
"due_date": "2025-12-05",
"completed": False,
"stories": [{ "text": "We should ensure the development environment uses the latest stable versions" }]
},
{
"name": "Write API documentation",
"description": "Document all REST API endpoints for the mobile app",
"due_date": "2025-12-20",
"completed": False,
"stories": [{ "text": "Include code examples for each API endpoint to help developers" }]
},
{
"name": "Implement user authentication",
"description": "Add OAuth2 authentication flow to mobile app",
"due_date": "2025-12-22",
"completed": False
}
]
},
{
"name": "Marketing Campaign Q4",
"description": "Q4 marketing initiatives and campaign planning",
"tasks": [
{
"name": "Create social media content calendar",
"description": "Plan and schedule social media posts for Q4 campaign",
"due_date": "2025-12-10",
"completed": False,
"stories": [{ "text": "Don't forget to coordinate with the content team for approval" }]
},
{
"name": "Review competitor analysis",
"description": "Analyze competitor offerings and positioning",
"due_date": "2025-12-08",
"completed": False,
"stories": [{ "text": "This is critical for our competitive positioning" }]
},
{
"name": "Update brand guidelines",
"description": "Refresh brand guidelines to reflect new visual identity",
"due_date": "2025-12-12",
"completed": False,
"stories": [{ "text": "The new guidelines should include updated logo usage rules" }]
}
]
},
{
"name": "Product Launch 2025",
"description": "New product launch preparation and coordination",
"tasks": [
{
"name": "Conduct user testing sessions",
"description": "Schedule and conduct user testing for new features",
"due_date": "2025-12-18",
"completed": False,
"stories": [{ "text": "We need at least 10 participants for meaningful user testing results" }]
},
{
"name": "Prepare product demo presentation",
"description": "Create compelling demo presentation for stakeholders",
"due_date": "2025-12-25",
"completed": False
}
]
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
projects: [
{
name: 'Website Redesign Project',
description: 'Complete redesign of company website with modern UI/UX',
tasks: [
{
name: 'Design homepage mockups',
description: 'Create initial design mockups for the new homepage layout',
due_date: '2025-12-15',
completed: false,
stories: [{text: 'Let\'s prioritize the mobile-first design approach for this mockup'}]
},
{
name: 'Fix navigation menu bug',
description: 'Navigation menu not working properly on mobile devices',
due_date: '2025-12-03',
completed: false,
stories: [{text: 'This bug is blocking the mobile release, marking as urgent'}]
}
]
},
{
name: 'Mobile App Development',
description: 'iOS and Android app development for customer portal',
tasks: [
{
name: 'Set up development environment',
description: 'Configure local development environment for mobile app',
due_date: '2025-12-05',
completed: false,
stories: [
{
text: 'We should ensure the development environment uses the latest stable versions'
}
]
},
{
name: 'Write API documentation',
description: 'Document all REST API endpoints for the mobile app',
due_date: '2025-12-20',
completed: false,
stories: [{text: 'Include code examples for each API endpoint to help developers'}]
},
{
name: 'Implement user authentication',
description: 'Add OAuth2 authentication flow to mobile app',
due_date: '2025-12-22',
completed: false
}
]
},
{
name: 'Marketing Campaign Q4',
description: 'Q4 marketing initiatives and campaign planning',
tasks: [
{
name: 'Create social media content calendar',
description: 'Plan and schedule social media posts for Q4 campaign',
due_date: '2025-12-10',
completed: false,
stories: [{text: 'Don\'t forget to coordinate with the content team for approval'}]
},
{
name: 'Review competitor analysis',
description: 'Analyze competitor offerings and positioning',
due_date: '2025-12-08',
completed: false,
stories: [{text: 'This is critical for our competitive positioning'}]
},
{
name: 'Update brand guidelines',
description: 'Refresh brand guidelines to reflect new visual identity',
due_date: '2025-12-12',
completed: false,
stories: [{text: 'The new guidelines should include updated logo usage rules'}]
}
]
},
{
name: 'Product Launch 2025',
description: 'New product launch preparation and coordination',
tasks: [
{
name: 'Conduct user testing sessions',
description: 'Schedule and conduct user testing for new features',
due_date: '2025-12-18',
completed: false,
stories: [{text: 'We need at least 10 participants for meaningful user testing results'}]
},
{
name: 'Prepare product demo presentation',
description: 'Create compelling demo presentation for stakeholders',
due_date: '2025-12-25',
completed: false
}
]
}
]
})
};

fetch('https://api.klavis.ai/sandbox/asana/{sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
projects: [
{
name: 'Website Redesign Project',
description: 'Complete redesign of company website with modern UI/UX',
tasks: [
{
name: 'Design homepage mockups',
description: 'Create initial design mockups for the new homepage layout',
due_date: '2025-12-15',
completed: false,
stories: [{text: 'Let\'s prioritize the mobile-first design approach for this mockup'}]
},
{
name: 'Fix navigation menu bug',
description: 'Navigation menu not working properly on mobile devices',
due_date: '2025-12-03',
completed: false,
stories: [{text: 'This bug is blocking the mobile release, marking as urgent'}]
}
]
},
{
name: 'Mobile App Development',
description: 'iOS and Android app development for customer portal',
tasks: [
{
name: 'Set up development environment',
description: 'Configure local development environment for mobile app',
due_date: '2025-12-05',
completed: false,
stories: [
{
text: 'We should ensure the development environment uses the latest stable versions'
}
]
},
{
name: 'Write API documentation',
description: 'Document all REST API endpoints for the mobile app',
due_date: '2025-12-20',
completed: false,
stories: [{text: 'Include code examples for each API endpoint to help developers'}]
},
{
name: 'Implement user authentication',
description: 'Add OAuth2 authentication flow to mobile app',
due_date: '2025-12-22',
completed: false
}
]
},
{
name: 'Marketing Campaign Q4',
description: 'Q4 marketing initiatives and campaign planning',
tasks: [
{
name: 'Create social media content calendar',
description: 'Plan and schedule social media posts for Q4 campaign',
due_date: '2025-12-10',
completed: false,
stories: [{text: 'Don\'t forget to coordinate with the content team for approval'}]
},
{
name: 'Review competitor analysis',
description: 'Analyze competitor offerings and positioning',
due_date: '2025-12-08',
completed: false,
stories: [{text: 'This is critical for our competitive positioning'}]
},
{
name: 'Update brand guidelines',
description: 'Refresh brand guidelines to reflect new visual identity',
due_date: '2025-12-12',
completed: false,
stories: [{text: 'The new guidelines should include updated logo usage rules'}]
}
]
},
{
name: 'Product Launch 2025',
description: 'New product launch preparation and coordination',
tasks: [
{
name: 'Conduct user testing sessions',
description: 'Schedule and conduct user testing for new features',
due_date: '2025-12-18',
completed: false,
stories: [{text: 'We need at least 10 participants for meaningful user testing results'}]
},
{
name: 'Prepare product demo presentation',
description: 'Create compelling demo presentation for stakeholders',
due_date: '2025-12-25',
completed: false
}
]
}
]
})
};

fetch('https://api.klavis.ai/sandbox/asana/{sandbox_id}/initialize', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
{
  "sandbox_id": "<string>",
  "message": "<string>"
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Query Parameters

init_default_data
boolean
default:false

If true, use default test data for initialization

Body

application/json

Complete Asana sandbox data structure.

Nested hierarchy for initialization:

  • Projects contain Tasks
  • Tasks contain Stories (comments)
projects
AsanaProject · object[] | null

List of projects with nested tasks and stories

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied,
error
message
string
required

Initialization result message