---
title: "Initialize linear sandbox with data"
method: POST
path: "/sandbox/linear/{sandbox_id}/initialize"
tags: ["sandbox"]
---

# Initialize linear sandbox with data

`POST /sandbox/linear/{sandbox_id}/initialize`

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

## Path parameters

- `sandbox_id` string, required — The unique sandbox identifier

## Query parameters

- `init_default_data` boolean — If true, use default test data for initialization

## Request body

- LinearDataInput — Complete Linear sandbox data structure. Relational structure for initialization: - Projects contain Issues - Issues contain Comments
  - `projects` LinearProjectInput[] — List of projects with their issues. At most 50 projects can be included.
    - `name` string, required — Project name
    - `description` string, nullable — Project description
    - `state` string, nullable — Project state (planned, started, paused, completed, canceled)
    - `issues` LinearIssue[], nullable — Issues in this project
      - `title` string, required — Issue title
      - `description` string, nullable — Issue description
      - `priority` integer, nullable — Issue priority (0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low)
      - `state_name` string, nullable — Name of the workflow state (e.g., 'Todo', 'In Progress', 'Done')
      - `comments` LinearComment[], nullable — Comments on this issue
        - `body` string, required — Comment text content

## Response `200`

Successful Response

- InitializeSandboxResponse — Response model for sandbox initialization
  - `sandbox_id` string, required — Sandbox identifier
  - `status` 'idle' | 'occupied' | 'error', required — Status of a sandbox instance - matches database enum
  - `message` string, required — Initialization result message

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai.md) · [All operations](https://skmtc.net/klavis-ai/apis/klavis-ai-https-www-klavis-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/klavis-ai/klavis-ai-https-www-klavis-ai/versions/1f05ced7280f/schema)
