Skip to main content
GET
Get chat history (raw messages only) via API key

Authorizations

Authorization
string
header
required

Enter your LeanMCP API key

Path Parameters

id
string
required

Chat ID

Example:

"c1a83d84-7154-464c-bd19-a9f10e0a067f"

Response

Chat history retrieved successfully

chat
object
required

Chat metadata

messageIds
string[]
required

Array of message IDs in chronological order

totalMessages
number
required

Total number of messages in chat

retrievedAt
string
required

Timestamp when history was retrieved