Sample - OpenAI API
GET/chatkit/threads

List ChatKit threads

List ChatKit threads with optional pagination and user filters.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

5 parameters
limitintegeroptional
Maximum number of thread items to return. Defaults to 20.
orderstringoptional
Sort order for results by creation time. Defaults to `desc`.
Allowed:ascdesc
afterstringoptional
List items created after this thread item ID. Defaults to null for the first page.
beforestringoptional
List items created before this thread item ID. Defaults to null for the newest results.
userstringoptional
Filter threads that belong to this user identifier. Defaults to null to return all users.

1 status code
200Success
objectstringrequired
The type of object returned, must be `list`.
Allowed:listDefault:list
dataarray<TheThreadObject>required
A list of items
first_idstringrequired
The ID of the first item in the list.
last_idstringrequired
The ID of the last item in the list.
has_morebooleanrequired
Whether there are more items available.