Skip to main content
POST
source sets where the container’s tinfoil-config.yml comes from. Images in a private registry need registry credentials first.

Authorizations

Authorization
string
header
required

An admin API key. Personal admin keys reach the API key, billing and Account endpoints for the creator's personal account; the other endpoints need an organization admin key. Security requirement entries list the permission a scoped key needs for the operation.

Scopes

containers.create

Body

application/json
name
string
required

Lowercase alphanumeric with hyphens.

source
enum<string>
default:github
Available options:
github,
registry,
local
repo
string

GitHub owner/repo, or the config registry org/project for source registry. Required unless source is local.

tag
string

GitHub release tag. Not accepted with source registry or local, or together with revision.

revision
string

Version to deploy. Required for source registry.

config
string<byte>

Base64-encoded tinfoil-config.yml. Requires source local.

variables
object

Per-container environment variables saved with the container, separate from env values measured in tinfoil-config.yml.

secrets
string[]

Names of existing Tinfoil-managed organization or repository secrets to deliver; secrets the config declares that exist are attached automatically. Omit it or send an empty list when a non-debug config uses private keyserver delivery.

ssh_keys
string[]

Names of organization SSH keys to install.

debug
boolean
mark_latest_release
boolean

Mark the deployed tag as the repository's latest GitHub release once live. Defaults to true. Applies only to non-debug containers whose repository is active and connected through the GitHub App.

host_name
string

Display name of the host to deploy to. Choosing a host requires host-selection access, and the host and the config's GPU count must be available to the organization.

custom_domain
string

Verified custom domain to serve the container on.

replace_container_id
string<uuid>

Container to delete and replace with this one. It is stopped and deleted before the new container is queued and is not restored if the new one fails.

network_policy
object

Network policy of a production container. Responses always include public, egress_mode and egress.

volumes
object

Existing volume ID for each mount name. Bunkers only.

workspace_size_gb
integer

Size of a new workspace volume. Bunkers only.

object_storage
object

Send an empty object to provision object storage for a new Monitor. Monitors only.

owner_key_mode
enum<string>

Bunkers and Monitors only.

Available options:
tmk,
umk
owner_public_key
string

Canonical ed25519 owner key. Bunkers and Monitors only.

Response

Created container

A container, Bunker or Monitor.

id
string<uuid> | null
required
name
string
required
repo
string | null
required

Source repository. For a container rendered from a template, the template repository.

config_name
string | null
required

Config registry name backing the deployment, when config-backed.

source
enum<string>
required
Available options:
github,
registry,
local
current_tag
string | null
required

Deployed version. For a container rendered from a template, the template version.

status
enum<string>
required
Available options:
created,
pending,
deploying,
started,
running,
failed,
stopping,
stopped
host_id
string<uuid> | null
required
domain
string | null
required

Domain the container serves on; the custom domain when set, otherwise internal_domain.

cpus
integer
required

CPU count from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

gpus
integer
required

GPU count from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

memory_mb
integer | null
required

Memory from the measured tinfoil-config.yml of the deployed release; requests cannot override it.

config
string | null
required

Saved tinfoil-config.yml contents.

variables
string<byte> | null
required

Base64-encoded JSON object mapping variable names to values.

secrets
string[] | null
required

Names of the secrets the container uses.

ssh_keys
string[] | null
required

Names of the SSH keys installed in the container.

stale_secrets
string[] | null
required

Secrets changed since the container was deployed.

debug
boolean
required
held
boolean
required

Whether updates are held for review before going live.

github_app_connected
boolean
required
repo_status
enum<string>
required
Available options:
active,
deleted,
archived,
privatized
update_tag
string | null
required

Version an in-progress update deploys.

update_status
string | null
required

Status of the in-progress update deployment.

update_type
enum<string> | null
required

How the in-progress update replaces the running container.

Available options:
blue_green,
replace,
queued_deploy,
null
internal_domain
string
required
project_id
string<uuid> | null
required
deploy_started_at
string<date-time> | null
required
deploy_completed_at
string<date-time> | null
required
update_started_at
string<date-time> | null
required
update_completed_at
string<date-time> | null
required
boot_stages
any
required

Boot progress reported by the deployment as JSON, or null when none was reported.

update_boot_stages
any
required

Boot progress reported by the update deployment as JSON, or null when none was reported.

error_message
string | null
required
mark_latest_release
boolean
required

Whether a deployed version is marked as the repository's latest GitHub release.

created_at
string<date-time> | null
required
updated_at
string<date-time> | null
required
last_deploy_attempt_tag
string | null
required
last_deploy_attempt_error
string | null
required
last_deploy_attempt_at
string<date-time> | null
required
sandbox
boolean
required
purpose
enum<string>
required
Available options:
production,
rnd
network_policy
object | null
required

Saved network policy, or null when none is set.

owner_key_mode
enum<string> | null
required

Who holds the owner key of a Bunker or Monitor; null unless owner_public_key is set.

Available options:
tmk,
umk,
null
update_strategy
enum<string>
required

Whether an update boots a candidate alongside the running container (blue_green) or must stop it first (replace), causing downtime. Derived from the saved configuration; an update's target release may require a different strategy, which the update plan reports.

Available options:
blue_green,
replace
connections
object
required

Endpoints of the container. Connect with a verifying client; opening a URL does not verify attestation, and a debug container is not confidential.

owner_public_key
string | null
required

Owner public key measured into a Bunker or Monitor.

clerk_user_id
string | null
required

ID of the user who created the container.

clerk_org_id
string | null
required

ID of the organization that owns the container, or null for a personal container.

disable_cc_mode
boolean
required

Whether the container was launched with confidential computing mode turned off.

display_order
integer
required

Position of the container within its project.

tinfoild_deployment_id
string | null
required

ID of the container's deployment on its host.

update_config
object | null
required

Configuration a pending update relaunches the container with, such as variables, secrets, ssh_keys, cpus and memory_mb.

update_deployment_id
string | null
required

ID of the update candidate's deployment on its host while an update runs.

ssh_port
integer

Published SSH port of the active deployment; omitted when none.

update_ssh_port
integer

Published SSH port of the update deployment; omitted when none.

supports_version_change
boolean

Whether a template-rendered container can change version; omitted when false.

host_name
string

Display name of the container's host; omitted when unknown.

update_host_name
string

Host an in-progress update moves the container to; omitted when it stays on the same host.

host_gpu_type
string

GPU type of the container's host; omitted for hosts without GPUs or when unknown.

host_cpu_type
string

CPU type of the container's host; omitted when unknown.

volumes
object

Volume ID attached to each mount name. Only returned by the single-container view, and omitted when none are attached.

volume_slots
object[]

Volume mounts the container's config declares.

object_storage
object