getSnapshot
Agent Runtimes / api/runtimes/snapshots / getSnapshot
Function: getSnapshot()
getSnapshot(
token,snapshotId,baseUrl?):Promise<GetCodeSandboxSnapshotResponse>
Defined in: src/api/runtimes/snapshots.ts:82
Get details for a specific code sandbox snapshot.
Parameters
token
string
Authentication token
snapshotId
string
The unique identifier of the snapshot
baseUrl?
string = DEFAULT_SERVICE_URLS.RUNTIMES
Base URL for the API (defaults to production Runtimes URL)
Returns
Promise<GetCodeSandboxSnapshotResponse>
Promise resolving to snapshot details wrapped in response
Throws
If authentication token is missing or invalid
Throws
If snapshot ID is missing or invalid