Announcement Statistics
Retrieve statistics for announcements.
Endpoint
INFO
GET /api/v1/dashboard/announcements-stats
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Example Request
bash
curl -X GET "https://api.daakey.com/api/v1/dashboard/announcements-stats" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Announcement statistics retrieved",
"data": {
"summary": {
"total": 25,
"active": 5,
"draft": 3,
"archived": 17
},
"engagement": {
"total_views": 15000,
"total_clicks": 3500,
"average_ctr": 23.3
},
"by_type": {
"info": 10,
"warning": 5,
"promo": 10
},
"top_performing": [
{
"id": 1,
"title": "New Electric Vehicle Fleet",
"views": 1250,
"clicks": 320,
"ctr": 25.6
}
]
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}