Skip to main content
Use this endpoint to pause a running capsule. Wrenn takes a full snapshot — VM state, memory, and filesystem — writes it to disk, then terminates the running Firecracker process and releases all host resources. The capsule persists as stored files and can be restored exactly to this point using the resume endpoint.
Pausing a capsule is the right choice when you want to stop incurring compute costs without losing the capsule’s in-memory state. Paused capsules consume only storage.

Endpoint

POST https://app.wrenn.dev/api/v1/capsules/{id}/pause

Authentication

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

Path parameters

id
string
required
The ID of the capsule to pause (e.g., cl-abc123). The capsule must be in running status.

Response

Returns 200 OK with the updated capsule object. The status field will be "paused".
id
string
required
Unique capsule ID, prefixed with cl-.
status
string
required
Will be "paused" after a successful pause.
template
string
required
Name of the template the capsule was created from.
vcpus
integer
required
Number of virtual CPUs that were allocated.
memory_mb
integer
required
Memory that was allocated, in MiB.
timeout_sec
integer
required
Inactivity TTL in seconds.
created_at
string
required
ISO 8601 timestamp of when the capsule was created.
last_updated
string
required
ISO 8601 timestamp of when the capsule was paused.

Example response

{
  "id": "cl-abc123",
  "status": "paused",
  "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:05:00Z"
}

curl

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

Python SDK

from wrenn import Capsule

capsule = Capsule.connect("cl-abc123")
capsule.pause()
print(capsule.status)  # "paused"

Error responses

StatusDescription
401 UnauthorizedMissing or invalid X-API-Key.
404 Not FoundNo capsule with the given ID exists in your team.
409 ConflictThe capsule is not in running status. Only running capsules can be paused.