Skip to main content
GET
Get message count for a chat via API key

Authorizations

Authorization
string
header
required

Enter your LeanMCP API key

Path Parameters

chatId
string
required

Chat ID

Example:

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

Response

200 - application/json

Message count retrieved successfully

chatId
string
messageCount
number
countedAt
string