Get Cross-Account Unread Summary

Beta
GET/v1/messaging/notifications/unread-summary

This endpoint is idempotent. Learn more

Returns the caller's unread totals broken down by account, covering every account they belong to and not just the one they are acting in.

Use it to show a user that activity is waiting for them elsewhere before they switch accounts. Each tally counts unseen notifications and unseen account announcements together.

Permissions requiredValues:messaging:read
The role behind your API key or agent must grant every one of these permissions.
objectstringenumValues:notification_unread_summary

Resource type identifier.

totalinteger

Combined unread total across all of the caller's accounts.

accountslistnullable

Per-account unread tallies.

Every account the caller belongs to is listed, including accounts with nothing unread.

objectstringenumValues:list

Resource type identifier.

page_infoobject

Pagination metadata.

next_page_urlstringnullable

Relative URL that fetches the next page of results.

previous_page_urlstringnullable

Relative URL that fetches the previous page of results.

has_next_pageboolean

Whether more results exist after this page.

has_prev_pageboolean

Whether results exist before this page.

dataarray of notification_unread_summary_account

Resources in this page.

objectstringenumValues:notification_unread_summary_account

Resource type identifier.

accountentitynullable

The account this tally is for.

idstring

Unique identifier for the entity.

objectstringenumValues:entity

Resource type identifier.

typestringenumValues:accountactorentity

The resource kind that this entity references, as an object-type value (e.g. user, account).

Unlike object — which is always entity — this names the underlying resource the id points to.

namestringnullable

Human-readable display name for the entity (e.g. a user's full name, a sales order number).

handlestringnullable

Secondary human-readable identifier (e.g. email address, username, redacted API key value).

unreadinteger

Number of unseen notifications and account announcements the caller has in this account.

Responses

200

Successful response for Get Cross-Account Unread Summary