GET
/
api
/
workflows
列出 workflow
curl --request GET \
  --url https://wfapi.yuhe.space/api/workflows \
  --header 'Authorization: Bearer <token>'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": [
    {
      "id": "<string>",
      "name": "<string>",
      "projectCard": {
        "iconBackgroundColor": "<string>",
        "iconUrl": "<string>"
      },
      "hasDraft": true,
      "latest": "<string>",
      "versions": [
        "<string>"
      ],
      "onlineVersions": [
        "<string>"
      ],
      "nextVersion": "<string>",
      "ownerUserId": "<string>",
      "createdByUserId": "<string>",
      "createdByProfile": {
        "userId": "<string>",
        "displayName": "<string>",
        "avatarUrl": "<string>"
      },
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "runQueue": {
        "acceptsNewRuns": true,
        "concurrency": 3,
        "updatedAt": "2023-11-07T05:31:56Z"
      },
      "draftBuild": {
        "startedAt": "2023-11-07T05:31:56Z",
        "endedAt": "2023-11-07T05:31:56Z",
        "durationMs": 123,
        "stdout": "<string>",
        "stderr": "<string>",
        "error": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

使用 WORKFLOW_SERVER_ADMIN_KEY 或已创建的账号 API Key。

Response

200 - application/json

workflow 摘要列表。

errCode
integer
required
errMessage
string
required
Allowed value: ""
data
object[]
required