v37

latestOpenAPI 3.1.0raw.githubusercontent.com2025-11-11200148.2 KB
Stacks

Create and run a container sandbox

Create a simple container sandbox with a custom image and command

post/v1/stacks/create-and-run

Request body

imagestring required

Docker image to use

commandstring[] required

Command to run

ttl_secondsnumber

Time to live in seconds

waitboolean

Wait for container to be ready

Example request

{
  "image": "curlimages/curl:latest",
  "command": [
    "sleep",
    "3600"
  ],
  "ttl_seconds": 3600
}

Response

Container created successfully

idstring required
statusstring required
imagestring required
commandstring[] required