curl -X GET https://api.thinnest.ai/v2/chats \
-H "Authorization: Bearer $THINNESTAI_API_KEY"
import requests
url = "https://api.thinnest.ai/v2/chats"
headers = {
"Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://api.thinnest.ai/v2/chats", {
method: "GET",
headers: {
"Authorization": "Bearer " + "YOUR_THINNESTAI_API_KEY",
},
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.thinnest.ai/v2/chats", nil)
req.Header.Set("Authorization", "Bearer YOUR_THINNESTAI_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
Response 200
{
"chats": [
{
"id": "sess_abc123",
"agent_id": 5,
"name": "Sales inquiry",
"source": "dashboard",
"message_count": 12,
"created_at": "2026-03-25T10:00:00Z",
"updated_at": "2026-03-25T10:15:00Z"
}
],
"total": 1
}
Errors
| Code | Description |
|---|---|
401 | Missing or invalid authentication |

