Skip to main content
GET
/
v2
/
sandboxes
/
templates
/
{name}
Get a SandboxTemplate
curl --request GET \
  --url https://api.example.com/v2/sandboxes/templates/{name}
{
  "name": "<string>",
  "image": "<string>",
  "resources": {
    "cpu": "500m",
    "memory": "512Mi",
    "storage": "1Gi"
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "volume_mounts": [
    {
      "volume_name": "<string>",
      "mount_path": "<string>"
    }
  ],
  "proxy_config": {
    "rules": [
      {
        "name": "<string>",
        "match_hosts": [
          "<string>"
        ],
        "inject_headers": {},
        "match_paths": [
          "<string>"
        ],
        "enabled": true
      }
    ],
    "no_proxy": [
      "<string>"
    ]
  },
  "created_at": "<string>",
  "updated_at": "<string>"
}

Path Parameters

name
string
required

Template name

Response

Successful Response

Response model for a SandboxTemplate.

name
string
required
image
string
required
resources
ResourceSpec · object
required

Resource specification for a sandbox.

id
string<uuid> | null

Unique template identifier

volume_mounts
VolumeMountSpec · object

Specification for mounting a volume in a sandbox template.

proxy_config
ProxyConfig · object

Proxy configuration for a sandbox template.

When proxy_config is set, a smithbox-proxy sidecar will be deployed alongside the sandbox container to intercept HTTPS traffic and inject headers based on the configured rules.

created_at
string | null
updated_at
string | null