Returns a paginated list of chat conversations, sorted by most recent activity. Results are returned 20 per page.
Bearer token obtained from the authenticate endpoint.
Page number (1-based). Values less than 1 are treated as 1.
Response
List of chat conversations for the requested page.
Unique identifier for the chat.
Display title for the chat.
Preview of the first message in the chat.
ISO 8601 timestamp of the most recent activity.
Additional metadata about the chat.
Type of datasource used. Either "database" or "project".
Total number of chats across all pages.
Number of chats per page (currently 20).
Whether additional pages exist beyond the current page.
curl -X GET "https://api.trellis.sh/v1/chats?page=1" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"chats": [
{
"id": "chat_abc123",
"title": "Revenue Analysis",
"preview": "Show me the monthly revenue trends...",
"timestamp": "2025-01-11T14:30:00Z",
"metadata": {
"source_type": "database"
}
},
{
"id": "chat_def456",
"title": "Customer Insights",
"preview": "Which customers have the highest...",
"timestamp": "2025-01-10T10:15:00Z",
"metadata": {
"source_type": "database"
}
}
],
"total": 25,
"page": 1,
"page_size": 20,
"has_more": true
}