Skip to content
中文

Read a template and its builds

GET/sandbox/v1/templates/{templateID}● Supported

Request parameters

  • templateIDstringrequired

    path: Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.

  • nextTokenstringoptional

    query: Cursor to start the list from

  • limitintegeroptional
    default 100

    query: Maximum number of items to return per page

Returns

200

Errors follow the E2B format — see error codes

Request

curl
curl https://api.deepraxis.com/sandbox/v1/templates/sbe_example \
  -H "X-API-Key: $PRAXIS_API_KEY"
Python
import requests

api_key = "$PRAXIS_API_KEY"

# templateID and buildID come from the preceding create response; replace the example IDs.
resp = requests.request("GET", "https://api.deepraxis.com/sandbox/v1/templates/sbe_example",
    headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)
TypeScript
const apiKey = "$PRAXIS_API_KEY";

// templateID and buildID come from the preceding create response; replace the example IDs.
const resp = await fetch("https://api.deepraxis.com/sandbox/v1/templates/sbe_example", { method: "GET",
  headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());

Response 200

{
  "templateID": "sbe_a9b9ece1928540ffcfcf",
  "public": false,
  "names": [
    "docs-template-e9819104"
  ],
  "aliases": [],
  "createdAt": "2026-10-29T07:56:42.512Z",
  "updatedAt": "2026-10-29T07:57:17.472Z",
  "lastSpawnedAt": null,
  "spawnCount": 0,
  "builds": [
    {
      "buildID": "sbt_2158874f-2b56-49ee-beeb-f85922f8e362",
      "status": "ready",
      "createdAt": "2026-10-29T07:56:42.512Z",
      "updatedAt": "2026-10-29T07:57:17.472Z",
      "finishedAt": "2026-10-29T07:57:17.472Z",
      "cpuCount": 2,
      "memoryMB": 1024,
      "diskSizeMB": 10240
    }
  ]
}

Response

HTTP 200

Successfully returned the template with its builds

application/json

Name Type Description
templateID string Identifier of the template
public boolean Whether the template is public or only accessible by the team
aliases array<string> Aliases of the template
names array<string> Names of the template (namespace/alias format when namespaced)
createdAt string Time when the template was created
updatedAt string Time when the template was last updated
lastSpawnedAt string Time when the template was last used
spawnCount integer Number of times the template was used
builds array<object> List of builds for the template
builds[].buildID string Identifier of the build
builds[].status string Status of the template build
builds[].createdAt string Time when the build was created
builds[].updatedAt string Time when the build was last updated
builds[].finishedAt string Time when the build was finished
builds[].cpuCount integer Requested virtual CPU count; a positive integer, default 2 for template builds.
builds[].memoryMB integer Requested build memory in MiB; a positive integer, default 1024.
builds[].diskSizeMB integer Disk size for the sandbox in MiB
builds[].envdVersion string Version of the envd running in the sandbox