> ## Documentation Index
> Fetch the complete documentation index at: https://www.klavis.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Initialize asana sandbox with data

> Initialize the sandbox with asana-specific data following the defined schema.



## OpenAPI

````yaml post /sandbox/asana/{sandbox_id}/initialize
openapi: 3.1.0
info:
  title: Klavis AI (https://www.klavis.ai)
  description: Klavis AI - Open Source MCP Integrations for AI Applications
  version: 0.1.0
servers:
  - url: https://api.klavis.ai
    description: US Production server
  - url: https://api.eu.klavis.ai
    description: EU Production server
security: []
paths:
  /sandbox/asana/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize asana sandbox with data
      description: >-
        Initialize the sandbox with asana-specific data following the defined
        schema.
      operationId: initialize_sandbox_sandbox_asana__sandbox_id__initialize_post
      parameters:
        - name: sandbox_id
          in: path
          required: true
          schema:
            type: string
            description: The unique sandbox identifier
            title: Sandbox Id
          description: The unique sandbox identifier
        - name: init_default_data
          in: query
          required: false
          schema:
            type: boolean
            description: If true, use default test data for initialization
            default: false
            title: Init Default Data
          description: If true, use default test data for initialization
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/AsanaData-Input'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  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
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InitializeSandboxResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    AsanaData-Input:
      properties:
        projects:
          anyOf:
            - items:
                $ref: '#/components/schemas/AsanaProject-Input'
              type: array
            - type: 'null'
          title: Projects
          description: List of projects with nested tasks and stories
      type: object
      title: AsanaData
      description: |-
        Complete Asana sandbox data structure.

        Nested hierarchy for initialization:
        - Projects contain Tasks
        - Tasks contain Stories (comments)
    InitializeSandboxResponse:
      properties:
        sandbox_id:
          type: string
          title: Sandbox Id
          description: Sandbox identifier
        status:
          $ref: '#/components/schemas/SandboxStatus'
          description: Current status
        message:
          type: string
          title: Message
          description: Initialization result message
      type: object
      required:
        - sandbox_id
        - status
        - message
      title: InitializeSandboxResponse
      description: Response model for sandbox initialization
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AsanaProject-Input:
      properties:
        gid:
          anyOf:
            - type: string
            - type: 'null'
          title: Gid
          description: Project GID (read-only, set by Asana)
        name:
          type: string
          title: Name
          description: Project name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Project description
        tasks:
          anyOf:
            - items:
                $ref: '#/components/schemas/AsanaTask-Input'
              type: array
            - type: 'null'
          title: Tasks
          description: Tasks in this project
      type: object
      required:
        - name
      title: AsanaProject
      description: Asana Project object
    SandboxStatus:
      type: string
      enum:
        - idle
        - occupied
        - error
      title: SandboxStatus
      description: Status of a sandbox instance - matches database enum
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    AsanaTask-Input:
      properties:
        gid:
          anyOf:
            - type: string
            - type: 'null'
          title: Gid
          description: Globally unique identifier of the resource (read-only, set by Asana)
        name:
          type: string
          title: Name
          description: Task name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Task description
        completed:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Completed
          description: Whether task is completed
          default: false
        assignee:
          anyOf:
            - type: string
            - type: 'null'
          title: Assignee
          description: User GID assigned to task
        due_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Due Date
          description: Due date (YYYY-MM-DD)
        due_datetime:
          anyOf:
            - type: string
            - type: 'null'
          title: Due Datetime
          description: Due datetime (ISO 8601)
        start_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Start Date
          description: Start date (YYYY-MM-DD)
        stories:
          anyOf:
            - items:
                $ref: '#/components/schemas/AsanaStory-Input'
              type: array
            - type: 'null'
          title: Stories
          description: Stories (comments) on this task
      type: object
      required:
        - name
      title: AsanaTask
      description: Asana Task object
    AsanaStory-Input:
      properties:
        gid:
          anyOf:
            - type: string
            - type: 'null'
          title: Gid
          description: Story GID (read-only, set by Asana)
        text:
          type: string
          title: Text
          description: Story text/comment content
      type: object
      required:
        - text
      title: AsanaStory
      description: Asana Story object (comment on a task)
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````