How many notifications you have not read
GET
/v1/notifications/unread-count
const url = 'https://beta-api.plune.ai/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 https://beta-api.plune.ai/v1/notifications/unread-count \ --header 'Authorization: Bearer <token>'The number on the bell (#1063): yours, unread, in the project the request runs in. 0 for a reader.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Plune-Project
string
Which of your projects to act in — an id from GET /v1/projects. Absent, your default project. A project you are not a member of answers 404, the same as one that does not exist. Ignored under a bearer token, which is bound to the project it was minted in.
Responses
Section titled “ Responses ”The count
Media type application/json
object
unread
required
integer
Example generated
{ "unread": 1}No / invalid token or session
The project named in X-Plune-Project is not one of yours
Media type application/json
object
error
required
string
Example generated
{ "error": "example"}