A template made from an OCI image, like "node:22", or an image in Pyo's registry. Every sandbox server that may use it pulls the image and makes a root disk from it. A Firecracker server boots it once and snapshots it, and a gVisor server starts sandboxes from the disk. The template is ready once one server has it.
API key access: sandboxes.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
application/jsonteamId?|The team whose template it is. Left out: the installation's (its admin, in the dashboard).
name*stringLowercase letters, digits, dashes, dots and underscores, like "node-22".
image*stringThe OCI image it's made from, like "node:22", or an image in Pyo's registry, like "registry..ts.net/acme/app/api:1".
The template, as in listSandboxTemplates.
application/jsoncurl -X POST 'https://your-pyo.example.com/api/v1/sandbox-templates' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"image": "string"
}'{}