Path parameters
-
The ID of the thread to which this message belongs.
-
The ID of the message to retrieve.
GET
/threads/{thread_id}/messages/{message_id}
curl \
-X GET https://api.openai.com/v1/threads/{thread_id}/messages/{message_id} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": "string",
"object": "thread.message",
"created_at": 42,
"thread_id": "string",
"status": "in_progress",
"incomplete_details": {
"reason": "content_filter"
},
"completed_at": 42,
"incomplete_at": 42,
"role": "user",
"content": [
{
"type": "image_file",
"image_file": {
"file_id": "string",
"detail": "auto"
}
}
],
"assistant_id": "string",
"run_id": "string",
"attachments": [
{
"file_id": "string",
"tools": [
{
"type": "code_interpreter"
}
]
}
],
"metadata": {}
}