OpenAI

List conversation items

List a conversation's items.

Call Create conversation first, then replace conv_123 with the returned conv_ ID.

GET /openai/v1/conversations/{conversation_id}/items● Supported

Official OpenAI docs ↗

Request parameters

  • conversation_idstring必填

    path:

  • limitinteger可选
    默认 20

    query: Maximum items per page (values above 100 are clamped).

  • afterstring可选

    query: Item ID from the previous page; returns items after this cursor.

  • orderstring可选
    默认 "desc"

    query: Sort by stored creation order.

    取值 ascdesc

Returns

200 list

Lists a conversation's items in creation order, with limit / after / order pagination.

Errors follow the OpenAI format — see error codes

Response

HTTP 200

The conversation's items

application/json

NameTypeDescription
objectstringObject type; always `list`.
dataarray<object>Items of the conversation, in the order the list requested.
first_idstringId of the first item of this page; null for an empty page.
last_idstringId of the last item of this page; null for an empty page.
has_morebooleanWhether more items exist beyond this page; pass `last_id` as `after` to read them.