Skip to content

Get all

It get all available user notifications.

Endpoint

http
GET /api/v1/notifications

Request example

sh
curl --location --request GET 'https://files.ro/api/v1/notifications' \
--header 'Authorization: Bearer {token}'

Response

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."
    ]
  }
}