GET
/
api
/
workflows
/
{workflowName}
/
runs
/
in-flight
列出运行中和等待中的任务
curl --request GET \
  --url https://wfapi.yuhe.space/api/workflows/{workflowName}/runs/in-flight \
  --header 'Authorization: Bearer <token>'
{
  "errCode": 123,
  "errMessage": "<string>",
  "data": [
    {
      "runId": "<string>",
      "workflowName": "<string>",
      "target": "<string>",
      "resolvedTarget": "<string>",
      "args": [
        "<string>"
      ],
      "createdAt": "2023-11-07T05:31:56Z",
      "durationMs": 123,
      "exitCode": 123,
      "conversationId": "<string>",
      "external": {
        "principalKind": "<string>",
        "actorType": "<string>",
        "actorUserId": "<string>",
        "actorProfileId": "<string>",
        "actorDisplayName": "<string>",
        "apiKeyId": "<string>",
        "apiKeyName": "<string>",
        "user": "<string>",
        "conversationId": "<string>",
        "inputs": {},
        "files": [
          "<unknown>"
        ],
        "webhook": {
          "workflowName": "<string>",
          "requestId": "<string>",
          "target": "<string>",
          "resolvedTarget": "<string>",
          "headers": {}
        }
      },
      "debugNode": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workflowName
string
required

Response

200 - application/json

当前运行中与等待中的任务。

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