Upload a template
POST /v1/template
Upload a container image as a template. The image is pulled, converted to a rootfs, and stored for later use when creating sandboxes. A maximum of 25 templates per organization is enforced.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Template name. Must not start with a system prefix or contain whitespace.
Example
my-python-appContainer image URI to pull and convert.
Example
docker.io/library/python:3.12Credentials for pulling from a private container registry.
object
Credentials for pulling from a private container registry.
object
Credentials for pulling from a private container registry.
object
Credentials for pulling from a private container registry.
object
Responses
Section titled “ Responses ”Template uploaded successfully.
object
The created template ID.
Example
tpl-abc123The created template name.
Example
my-python-appThe container image digest used for this template.
Example
sha256:0123456789abcdefobject
The OS user that the container process runs as.
Example
userobject
Whether this template is a system template.
When the template was created.
Example
2026-02-08T12:34:56ZValidation error or invalid image.
object
Summary message, e.g. “Invalid request”.
object
JSON field name that failed validation (e.g. “path”, “command”).
Human-readable description of the validation failure.
object
Human-readable error message.
Unauthorized – invalid or missing API key.
object
Human-readable error message.
Conflict – template name already exists or template limit reached.
object
Human-readable error message.