Skip to main content
Returns a list of all chat conversations, sorted by most recent activity.
Authorization
string
required
Bearer token obtained from the authenticate endpoint.

Response

chats
array
required
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"
      }
    }
  ]
}