API 参考 / workflow-config
GET /api/v1/projects/{projectId}/workflows · listWorkflowTemplates
返回项目全部工作流模板及版本摘要。需 view_project。
鉴权:项目 API Token(Authorization: Bearer wfp_…)。详见 Agent 接入。
projectId(必填)items(必填)items[].id(必填)items[].projectId(必填)items[].objectType(必填)items[].name(必填)items[].descriptionitems[].isSystemSeeditems[].seedKeyitems[].status(必填)items[].versionCount(必填)items[].stateCount(必填)items[].transitionCount(必填)items[].hasDraft(必填)items[].activePublishedVersionIditems[].activeVersionNoitems[].activeVersionPublishedAtitems[].createdAt(必填)items[].updatedAt(必填)403:Problem 错误响应curl -X GET "https://你的项目.workflow.games/api/v1/projects/{projectId}/workflows" \
-H "Authorization: Bearer wfp_…"HTTP/1.1 200
{
"items": [
{
"id": "018f3c2e-0000-7000-8000-000000000000",
"projectId": "018f3c2e-0000-7000-8000-000000000000",
"objectType": "示例文本",
"name": "示例标题",
"status": "示例文本",
"versionCount": 1,
"stateCount": 1,
"transitionCount": 1,
"hasDraft": true,
"createdAt": "示例文本",
"updatedAt": "2026-08-01"
}
]
}合同真值:OpenAPI 3.1(0.1.0)。
相关:Agent 接入指南 · 使用指南 · API 参考索引