列出当前用户的所有 Dreams。
请求头
|
头部 |
必选 |
说明 |
|
|
是 |
|
查询参数
|
参数 |
类型 |
必选 |
默认值 |
说明 |
|
|
integer |
否 |
20 |
返回数量上限(1-100)。 |
|
|
boolean |
否 |
false |
是否包含已归档的 Dream。 |
示例请求
curl -s 'https://api.qoder.com.cn/api/v1/cloud/dreams?limit=5' \
-H "Authorization: Bearer $QODER_PAT"
示例响应
HTTP 200 OK
{
"data": [
{
"id": "drm_019e86b4a8f070a3b6c5d4e3f2a1b0c9",
"type": "dream",
"status": "completed",
"inputs": [{ "type": "memory_store", "memory_store_id": "memstore_019e5cdb9c3f71c3b6505eba937a40b4" }],
"outputs": [{ "type": "memory_store", "memory_store_id": "memstore_019e86b4b10578059435632bb357c5ed", "files_touched": ["preferences.md"] }],
"model": { "id": "auto" },
"instructions": "",
"session_id": "sess_019e86b4b10578059435632bb357c5ed",
"usage": { "input_tokens": 12500, "output_tokens": 3200, "cache_creation_input_tokens": 0, "cache_read_input_tokens": 8000 },
"error": null,
"created_at": "2026-06-15T10:00:00Z",
"ended_at": "2026-06-15T10:03:42Z",
"archived_at": null
}
]
}
错误码
|
HTTP |
Type |
触发条件 |
|
401 |
|
缺少或无效的认证令牌。 |
完整错误信封说明详见错误参考。
该文章对您有帮助吗?