Skip to main content
Use this endpoint to provision a new microVM capsule for your team. The capsule starts in pending status and transitions to starting, then running as the VM boots. All fields are optional — omit them to accept the defaults (minimal template, 1 vCPU, 512 MiB RAM, no auto-pause).

Endpoint

Authentication

Pass your API key in the X-API-Key header. You can generate a key in the Wrenn dashboard.

Request body

string
default:"minimal"
Name of the base template or snapshot template to boot from. Defaults to "minimal".
integer
default:"1"
Number of virtual CPUs to allocate to the capsule.
integer
default:"512"
Memory to allocate, in MiB.
integer
default:"0"
Inactivity TTL in seconds. The capsule is automatically paused after this many seconds with no exec calls or pings. Set to 0 to disable auto-pause.

Example request body

Response

Returns a 201 Created with the capsule object.
string
required
Unique capsule ID. Always prefixed with cl- (e.g., "cl-abc123").
string
required
Current lifecycle status. One of: pending, starting, running, paused, stopped, error.
string
required
Name of the template used to create the capsule.
integer
required
Number of virtual CPUs allocated.
integer
required
Memory allocated, in MiB.
integer
required
Inactivity TTL in seconds. 0 means auto-pause is disabled.
string
required
ISO 8601 timestamp of when the capsule was created.
string
required
ISO 8601 timestamp of the most recent status change.
string
ISO 8601 timestamp of when the capsule last reached running status. null until the VM has booted at least once.
string
ISO 8601 timestamp of the last exec call or ping. Used to calculate the auto-pause TTL.

Example response

curl

Python SDK

Pass wait=True to block until the capsule reaches running status before your code continues. Without it, status will be "pending" or "starting" immediately after the call.

Error responses