Skip to main content
POST
/
sandbox
/
motion
/
{sandbox_id}
/
initialize
Initialize motion sandbox with data
curl --request POST \
  --url https://api.klavis.ai/sandbox/motion/{sandbox_id}/initialize \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaces": [
    {
      "name": "<string>",
      "projects": [
        {
          "name": "<string>",
          "description": "<string>",
          "due_date": "<string>",
          "priority": "<string>",
          "labels": [
            "<string>"
          ],
          "tasks": [
            {
              "name": "<string>",
              "description": "<string>",
              "status": "<string>",
              "priority": "<string>",
              "due_date": "<string>",
              "duration": 123,
              "labels": [
                "<string>"
              ],
              "comments": [
                {
                  "text": "<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 Motion sandbox data structure.

Hierarchical structure for initialization:

  • Workspaces contain Projects
  • Projects contain Tasks
  • Tasks contain Comments

Delete operation support:

  • Tasks: YES
  • Comments: YES
  • Projects: YES
  • Workspaces: NO (organization level, typically not deleted)
workspaces
MotionWorkspace · object[]

List of workspaces with their projects and tasks

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