Retrieve a ChatKit thread
client.beta.chatkit.threads.retrieve(stringthreadID, RequestOptionsoptions?): ChatKitThread { id, created_at, object, 3 more }
GET/chatkit/threads/{thread_id}
Retrieve a ChatKit thread
import OpenAI from 'openai';
const client = new OpenAI();
const chatkitThread = await client.beta.chatkit.threads.retrieve('cthr_123');
console.log(chatkitThread.id);
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation",
"created_at": 1712345600,
"status": {
"type": "active"
},
"user": "user_123"
}
Returns Examples
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation",
"created_at": 1712345600,
"status": {
"type": "active"
},
"user": "user_123"
}