Skip to main content
Use this endpoint to retrieve all capsules that belong to your team, across every status. The response is an array ordered by creation time (newest first). Use it to audit running resources, build dashboards, or locate a capsule by status before acting on it.

Endpoint

GET https://app.wrenn.dev/api/v1/capsules

Authentication

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

Request parameters

This endpoint takes no query parameters or request body.

Response

Returns 200 OK with an array of capsule objects. An empty team returns []. Each object in the array has the following fields:
id
string
required
Unique capsule ID, prefixed with cl-.
status
string
required
Current lifecycle status. One of: pending, starting, running, paused, stopped, error.
template
string
required
Name of the template used to create the capsule.
vcpus
integer
required
Number of virtual CPUs allocated.
memory_mb
integer
required
Memory allocated, in MiB.
timeout_sec
integer
required
Inactivity TTL in seconds. 0 means auto-pause is disabled.
created_at
string
required
ISO 8601 timestamp of when the capsule was created.
last_updated
string
required
ISO 8601 timestamp of the most recent status change.
started_at
string
ISO 8601 timestamp of when the capsule last reached running status. null if the capsule has never booted.
last_active_at
string
ISO 8601 timestamp of the last exec call or ping.

Example response

[
  {
    "id": "cl-abc123",
    "status": "running",
    "template": "base-python",
    "vcpus": 2,
    "memory_mb": 1024,
    "timeout_sec": 300,
    "created_at": "2024-11-01T10:00:00Z",
    "started_at": "2024-11-01T10:00:05Z",
    "last_active_at": "2024-11-01T10:04:30Z",
    "last_updated": "2024-11-01T10:00:05Z"
  },
  {
    "id": "cl-def456",
    "status": "paused",
    "template": "minimal",
    "vcpus": 1,
    "memory_mb": 512,
    "timeout_sec": 0,
    "created_at": "2024-10-30T08:15:00Z",
    "started_at": "2024-10-30T08:15:04Z",
    "last_active_at": "2024-10-30T09:00:00Z",
    "last_updated": "2024-10-30T09:05:00Z"
  }
]

curl

curl --request GET \
  --url https://app.wrenn.dev/api/v1/capsules \
  --header 'X-API-Key: wrn_your_key'

Python SDK

from wrenn import Capsule

capsules = Capsule.list()
for c in capsules:
    print(c.id, c.status)

Error responses

StatusDescription
401 UnauthorizedMissing or invalid X-API-Key.