Check if unread notifications exist
GET
/notifications/new
const url = 'https://gitea.example.com/api/v1/notifications/new';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.example.com/api/v1/notifications/new \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Number of unread notifications
NotificationCount number of unread notifications
object
new
integer format: int64
Examplegenerated
{ "new": 1}NotificationCount number of unread notifications
object
new
integer format: int64