列出构建标签
GET
/sandbox/v1/templates/{templateID}/tags● 支持请求参数
templateIDstring必填path: Template identifier from templates.create or templates.list. Use your organization's templateID, not a provider handle.
返回
200
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/sandbox/v1/templates/sbe_example/tags \
-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/tags",
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/tags", { method: "GET",
headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());响应示例 200
[
{
"tag": "default",
"buildID": "sbt_2158874f-2b56-49ee-beeb-f85922f8e362",
"createdAt": "2026-10-29T07:57:23.446Z"
},
{
"tag": "docs",
"buildID": "sbt_2158874f-2b56-49ee-beeb-f85922f8e362",
"createdAt": "2026-10-29T07:57:17.472Z"
},
{
"tag": "stable",
"buildID": "sbt_2158874f-2b56-49ee-beeb-f85922f8e362",
"createdAt": "2026-10-29T07:57:23.704Z"
}
]响应
HTTP 200
Successfully returned the template tags
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| [].tag | string | The tag name |
| [].buildID | string | Identifier of the build associated with this tag |
| [].createdAt | string | Time when the tag was assigned |