OpenAI

Create conversation items

Add items to a conversation.

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

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

Official OpenAI docs ↗

Request parameters

  • conversation_idstring必填

    path:

  • itemsarray必填

    Verified to take effect.

Returns

200 list

Appends items to a conversation (up to 20 at a time) and returns the items just added.

Errors follow the OpenAI format — see error codes

Response

HTTP 200

The items just added

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.