Chimely
Api

Unread and unseen counts

`unread` drives list styling; `unseen` drives the bell badge (cleared by mark-all-seen when the inbox opens). Served from maintained counters (Redis cache, Postgres authoritative) — O(1), not O(rows).

GET
/v1/inbox/counts

unread drives list styling; unseen drives the bell badge (cleared by mark-all-seen when the inbox opens). Served from maintained counters (Redis cache, Postgres authoritative) — O(1), not O(rows).

Authorization

SubscriberEnv SubscriberHash SubscriberId
X-Chimely-Environment<token>

In: header

X-Chimely-Subscriber-Hash<token>

Optional when the environment has require_subscriber_hash = false.

In: header

X-Chimely-Subscriber<token>

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/inbox/counts"
{
  "unread": 0,
  "unseen": 0
}
{
  "error": {
    "code": "invalid_request",
    "message": "string"
  }
}