Skip to content
中文

Create team volume

POST/e2b/volumes● Supported

Official E2B docs ↗

Request body

  • namestringrequired

    Name of the volume

Returns

201

Errors follow the E2B format — see error codes

Request

curl
curl https://api.deepraxis.com/e2b/volumes \
  -H "X-API-Key: $PRAXIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"docs-sample"}'
Python
from e2b import Volume

opts = dict(
    api_key="$PRAXIS_API_KEY",
    api_url="https://api.deepraxis.com/e2b",
    domain="sandbox.praxisusercontent.com",
)

volume = Volume.create("docs-sample", **opts)
print(volume.volume_id)
TypeScript
import { Volume } from "e2b";

const opts = {
  apiKey: "$PRAXIS_API_KEY",
  apiUrl: "https://api.deepraxis.com/e2b",
  domain: "sandbox.praxisusercontent.com",
};

const volume = await Volume.create("docs-sample", opts);
console.log(volume.volumeId);

Response 201

{
  "volumeID": "sbv_d28b7b9a9b6c656f582d",
  "name": "docs-sample",
  "token": "<access-token>"
}

Response

HTTP 201

Successfully created a new team volume

application/json

Name Type Description
volumeID string ID of the volume
name string Name of the volume
token string Auth token to use for interacting with volume content
domain string Domain to use as the destination for volume content requests, replacing the default api.<E2B_DOMAIN>. Only returned when the team is connected to a custom (BYOC) cluster; absent otherwise, in which case the default domain is used.