The bell: a user's unread notifications
GET /v1/notifications/unread
Like /inbox, unread only. With a secret key and no user_id, the project’s unread direct notifications (broadcasts are read per person, so they are not in that list). On a project whose require_user_hash is off, a browser call without a hash is still answered the old way, with meta.identity_verification: "off" and a warning.
Auth: Publishable key from the browser, with user_id and user_hash = HMAC-SHA256(signing secret, user_id) as lowercase hex, in the X-Nordva-User-Hash header or a user_hash parameter. A secret key may name any user_id and needs no hash. A wrong or missing hash answers USER_HASH_INVALID (403).
Rate limits: a browser call counts against 120 requests a minute per IP address (not the key’s budget), and the bell reads (/inbox, /unread, /unread/count) share a per-user hourly budget: Free 180, Indie 540, Builder 720 (RATE_LIMITED, 429, with Retry-After).
CORS: Access-Control-Allow-Origin: *.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The same hash, when a header is inconvenient.
Header Parameters
Section titled “Header Parameters ”HMAC-SHA256(signing secret, user_id), lowercase hex.
Responses
Section titled “ Responses ”Unread notifications
object
object
What the bell needs. read, clicked and archived are this user’s.
object
A short name the bell can show as a tab, such as billing.
Up to two buttons. Each url is an http(s) URL or a path on your own site.
object
Anything your page needs with the item (at most 2,048 bytes as JSON). Never shown; the bell widget passes it in its events.
When it showed (the scheduled time for a scheduled one).
Posted by a changelog entry; the widget labels it “What’s new”.
What this user can react with, in order, with everyone’s counts; null when it takes no reactions.
object
This user’s reaction.
When a user_id is given.
object
Error envelope. See error.code for the discriminator.
object
object
object
Error envelope. See error.code for the discriminator.
object
object
object
Error envelope. See error.code for the discriminator.
object
object
object
Error envelope. See error.code for the discriminator.