---
title: "查询任务历史轮次"
method: GET
path: "/api/v1/users/tasks/rounds"
tags: ["【用户】任务管理"]
---

# 查询任务历史轮次

`GET /api/v1/users/tasks/rounds`

根据 cursor 向前翻页查询任务的历史轮次。limit 为轮次数（非条目数），
limit=2 表示返回 2 轮的完整消息。返回的 chunks 按时间倒序排列（最新在前）。
返回的 user-input.data 统一为 JSON payload 字符串，例如 `{"content":"57un57ut5aSE55CG","attachments":[]}`；content 为用户输入文本的 base64 编码，旧历史裸文本也会按该结构包装返回。

## Query parameters

- `id` string, required
- `cursor` string
- `limit` integer

## Response `200`

成功

- object
  - `code` integer
  - `data` DomainTaskRoundsResp
    - `chunks` DomainTaskChunkEntry[]
      - `data` integer[]
      - `event` string
      - `kind` string
      - `labels` object
      - `timestamp` integer
    - `has_more` boolean
    - `next_cursor` string — 下一页游标
  - `message` string

## Other responses

- `500` — 服务器内部错误

---

[API](https://skmtc.dev/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.dev/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/6dfffd8a7314/schema)
