取得訊息分析數據

Get message analysis

post

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
secretstringRequired

Secret key for API authentication

Example: your_secret_key_here
Responses
200
Get Messages Analysis Successfully
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