curl --request GET \
--url https://api.openai.com/v1/threads/{thread_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "thread.message",
"created_at": 123,
"thread_id": "<string>",
"status": "in_progress",
"incomplete_details": {
"reason": "content_filter"
},
"completed_at": 123,
"incomplete_at": 123,
"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": {}
}
Retrieve a message.
curl --request GET \
--url https://api.openai.com/v1/threads/{thread_id}/messages/{message_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "thread.message",
"created_at": 123,
"thread_id": "<string>",
"status": "in_progress",
"incomplete_details": {
"reason": "content_filter"
},
"completed_at": 123,
"incomplete_at": 123,
"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": {}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the message to retrieve.
OK
Represents a message within a thread.
Was this page helpful?