Get the unread count
GET/api/patient/provider-chat/unread
How many care-team messages the person has not read. Call it once to start a badge; after that, changes arrive over the realtime connection (unread:update).
Response 200: { total: number, byEmail: { [email]: number } }. For a patient subject, use total.
Request
Responses
- 200
- 401
- 403
- 429
- 500
Success
Unauthorized (X-Api-Key missing, malformed, unknown or disabled)
Forbidden (the key cannot reach this person, IP not allowed, or a read-only key on a write)
Too Many Requests (rate limit exceeded)
Internal Server Error