列出构建标签
GET
/e2b/templates/{templateID}/tags● 支持请求参数
templateIDstring必填path:
返回
200
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/e2b/templates/sbe_example/tags \
-H "X-API-Key: $PRAXIS_API_KEY"Python
import requests
opts = dict(
api_key="$PRAXIS_API_KEY",
api_url="https://api.deepraxis.com/e2b",
domain="sandbox.praxisusercontent.com",
)
# templateID and buildID come from the preceding create response; replace the example IDs.
resp = requests.request("GET", opts["api_url"] + "/templates/sbe_example/tags",
headers={"X-API-Key": opts["api_key"]},
)
print(resp.status_code, resp.text)TypeScript
const opts = {
apiKey: "$PRAXIS_API_KEY",
apiUrl: "https://api.deepraxis.com/e2b",
domain: "sandbox.praxisusercontent.com",
};
// templateID and buildID come from the preceding create response; replace the example IDs.
const resp = await fetch(opts.apiUrl + "/templates/sbe_example/tags", { method: "GET",
headers: { "X-API-Key": opts.apiKey },
});
console.log(resp.status, await resp.text());响应示例 200
[
{
"tag": "default",
"buildID": "sbt_e2d426b9-49b3-4082-ace8-ef369dd78c07",
"createdAt": "2026-10-29T07:58:40.980Z"
},
{
"tag": "docs",
"buildID": "sbt_e2d426b9-49b3-4082-ace8-ef369dd78c07",
"createdAt": "2026-10-29T07:58:32.042Z"
},
{
"tag": "stable",
"buildID": "sbt_e2d426b9-49b3-4082-ace8-ef369dd78c07",
"createdAt": "2026-10-29T07:58:41.228Z"
}
]响应
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 |