Obține toate
Obține toate notificarile disponibile ale utilizatorului.
Endpoint
http
GET /api/v1/notificationsExemplu de cerere
sh
curl --location --request GET 'https://files.ro/api/v1/notifications' \
--header 'Authorization: Bearer {token}'Răspuns
json
{
"data": [
{
"data": {
"id": "notif_123",
"type": "Domain\\UploadRequest\\Notifications\\UploadRequestNotification",
"attributes": {
"category": "upload",
"title": "File uploaded",
"description": "Your file was uploaded.",
"action": "view",
"created_at": "01. Jan. 2024 10:00",
"read_at": null
}
}
}
]
}json
{
"type": "error",
"message": "You are not authorized"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}