Retrieve Message
Authorizations
Path parameters
thread_idstringRequired
The ID of the thread to which this message belongs.
message_idstringRequired
The ID of the message to retrieve.
Responses
200
OK
application/json
get
curl https://api.portkey.ai/v1/threads/thread_abc123/messages/msg_abc123 \
-H "Content-Type: application/json" \
-H "x-portkey-api-key: $PORTKEY_API_KEY" \
-H "x-portkey-virtual-key: $PORTKEY_PROVIDER_VIRTUAL_KEY" \
-H "OpenAI-Beta: assistants=v2"
200
OK
{
"id": "text",
"object": "thread.message",
"created_at": 1,
"thread_id": "text",
"status": "in_progress",
"incomplete_details": {
"reason": "content_filter"
},
"completed_at": 1,
"incomplete_at": 1,
"role": "user",
"content": [
{
"type": "image_file",
"image_file": {
"file_id": "text",
"detail": "auto"
}
}
],
"assistant_id": "text",
"run_id": "text",
"attachments": [
{
"file_id": "text",
"tools": [
{
"type": "code_interpreter"
}
]
}
],
"metadata": {}
}
Last updated
Was this helpful?