List ChatKit threads
beta.chatkit.threads.list(**kwargs) -> ConversationCursorPage<ChatKitThread { id, created_at, object, 3 more } >
GET/chatkit/threads
List ChatKit threads with optional pagination and user filters.
Parameters
after: String
List items created after this thread item ID. Defaults to null for the first page.
before: String
List items created before this thread item ID. Defaults to null for the newest results.
limit: Integer
Maximum number of thread items to return. Defaults to 20.
minimum0
maximum100
user: String
Filter threads that belong to this user identifier. Defaults to null to return all users.
minLength1
maxLength512
Returns
List ChatKit threads
require "openai"
openai = OpenAI::Client.new
page = openai.beta.chatkit.threads.list
puts(page)
{
"data": [
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation"
},
{
"id": "cthr_def456",
"object": "chatkit.thread",
"title": "Demo feedback"
}
],
"has_more": false,
"object": "list"
}
Returns Examples
{
"data": [
{
"id": "cthr_abc123",
"object": "chatkit.thread",
"title": "Customer escalation"
},
{
"id": "cthr_def456",
"object": "chatkit.thread",
"title": "Demo feedback"
}
],
"has_more": false,
"object": "list"
}