> ## 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 linear sandbox with data

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



## OpenAPI

````yaml post /sandbox/linear/{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/linear/{sandbox_id}/initialize:
    post:
      tags:
        - sandbox
      summary: Initialize linear sandbox with data
      description: >-
        Initialize the sandbox with linear-specific data following the defined
        schema.
      operationId: initialize_sandbox_sandbox_linear__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/LinearData-Input'
                - type: 'null'
              title: Request Body
            examples:
              default:
                summary: Example initialization data
                value:
                  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
      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:
    LinearData-Input:
      properties:
        projects:
          items:
            $ref: '#/components/schemas/LinearProject-Input'
          type: array
          title: Projects
          description: >-
            List of projects with their issues. At most 50 projects can be
            included.
      type: object
      title: LinearData
      description: |-
        Complete Linear sandbox data structure.

        Relational structure for initialization:
        - Projects contain Issues
        - Issues contain 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
    LinearProject-Input:
      properties:
        name:
          type: string
          title: Name
          description: Project name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Project description
        state:
          anyOf:
            - type: string
            - type: 'null'
          title: State
          description: Project state (planned, started, paused, completed, canceled)
        issues:
          anyOf:
            - items:
                $ref: '#/components/schemas/LinearIssue'
              type: array
            - type: 'null'
          title: Issues
          description: Issues in this project
      type: object
      required:
        - name
      title: LinearProject
      description: Linear 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
    LinearIssue:
      properties:
        title:
          type: string
          title: Title
          description: Issue title
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: Issue description
        priority:
          anyOf:
            - type: integer
            - type: 'null'
          title: Priority
          description: Issue priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)
        state_name:
          anyOf:
            - type: string
            - type: 'null'
          title: State Name
          description: Name of the workflow state (e.g., 'Todo', 'In Progress', 'Done')
        comments:
          anyOf:
            - items:
                $ref: '#/components/schemas/LinearComment'
              type: array
            - type: 'null'
          title: Comments
          description: Comments on this issue
      type: object
      required:
        - title
      title: LinearIssue
      description: Linear Issue object
    LinearComment:
      properties:
        body:
          type: string
          title: Body
          description: Comment text content
      type: object
      required:
        - body
      title: LinearComment
      description: Linear Comment object
  securitySchemes:
    HTTPBearer:
      type: http
      description: Your Klavis AI API key.
      scheme: bearer
      x-fern-bearer:
        name: api_key

````