Bildirim Detayı
UUID ile bildirim detayını getirir.
Endpoint
GET /api/v1/notifications/\{uuid\}
Authentication
Bu endpoint authentication gerektirir.
Header: Authorization: Bearer \{token\}
Permission
notifications.view- Tüm bildirimleri görüntülemenotifications.view.own- Sadece kendi bildirimlerini görüntüleme
Request
Headers
| Header | Değer | Zorunlu |
|---|---|---|
Authorization | Bearer \{token\} | Evet |
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
uuid | string | Evet | Bildirim UUID'si |
Response
Success Response (200 OK)
{
"id": 1,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"user_id": 1,
"sender_id": 2,
"type": "info",
"title": "Yeni Mesaj",
"message": "Size yeni bir mesaj geldi",
"action_url": "/messages/123",
"metadata": {
"priority": "high"
},
"is_read": false,
"read_at": null,
"is_active": true,
"user": {
"id": 1,
"email": "user@example.com"
},
"sender": {
"id": 2,
"email": "sender@example.com"
},
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z"
}
Error Responses
404 Not Found
{
"message": "Not Found"
}
403 Forbidden
{
"message": "Forbidden"
}
Code Examples
cURL
curl -X GET https://api.example.com/api/v1/notifications/550e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer \{token\}"
Notes
- Sadece aktif bildirimler görüntülenebilir
- Silinmiş veya pasif bildirimler için 404 döner
- Bildirim kullanıcı ve gönderen bilgileri ile birlikte döner
Related Endpoints
- Bildirim Listesi - Tüm bildirimleri listele
- Bildirim Güncelle - Bildirim bilgilerini güncelle
- Bildirimi Okundu İşaretle - Bildirimi okundu işaretle