GetNamedSandboxResponseBody

September 16, 2026 ยท View on GitHub

Example Usage

import { GetNamedSandboxResponseBody } from "@vercel/sdk/models/getnamedsandboxop.js";

let value: GetNamedSandboxResponseBody = {
  resumed: true,
  routes: [],
  sandbox: {
    createdAt: 1750344501629,
    currentSessionId: "<id>",
    cwd: "/vercel/sandbox",
    expiresAt: 1750344801629,
    failoverRegions: [
      "sfo1",
      "cle1",
    ],
    image:
      "my-repo@sha256:2c4e8f9a1b3d5e7f091a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708",
    keepLastSnapshots: {
      count: 5,
      deleteEvicted: true,
      expiration: 604800000,
    },
    memory: 1024,
    name: "my-sandbox",
    persistent: true,
    region: "iad1",
    runtime: "node22",
    snapshotExpiration: 604800000,
    status: "running",
    statusUpdatedAt: 1750344501629,
    tags: {
      "team": "hive",
      "user": "bob",
    },
    timeout: 300000,
    totalActiveCpuDurationMs: 5000,
    totalDurationMs: 60000,
    totalEgressBytes: 4096,
    totalIngressBytes: 2048,
    updatedAt: 1750344501629,
    vcpus: 2,
  },
  session: {
    abortedAt: 1750344501629,
    activeCpuDurationMs: 42,
    createdAt: 1750344501629,
    cwd: "/vercel/sandbox",
    duration: 3600000,
    id: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
    memory: 2048,
    networkPolicy: {
      allowedCIDRs: [
        "10.0.0.0/8",
      ],
      allowedDomains: [
        "api.vercel.com",
        "*.example.com",
      ],
      deniedCIDRs: [
        "10.0.0.0/8",
      ],
      injectionRules: [
        {
          domain: "api.vercel.com",
          headerNames: [
            "Authorization",
            "X-API-Key",
          ],
        },
      ],
      mode: "custom",
    },
    networkTransfer: {
      egress: 7683.25,
      ingress: 3996.32,
    },
    projectId: "prj_123a6c5209bc3778245d011443644c8d27dc2c50",
    region: "iad1",
    requestedAt: 1750344501629,
    requestedStopAt: 1750344501629,
    runtime: "node22",
    snapshottedAt: 1750344501629,
    sourceSandboxName: "my-sandbox",
    sourceSnapshotId: "snap_123a6c5209bc3778245d011443644c8d27dc2c50",
    startedAt: 1750344501629,
    status: "running",
    stoppedAt: 1750344501629,
    timeout: 3600000,
    updatedAt: 1750344501629,
    vcpus: 2,
  },
};

Fields

FieldTypeRequiredDescription
resumedboolean:heavy_check_mark:N/A
routesmodels.SandboxPublicRoute[]:heavy_check_mark:N/A
sandboxmodels.NamedSandbox:heavy_check_mark:This object contains information related to a Vercel NamedSandbox.
sessionmodels.Session:heavy_check_mark:This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key.