GET
/
workflows
/
logs
{
  "page": 123,
  "limit": 123,
  "total": 123,
  "has_more": true,
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workflow_run": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "version": "<string>",
        "status": "running",
        "error": "<string>",
        "elapsed_time": 123,
        "total_tokens": 123,
        "total_steps": 123,
        "created_at": 123,
        "finished_at": 123
      },
      "created_from": "<string>",
      "created_by_role": "<string>",
      "created_by_account": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_by_end_user": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "type": "<string>",
        "is_anonymous": true,
        "session_id": "<string>"
      },
      "created_at": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

API-Key 鉴权。所有 API 请求都应在 Authorization HTTP Header 中包含您的 API-Key,格式为:Bearer {API_KEY}。强烈建议开发者把 API-Key 放在后端存储,而非客户端,以免泄露。

Query Parameters

keyword
string

(可选)关键字。

status
enum<string>

(可选)执行状态:succeeded, failed, stopped, running。

Available options:
succeeded,
failed,
stopped,
running
page
integer
default:1

(可选)当前页码, 默认1。

limit
integer
default:20

(可选)每页条数, 默认20。

Response

200 - application/json

成功获取 workflow 日志。

Workflow 日志列表响应。