Skip to main content
POST
/
sandbox
/
linear
/
{sandbox_id}
/
initialize
Initialize linear sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/linear/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projects": [
    {
      "name": "<string>",
      "description": "<string>",
      "state": "<string>",
      "issues": [
        {
          "title": "<string>",
          "description": "<string>",
          "priority": 123,
          "state_name": "<string>",
          "comments": [
            {
              "body": "<string>"
            }
          ]
        }
      ]
    }
  ]
}
'
{
  "sandbox_id": "<string>",
  "status": "idle",
  "message": "<string>",
  "records_created": {}
}

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Path Parameters

sandbox_id
string
required

The unique sandbox identifier

Body

application/json

Complete Linear sandbox data structure.

Relational structure for initialization:

  • Projects contain Issues
  • Issues contain Comments
projects
LinearProject · object[]

List of projects with their issues. At most 50 projects can be included.

Response

Successful Response

Response model for sandbox initialization

sandbox_id
string
required

Sandbox identifier

status
enum<string>
required

Current status

Available options:
idle,
occupied
message
string
required

Initialization result message

records_created
Records Created · object

Count of records created per object type