List User Chats
Chats
List User Chats
GET
List User Chats
List User Chats
This endpoint retrieves all chat sessions for a specific user within your tenant.Authentication
Authentication header with your tenant’s API key
Path Parameters
The ID of the user whose chats you want to retrieve
Query Parameters
The number of items to skip before starting to collect results
The maximum number of chats to return
Sort order for chats by creation date. Options: ‘asc’ or ‘desc’
Response
Array of chat objects belonging to the user
Total number of chats for this user
Current offset value used for pagination
Current limit value used for pagination
Indicates if there are more chats available
Chat Object
Unique identifier for the chat session
The ID of the user who owns this chat
The tenant identifier
The title of the chat session
Configuration object containing metadata and chat settings
Timestamp when the chat was created
Timestamp when the chat was last updated
Timestamp of the last message in this chat
Total number of messages in this chat
Error Responses
400: Bad Request
400: Bad Request
Invalid query parameters
401: Unauthorized
401: Unauthorized
404: Not Found
404: Not Found
User not found or no chats exist for this user
500: Internal Server Error
500: Internal Server Error
Server error processing the request
Example Usage
cURL
JavaScript
Python
Notes
- Results are automatically filtered to only include chats belonging to your tenant
- The
orderparameter sorts chats by theircreated_attimestamp last_message_atwill benullfor chats with no messagesmessage_countprovides a quick way to see chat activity without fetching all messages- Use pagination for users with many chats to improve performance