Create a new SandboxTemplate in tenant’s namespace.
Request model for creating a SandboxTemplate.
Users can only configure the container image, resource limits, volume mounts, and optional proxy configuration. All other pod spec details are filled in with secure defaults.
Name of the template (max 63 chars, DNS-1035 format: lowercase alphanumeric and hyphens, must start with letter)
Container image to use for the sandbox
"python:3.12-slim"
"node:20-slim"
Resource limits for the sandbox
Optional list of volumes to mount in the sandbox
Optional proxy configuration for injecting secrets/headers into outbound HTTPS requests. When set, a smithbox-proxy sidecar will be deployed alongside the sandbox container.
Successful Response
Response model for a SandboxTemplate.
Resource specification for a sandbox.
Unique template identifier
Specification for mounting a volume in a sandbox template.
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.