E2B

创建卷

创建一个团队卷,返回卷 ID 与访问凭证。

POST /e2b/volumes● 支持

E2B 官方文档 ↗

请求体

  • namestring必填

    Name of the volume

返回

201

错误按 E2B 格式返回,参见 错误码

响应

HTTP 201

Successfully created a new team volume

application/json

名称类型说明
volumeIDstringID of the volume
namestringName of the volume
tokenstringAuth token to use for interacting with volume content
domainstringDomain 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.