Returns immutable version summaries for one private template. The response intentionally excludes canonical_spec and executable workflow internals.
请求参数 参数 位置 / 类型 说明 template必填 path / any Private template ID
请求示例 参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
cURL Python JavaScript
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}/versions' \
-H 'Authorization: Bearer YOUR_API_KEY'响应 200 OKapplication/json 字段 类型 说明 itemsarray 展开结构 array
数组元素 字段 类型 说明 createdAtUnixinteger definitionHashstring specVersionstring versionIdstring versionNumberinteger
totalCountinteger
{
"items": [
{
"createdAtUnix": 0,
"definitionHash": "string",
"specVersion": "string",
"versionId": "string",
"versionNumber": 0
}
],
"totalCount": 0
}400 Bad Requestapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}401 Unauthorizedapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}404 Not Foundapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}500 Internal Server Errorapplication/json 字段 类型 说明 codestring errorstring
{
"code": "string",
"error": "string"
}