Sleep, wake, and delete
Manage a Tab using explicit, idempotent lifecycle operations.
Lifecycle routes#
List with GET /v2/sandboxes. Sleep with POST /tabs/v1/sandboxes/{sandboxID}/sleep and {"keepMemory":true}. Wake with POST /tabs/v1/sandboxes/{sandboxID}/wake and {}. Delete with DELETE /sandboxes/{sandboxID} and no body. Supply a separate idempotency key for each mutation. Confirm state through the list route.
Native SDK box.info() and box.wake() use different info/connect routes that this compatibility deployment does not provide. Do not substitute an operation after an uncertain result. Pause/resume preserves the current environment on its host; it is not verified host-restart recovery or a portable snapshot.
Sleep#
Set SANDBOX_ID to the complete returned ID and SLEEP_ATTEMPT to a new UUID.
curl --fail --silent --show-error \
-X POST "https://api.runtabs.dev/tabs/v1/sandboxes/$SANDBOX_ID/sleep" \
-H "X-API-Key: $TABS_API_KEY" \
-H "Idempotency-Key: $SLEEP_ATTEMPT" \
-H "Content-Type: application/json" --data '{"keepMemory":true}'Wake#
Use a new UUID for WAKE_ATTEMPT.
curl --fail --silent --show-error \
-X POST "https://api.runtabs.dev/tabs/v1/sandboxes/$SANDBOX_ID/wake" \
-H "X-API-Key: $TABS_API_KEY" \
-H "Idempotency-Key: $WAKE_ATTEMPT" \
-H "Content-Type: application/json" --data '{}'Verify state#
Read the list after an acknowledgement. Follow pagination until you locate the environment. Sleep may return 409 for a rejected state; do not hide that response or assume a blind retry will recover it. Review errors and retries.
Deletion and recovery#
Deletion is explicit and destructive. Auto-pause does not delete the Tab. Pause/wake on the same host is not a backup, migration, fork, or verified recovery after host loss.
