取得訊息分析數據
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
Authorizations
Query parameters
botIdstringRequired
The bot ID for the API request
Body
secretstringRequiredExample:
Secret key for API authentication
your_secret_key_here
Responses
200
Get Messages Analysis Successfully
application/json
401
JWT token is invalid or expired
application/json
403
Permission denied - insufficient access rights
application/json
404
OpenAPI configuration not found
application/json
500
Internal server error
application/json
post
POST /api/openapi/message/analysis HTTP/1.1
Host: mantago.cc
Authorization: Bearer JWT
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
}
Last updated