Snapshot

September 16, 2026 ยท View on GitHub

This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API).

Example Usage

import { Snapshot } from "@vercel/sdk/models/snapshot.js";

let value: Snapshot = {
  createdAt: 1750344501629,
  creationMethod: "manual",
  expiresAt: 1750344501629,
  id: "snap_123a6c5209bc3778245d011443644c8d27dc2c50",
  lastUsedAt: 1750344501629,
  parentId: "snap_parent123",
  region: "iad1",
  regions: [
    "iad1",
    "sfo1",
  ],
  sizeBytes: 104857600,
  sourceSessionId: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
  status: "created",
  updatedAt: 1750344501629,
};

Fields

FieldTypeRequiredDescriptionExample
createdAtnumber:heavy_check_mark:The time when the snapshot was created, in milliseconds since the epoch.1750344501629
creationMethodmodels.CreationMethod:heavy_minus_sign:The method used to create the snapshot.manual
expiresAtnumber:heavy_minus_sign:The time when the snapshot will expire, in milliseconds since the epoch. If not set, the snapshot does not have any expiration.1750344501629
idstring:heavy_check_mark:The unique identifier of the snapshot.snap_123a6c5209bc3778245d011443644c8d27dc2c50
lastUsedAtnumber:heavy_check_mark:The last time the snapshot was used (e.g. to resume or create a sandbox), in milliseconds since the epoch. Falls back to createdAt for older snapshots that predate this field.1750344501629
parentIdstring:heavy_minus_sign:The unique identifier of the parent snapshot, if this snapshot was created from another snapshot.snap_parent123
regionstring:heavy_minus_sign:The region where the snapshot is stored.iad1
regionsstring[]:heavy_minus_sign:The regions where the snapshot is available.[
"iad1",
"sfo1"
]
sizeBytesnumber:heavy_check_mark:The size of the snapshot in bytes.104857600
sourceSessionIdstring:heavy_check_mark:The unique identifier of the session from which the snapshot was created.sbx_123a6c5209bc3778245d011443644c8d27dc2c50
statusmodels.SnapshotStatus:heavy_check_mark:The status of the snapshot.created
updatedAtnumber:heavy_check_mark:The last time the snapshot was updated, in milliseconds since the epoch.1750344501629