> For the complete documentation index, see [llms.txt](https://docs.kamiya.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kamiya.dev/kamiya-api/history.md).

# 生成历史

该API现已弃用，但仍保留以维持兼容性。

## 获取历史记录

```http
GET https://p0.kamiya.dev/api/userContent/get?start=1&take=2
```

响应示例

```json
{
    "status": 200,
    "message": "OK",
    "data": [
        {
            "uuid": "7aa97681-284f-4faf-8ce3-567f3cebe141",
            "url": "https://r2.kamiya-a.tech/usercontent/7aa97681-284f-4faf-8ce3-567f3cebe141"
        },
        {
            "uuid": "a6851538-16a4-439f-8bc3-bc8618502f9f",
            "url": "https://r2.kamiya-a.tech/usercontent/a6851538-16a4-439f-8bc3-bc8618502f9f"
        }
    ]
}
```

图片倒序排列，越晚生成越靠前。

## 删除历史记录

```http
GET https://p0.kamiya.dev/api/userContent/delete?uuid=a6851538-16a4-439f-8bc3-bc8618502f9f
```

响应示例

```json
{
    "status":200,
    "message":"OK"
}
```

!>该操作不仅在数据库中删除历史记录，同时也在对象储存中永久删除该图片，操作不可逆


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.kamiya.dev/kamiya-api/history.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
