Announcement Details
Retrieve detailed information about an announcement.
Endpoint
INFO
GET /api/v1/dashboard/announcements/{announcement}
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Description |
|---|---|---|
announcement | integer | Announcement ID |
Example Request
bash
curl -X GET https://api.daakey.com/api/v1/dashboard/announcements/1 \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Announcement retrieved",
"data": {
"id": 1,
"title": "New Electric Vehicle Fleet",
"message": "Check out our new Tesla Model 3 vehicles! Available at all downtown locations.",
"type": "info",
"target": "all",
"status": "published",
"image_url": "https://api.daakey.com/storage/announcements/1/image.jpg",
"action": {
"type": "link",
"url": "/vehicles?category=electric"
},
"starts_at": "2024-01-01T00:00:00Z",
"ends_at": "2024-01-31T23:59:59Z",
"stats": {
"views": 1250,
"clicks": 320,
"ctr": 25.6
},
"created_by": {
"id": 1,
"name": "Admin User"
},
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}