Model

Create conversation items

Add items to a conversation.

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

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

Official docs ↗

Request parameters

  • conversation_idstring必填

    path: Id of the conversation, the `id` of the object returned by createConversation (it looks like conv_...). Another tenant's conversation, an unknown id and a deleted conversation all answer 404 conversation_not_found.

  • itemsarray必填

    Items to append, between 1 and 20 per request. Router support (supported): Verified to take effect.

    Verified to take effect.

Returns

200 list

Appends items to a conversation (up to 20 per call) and returns exactly the appended items.

Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — 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.