Retrieve an item
$ openai conversations:items retrieve
GET
/conversations/{conversation_id}/items/{item_id}Get a single item from a conversation with the given IDs.
Retrieve an item
openai conversations:items retrieve \
--api-key 'My API Key' \
--conversation-id conv_123 \
--item-id msg_abcResponse example
{
"type": "message",
"id": "msg_abc",
"status": "completed",
"role": "user",
"content": [
{"type": "input_text", "text": "Hello!"}
]
}
Parameters
Additional fields to include in the response. See the include
parameter for listing Conversation items above for more information.
Returns Examples
Response example
{
"type": "message",
"id": "msg_abc",
"status": "completed",
"role": "user",
"content": [
{"type": "input_text", "text": "Hello!"}
]
}