Exceptions
| Exception | Use |
|---|---|
SandboxError | Base SDK/runtime error. |
AuthError | Missing, invalid, or rejected API credentials. |
NotFoundError | Sandbox, snapshot, volume, template, or file was not found. |
TimeoutError | Operation exceeded its configured timeout. |
BuildError | Template build failed. |
FileUploadError | Upload failed; may include an upload_id for resume. |
GitError | Git helper operation failed. |
BatchWriteError | Multi-file write partially failed. |
Typed Results
Common result objects include sandbox info, command result, process info, upload/download result, template build status, volume info, lifecycle events, desktop stream info, PTY result,PreviewUrl, PreviewGrantInfo,
PreviewReadiness, PreviewProxyTarget, RevokePreviewGrantResponse,
SshAccess certificate relay metadata, code execution, code contexts, code
runs, and artifacts. Field names match the Python SDK types and the generated
OpenAPI schemas where possible.
PreviewGrantInfo includes safe grant inventory fields such as first/last use,
HTTP request count, WebSocket connection count, byte counters, last error
code/time, and disabled time.
Use redact_preview_url(...) and redact_preview_token(...) before displaying
preview bearer credentials in logs, terminals, or support artifacts.