Count unread notifications
GET
/katara/v1/notifications/count
const url = 'https://api.katara.com/katara/v1/notifications/count?product=account';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://api.katara.com/katara/v1/notifications/count?product=account' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”org_id
string format: uuid
environment_id
string format: uuid
product
string
Header Parameters
Section titled “Header Parameters”X-Katara-Account-ID
string format: uuid
Optional for reads after sign-in. Use the UUID of the account that loaded the application. A different current cookie account returns account_changed before the handler runs. Session bearer and API key clients do not require this header.
Responses
Section titled “Responses”Current notification state.
Media typeapplication/json
object
unread_count
required
integer
has_more
required
boolean
Examplegenerated
{ "unread_count": 1, "has_more": true}Invalid request.
A current human session or permission is required.
Item or source access is unavailable.
The state version changed; reload before editing.