OpenAI
列出会话条目
列出一个会话的 items。
先调用「创建对话」拿到 conv_ 开头的 ID,替换 conv_123。
GET
/openai/v1/conversations/{conversation_id}/items● 支持请求参数
conversation_idstring必填path:
limitinteger可选query: Maximum items per page (values above 100 are clamped).
afterstring可选query: Item ID from the previous page; returns items after this cursor.
orderstring可选query: Sort by stored creation order.
返回
200 list
按创建顺序列出会话的 items,支持 limit/after/order 分页参数。
错误按 OpenAI 格式返回,参见 错误码
响应
HTTP 200
The conversation's items
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| object | string | Object type; always `list`. |
| data | array<object> | Items of the conversation, in the order the list requested. |
| first_id | string | Id of the first item of this page; null for an empty page. |
| last_id | string | Id of the last item of this page; null for an empty page. |
| has_more | boolean | Whether more items exist beyond this page; pass `last_id` as `after` to read them. |