Get Message Analytics
Retrieve comprehensive bot message analytics and statistics across all platforms.
This endpoint provides:
Line platform statistics (quota, consumption, reply/push/broadcast amounts)
Multi-platform conversation analytics (average conversation values and times)
Platform integration status for all platforms Platforms covered: Line, Facebook, Instagram, LiveChat, WhatsApp
Bearer token for API authentication
The bot ID for the API request
Secret key for API authentication
your_secret_key_hereGet Messages Analysis Successfully
trueGet Messages Analysis SuccessfullyLine platform quota limit
1000Line platform quota consumption
250Number of Line reply messages
45Number of Line push messages
12Number of Line broadcast messages
3Line program data
輕用量Possible values: Average conversation value for Line platform
8Average conversation time for Line platform (in seconds)
120Average conversation value for Facebook platform
6Average conversation time for Facebook platform (in seconds)
95Average conversation value for Instagram platform
4Average conversation time for Instagram platform (in seconds)
75Average conversation value for LiveChat platform
12Average conversation time for LiveChat platform (in seconds)
180Average conversation value for WhatsApp platform
7Average conversation time for WhatsApp platform (in seconds)
110Whether Line platform is integrated
trueWhether Facebook platform is integrated
trueWhether Instagram platform is integrated
falseWhether LiveChat platform is integrated
trueWhether WhatsApp platform is integrated
falseJWT token is invalid or expired
Permission denied - insufficient access rights
OpenAPI configuration not found
Internal server error
POST /api/openapi/message/analysis?botId=text HTTP/1.1
Host: mantago.cc
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"secret": "your_secret_key_here"
}{
"success": true,
"message": "Get Messages Analysis Successfully",
"lineQuota": 1000,
"lineQuotaConsumption": 250,
"lineReplyAmounts": 45,
"linePushAmounts": 12,
"lineBroadcastAmounts": 3,
"lineProgram": [],
"lineAverageConversationValue": 8,
"lineAverageConversationTime": 120,
"fbAverageConversationValue": 6,
"fbAverageConversationTime": 95,
"igAverageConversationValue": 4,
"igAverageConversationTime": 75,
"liveChatAverageConversationValue": 12,
"liveChatAverageConversationTime": 180,
"whatsappAverageConversationValue": 7,
"whatsappAverageConversationTime": 110,
"lineIsIntegration": true,
"fbIsIntegration": true,
"instagramIsIntegration": false,
"liveChatIsIntegration": true,
"whatsappIsIntegration": false
}