列出卷
GET
/sandbox/v1/volumes● 支持返回
200
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/sandbox/v1/volumes \
-H "X-API-Key: $PRAXIS_API_KEY"Python
import requests
api_key = "$PRAXIS_API_KEY"
# Call /sandbox/v1 directly over HTTP.
resp = requests.get(
"https://api.deepraxis.com/sandbox/v1/volumes",
headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)TypeScript
const apiKey = "$PRAXIS_API_KEY";
// Call /sandbox/v1 directly over HTTP.
const resp = await fetch(`https://api.deepraxis.com/sandbox/v1/volumes`, {
headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());响应示例 200
[
{
"volumeID": "sbv_3bba8bcb484b29a99e68",
"name": "docs-sample"
}
]响应
HTTP 200
Successfully listed all team volumes
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| [].volumeID | string | ID of the volume |
| [].name | string | Name of the volume |
自有入口在响应对象(列表为每行)追加 createdAt:创建时间,ISO 8601 UTC 字符串。
网关自动设置 X-Praxis-Face: own-v1,客户端无需传入;/e2b 兼容入口会剥除该头,保留厂商响应形状。