Skip to content

任务列表 ​

API PLAYGROUND

任务列表

GET /api/agent/tasks

环境配置

Base URL 和 Authorization 修改后自动保存,供本站 Playground 共用。

API 服务根地址;不要填写接口路径,请求路径为 /api/agent/tasks。
请求头配置
必填用于鉴权和限定任务查询范围的 API Key,格式为 Bearer <API_KEY>;仅保存在当前浏览器。如何鉴权?
查询参数
可选 · string填写后调用任务详情接口;留空则使用下方分页和状态筛选。
可选 · number页码,从 1 开始;留空使用默认值 1。
可选 · number每页条数,最多 100;留空使用默认值 20。
可选 · string按任务状态筛选,留空查询全部状态。

查询响应

发送查询后,在这里查看 HTTP 状态码和响应内容。

GET /api/agent/tasks

Base URL: https://api.dajiaoai.com

调用前请阅读鉴权说明和智能生图服务概览。

  • 方法:GET
  • 路径:/api/agent/tasks

查询参数 ​

参数类型必填默认值说明
pagenumber否1页码,从 1 开始。
pageSizenumber否20每页条数,最大 100。
statusstring否-可选值:created、running、finished、error。

示例请求 ​

bash
curl "https://api.dajiaoai.com/api/agent/tasks?page=1&pageSize=20&status=finished" \
  -H "Authorization: Bearer djo_xxx"

成功响应 ​

json
{
  "success": true,
  "items": [
    {
      "taskId": "6844db73f1d0c0e74f5e9d01",
      "customerId": "6844db10f1d0c0e74f5e9cff",
      "applicationId": "6844db40f1d0c0e74f5e9d00",
      "apiKeyId": "6844db50f1d0c0e74f5e9d02",
      "type": "agent",
      "content": "请画一个三角形",
      "imgUrl": null,
      "imgUrls": null,
      "status": "finished",
      "artifactUrl": "https://dl.easeplay.vip/dajiao-open/dev/mcp/.../result.algeo",
      "createdAt": "2026-06-08T10:00:00.000Z",
      "updatedAt": "2026-06-08T10:00:05.000Z"
    }
  ],
  "page": 1,
  "pageSize": 20,
  "total": 1,
  "hasMore": false
}

状态含义、轮询建议和产物说明见任务详情。