Logo
Search
Docs

List chats

GET https://app.sulus.ai/api/v1/agents/{agent_id}/chats

List your chats in an agent

Authentication

Send a bearer token created on your dashboard's Developer page:

Authorization: Bearer <YOUR_API_KEY>

Path parameters

agent_id string Required

The agent id (UUID).

Validation: uuid (route-constrained)
Stored in ai_projects.uid

Errors

StatusMeaningBody
404 Agent not found, or you do not have access to it
401 Missing or invalid bearer token
403 Feature ai_chat not enabled for the account
curl --request GET \
  --url https://app.sulus.ai/api/v1/agents/{agent_id}/chats \
  --header 'Authorization: Bearer <YOUR_API_KEY>'
import requests

url = "https://app.sulus.ai/api/v1/agents/{agent_id}/chats"
headers = {"Authorization": "Bearer <YOUR_API_KEY>"}

response = requests.get(url, headers=headers)
print(response.json())
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://app.sulus.ai/api/v1/agents/{agent_id}/chats"
	req, _ := http.NewRequest("GET", url, nil)
	req.Header.Add("Authorization", "Bearer <YOUR_API_KEY>")
	res, _ := http.DefaultClient.Do(req)
	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)
	fmt.Println(string(body))
}
Response 200
{
    "object": "list",
    "data": [
        {
            "id": "b2c3d4e5-0000-4000-8000-000000000002",
            "object": "chat",
            "title": "Pricing questions",
            "model": "sulus-chat-1",
            "provider": "sulus-primary",
            "last_message_at": "2026-07-30T14:20:11.000000Z",
            "created_at": "2026-07-30T14:12:40.000000Z"
        },
        {
            "id": "d4e5f6a7-0000-4000-8000-000000000003",
            "object": "chat",
            "title": "New chat",
            "model": null,
            "provider": "sulus-primary",
            "last_message_at": null,
            "created_at": "2026-07-30T15:01:02.000000Z"
        }
    ]
}