统一模型接入与用量管理 立即注册
蓝天
原站参考文档

以下为胜算云公开资料。文中的原站账号、地址、定价和专有服务不属于蓝天;蓝天可用模型以当前 sub2api 配置为准。接入蓝天请先查看 快速开始。

查看原文

GET 查询我的私有模板详情

GET /loom/v1/users/me/templates/{template} 查询我的私有模板详情
所属分组:User Templates · 用户私有模板
Returns one private template summary and its version summaries for the authenticated user. The response intentionally excludes canonical_spec, workflow definitions, hidden prompts, runtime config, source refs, and Market release package internals.

BASE URLhttps://router.shengsuanyun.com/api
认证方式Authorization: Bearer YOUR_API_KEY

端点列表

← 上一页
创建我的私有模板
下一页 →
查询我的私有模板版本列表

接口参考

以下为原文协议定义与示例,原站地址不代表蓝天已开通对应能力。蓝天接入地址和模型以本地配置为准。

蓝天 API 密钥
GET/loom/v1/users/me/templates/{template}Get my private template

Returns one private template summary and its version summaries for the authenticated user. The response intentionally excludes canonical_spec, workflow definitions, hidden prompts, runtime config, source refs, and Market release package internals.

请求参数

参数位置 / 类型说明
template必填path / anyPrivate template ID

请求示例

参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。

curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/users/me/templates/{template}' \
  -H 'Authorization: Bearer YOUR_API_KEY'

响应

200 OK

application/json

字段类型说明
createdAtUnixinteger
descriptionstring
latestVersionIdstring
namestring
primaryOutputTypestring
publishedVersionIdstring
statusstring
templateIdstring
updatedAtUnixinteger
versionsarray
展开结构

array

数组元素
字段类型说明
createdAtUnixinteger
definitionHashstring
specVersionstring
versionIdstring
versionNumberinteger
{
  "createdAtUnix": 0,
  "description": "string",
  "latestVersionId": "string",
  "name": "string",
  "primaryOutputType": "string",
  "publishedVersionId": "string",
  "status": "string",
  "templateId": "string",
  "updatedAtUnix": 0,
  "versions": [
    {
      "createdAtUnix": 0,
      "definitionHash": "string",
      "specVersion": "string",
      "versionId": "string",
      "versionNumber": 0
    }
  ]
}
400 Bad Request

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
401 Unauthorized

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
404 Not Found

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}
500 Internal Server Error

application/json

字段类型说明
codestring
errorstring
{
  "code": "string",
  "error": "string"
}