Notifications
Get unread notifications count
Get the total count of unread notifications for the current user
GET
/
api
/
notifications
/
unread-count
Get unread notifications count
curl --request GET \
--url https://{baseUrl}/api/v1/api/notifications/unread-countimport requests
url = "https://{baseUrl}/api/v1/api/notifications/unread-count"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/notifications/unread-count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/unread-count"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}Response
200 - application/json
The response is of type object.
⌘I
Get unread notifications count
curl --request GET \
--url https://{baseUrl}/api/v1/api/notifications/unread-countimport requests
url = "https://{baseUrl}/api/v1/api/notifications/unread-count"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://{baseUrl}/api/v1/api/notifications/unread-count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/notifications/unread-count"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}