Example
http
curl "https://api.openai.com/v1/conversations/conv_123/items?limit=10" \
-H "Authorization: Bearer $OPENAI_API_KEY"Response
json
{
"object": "list",
"data": [
{
"type": "message",
"id": "msg_abc",
"status": "completed",
"role": "user",
"content": [
{"type": "input_text", "text": "Hello!"}
]
}
],
"first_id": "msg_abc",
"last_id": "msg_abc",
"has_more": false
}Retrieve an item
get /conversations/\{conversation_id\}/items/\{item_id\}
Get a single item from a conversation with the given IDs.