Skip to main content
Use this endpoint to fetch the current state of a single capsule by its ID. This is useful for polling status after a create, pause, or resume call, or for inspecting resource allocation before running commands.

Endpoint

Authentication

Pass your API key in the X-API-Key header.

Path parameters

string
required
The capsule ID to retrieve (e.g., cl-abc123).

Response

Returns 200 OK with the capsule object.
string
required
Unique capsule ID, prefixed with cl-.
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 if the capsule has never booted.
string
ISO 8601 timestamp of the last exec call or ping.

Example response

curl

Python SDK

Error responses