Get unread notification count
GET
/notifications/unread-count
const url = 'http://localhost:8000/api/v1/notifications/unread-count';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/api/v1/notifications/unread-count \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful operation
Media type application/json
object
count
integer
Example generated
{ "count": 1}