The Chat type
Each item in the history response is aChat record from the database.
UUID of the chat.
ISO 8601 timestamp of when the chat was created.
Auto-generated title derived from the first user message.
UUID of the user who owns the chat.
Either
"private" (default) or "public".GET /api/history
Return all chats belonging to the authenticated user, sorted bycreatedAt descending (most recent first).
Authentication: required (session cookie)
Query parameters
This endpoint takes no query parameters. All chats for the current user are returned in a single response.Response
Returns a JSON array ofChat objects. The array is empty when the user has no chats.
Example response
Error codes
| Status | Meaning |
|---|---|
401 | Missing or invalid session. |
Example
curl
TypeScript