Requires Spruce Embedded Secure Messaging, a paid add-on. This endpoint is part of Spruce Embedded Secure Messaging, which is not included with standard Public API access. Contact Spruce Support at [email protected] to learn more.
This operation lists the messages, system messages and change events in a conversation, oldest first by default. A deleted message stays in the list at its id with deleted set and no text or attachments, and a messageDeleted or messageRestored event is appended at the time of the change. A systemMessage item is a line Spruce wrote about the conversation, such as "Dr. So and So deleted a message."; it is not something a person sent, so show it as a status line between the messages, as the Spruce app does, and never as a message. If hasMore is true, pass the returned paginationToken to fetch the next page. To show the latest items first and load history as the patient scrolls back, pass order=newest_first: the first page holds the newest items, newest first, and each paginationToken sent with order=newest_first again returns the next older page. To poll for new items, pass the newest item's createdAt as startFrom; items created at or after that time are returned, so an item already seen can appear again and should be matched by id. startFrom is a lower bound only; there is no upper time bound, so older items are reached by paging with order=newest_first.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
