Retrieve a ChatKit thread
beta.chatkit.threads.retrieve(strthread_id ) -> ChatKitThread
GET
/chatkit/threads/{thread_id}Retrieve a ChatKit thread by its identifier.
Retrieve a ChatKit thread
from openai import OpenAI
client = OpenAI()
chatkit_thread = client.beta.chatkit.threads.retrieve(
"cthr_123",
)
print(chatkit_thread.id)
Response example
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation",
"created_at": 1712345600,
"status": {
"type": "active"
},
"user": "user_123"
}
Returns Examples
Response example
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation",
"created_at": 1712345600,
"status": {
"type": "active"
},
"user": "user_123"
}