Seguros APIseguros-api reference
Get session message history
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
id*string
Query Parameters
limit?string
offset?string
role?string
Value in
"user" | "assistant"Response Body
application/json
curl -X GET "https://example.com/api/chat-sessions/string/history"{
"sessionId": "session-uuid",
"messages": [
{
"id": "msg-uuid",
"sessionId": "session-uuid",
"role": "user",
"content": "Mostre vendas do mês",
"metadata": {
"operationType": "SELECT",
"executionTimeMs": 245
},
"createdAt": "2025-10-21T14:05:00Z"
}
],
"total": 25,
"limit": 50,
"offset": 0
}