Documentation Index Fetch the complete documentation index at: https://wuweism.com/llms.txt
Use this file to discover all available pages before exploring further.
Returns a summary list of the authenticated user’s most recent causal chat sessions, each with a preview of the last message. Use this endpoint to populate history panels or session pickers in your integration.
Endpoint
GET /api/causal-chat/history
Authentication
Required. Include a session cookie or Authorization: Bearer <token> header. Unauthenticated requests return 401 Unauthorized.
Request
This endpoint accepts no query parameters or request body.
Bearer token for API authentication. Format: Bearer <token>.
Response
Status: 200 OK
Content-Type: application/json
Returns a list of recent sessions, each containing metadata and a preview of the last message. Sessions are ordered by most recently updated first.
Array of recent session objects. UUID identifying the session. Pass this as sessionId in subsequent POST /api/causal-chat requests to continue the conversation. Title of the session, derived from the first question asked.
ISO 8601 timestamp of the most recent message in the session.
Primary domain label for the session, e.g. "neuroscience" or "economics". May be null if the first message has not yet been classified.
Preview of the most recent message in the session. Show last_message properties
Role of the last message author: "user" or "assistant".
Truncated content of the last message, suitable for display in a list view.
ISO 8601 timestamp when the last message was created.
Examples
curl --request GET \
--url https://wuweism.com/api/causal-chat/history \
--header 'Authorization: Bearer <token>'
{
"sessions" : [
{
"id" : "3f2504e0-4f89-11d3-9a0c-0305e82c3301" ,
"title" : "Does cortisol exposure causally increase hippocampal volume reduction?" ,
"updated_at" : "2026-04-05T14:32:00Z" ,
"domain_classified" : "neuroscience" ,
"last_message" : {
"role" : "assistant" ,
"content_preview" : "Yes. The causal pathway from elevated cortisol to hippocampal volume reduction is well-supported..." ,
"created_at" : "2026-04-05T14:32:00Z"
}
},
{
"id" : "6ba7b810-9dad-11d1-80b4-00c04fd430c8" ,
"title" : "What is the causal effect of sleep deprivation on reaction time?" ,
"updated_at" : "2026-04-04T09:15:00Z" ,
"domain_classified" : "cognitive_science" ,
"last_message" : {
"role" : "user" ,
"content_preview" : "Can you break down the adjustment set used in that analysis?" ,
"created_at" : "2026-04-04T09:15:00Z"
}
}
]
}
Error responses
Status Description 401Missing or invalid authentication credentials.