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● SupportedRequest 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
| Name | Type | Description |
|---|---|---|
| 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. |