Bearer token obtained from the authenticate endpoint.
Response
List of chat conversations.
curl -X GET https://api.trellis.sh/v1/chats \
-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"
}
}
]
}
Retrieve all chats for the authenticated user
Show Chat object
curl -X GET https://api.trellis.sh/v1/chats \
-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"
}
}
]
}