Care Team Chat
Messages between a person and their care team. There is one conversation per person, so no session id is needed. Read the history and the unread count over REST. To send and receive in real time, ask for a realtime token and connect with it.
List messages with the care team
The messages between the person and their care team: the newest page first, each page in the order to show it (oldest to newest).
Create a realtime token
A short-lived token for the realtime chat connection. With it your app sends and receives care-team messages as the person, and your key never reaches the device. Needs the `write` scope.
Get the unread count
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`).