Fork a sandbox

Preview. Start new sandboxes with the files and the processes of a persistent sandbox, as they are now. A running sandbox pauses for a moment and runs on; a paused one stays paused. Each new sandbox is billed on its own.

POST
/sandboxes/{sandbox_id}/fork

Authorization

headerAuthorizationBearer <token>

Your Munito API key.

Path Parameters

sandbox_id*string

The id of the sandbox.

Request Body

application/json
  1. body

New sandboxes with the files and the processes of a persistent sandbox, which keeps running or stays paused.

count?integer

The new sandboxes, from 1 to 16. They all start, or none does.

Range1 <= value <= 16
Default1
persistent?|

Whether the new sandboxes are persistent. By default they are, as their parent is.

timeout?|

Seconds from now until each new sandbox stops, or pauses when it is persistent: from 10 to 86400, 3600 by default.

metadata?

Your own keys and values for each new sandbox, at most 16.

Response Body

The new sandboxes, running.

application/json
  1. response
object?string
Default"list"
data*array<>
curl -X POST 'https://api.munito.ai/sandboxes/v1/sandboxes/string/fork' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "object": "list",
  "data": [
    {
      "id": "string",
      "object": "sandbox",
      "status": "pending",
      "template": "string",
      "size": "string",
      "vcpus": 0,
      "memory_mib": 0,
      "disk_gib": 0,
      "internet": true,
      "persistent": true,
      "metadata": {
        "property1": "string",
        "property2": "string"
      },
      "created_at": 0,
      "started_at": 0,
      "expires_at": 0,
      "ended_at": 0,
      "end_reason": "deleted",
      "public_ports": [
        0
      ],
      "ssh_keys": [
        "string"
      ],
      "hostname": "string",
      "networks": [
        {
          "id": "string",
          "name": "string",
          "dns_name": "string",
          "address": "string"
        }
      ]
    }
  ]
}