curl --request GET \
--url https://api.openai.com/v1/threads/{thread_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "thread",
"created_at": 123,
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {
"vector_store_ids": [
"<string>"
]
}
},
"metadata": {}
}
Retrieves a thread.
curl --request GET \
--url https://api.openai.com/v1/threads/{thread_id} \
--header 'Authorization: Bearer <token>'
{
"id": "<string>",
"object": "thread",
"created_at": 123,
"tool_resources": {
"code_interpreter": {
"file_ids": []
},
"file_search": {
"vector_store_ids": [
"<string>"
]
}
},
"metadata": {}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The ID of the thread to retrieve.
OK
Represents a thread that contains messages.
Was this page helpful?