GET
/
notifications
/
all
Get all notifications
curl --request GET \
  --url https://localhost:5000/notifications/all \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "notifications": [
    {
      "type": "like",
      "from": "<string>",
      "to": "<string>",
      "_id": "<string>",
      "post": "<string>",
      "comment": "<string>",
      "isRead": true,
      "isFollowing": true,
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

User notifications

success
boolean
Example:

true

notifications
object[]