Skip to main content
GET
/
api
/
chats
cURL
curl --request GET \
  --url https://app.cotool.ai/api/chats \
  --header 'Authorization: Bearer <token>'
{
  "chats": [
    {
      "id": "<string>",
      "userId": "<string>",
      "agentId": "<string>",
      "organizationId": "<string>",
      "title": "<string>",
      "createdAt": "2025-06-17T12:34:56.789Z",
      "updatedAt": "2025-06-17T12:34:56.789Z",
      "experience": "chat",
      "modelAlias": "<any>",
      "triggerId": "<string>",
      "triggerName": "<string>",
      "triggerSource": "<string>",
      "triggerDescription": "<string>",
      "isStreaming": true,
      "result": "<any>",
      "error": "<string>",
      "inputTokens": 123,
      "outputTokens": 123,
      "totalTokens": 123,
      "evalScore": 123,
      "evalExplanation": "<string>",
      "evalBulletSummary": [
        "<string>"
      ]
    }
  ],
  "totalCount": 123,
  "feedbackByEvent": {}
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Query Parameters

limit
integer
required
Required range: 1 <= x <= 100
offset
integer
required
Required range: x >= 0

Response

200 - application/json

Successful response

chats
object[]
required
totalCount
integer
required
feedbackByEvent
object