Shared Links
Levelcast has two share systems:
Dashboard vs public API: the routes below (
/api/v1/sharedLinks,/api/v1/screenSharedLinks) require a session cookie. API keys manage patient links viaGET/POST /api/v1/public/patients/:patientId/shared-linksandPATCH/DELETE /api/v1/public/shared-links/:id[/toggle]— see the API reference.
Patient Shared Links (/s/:token)
- Table
sharedLink(hasPassword,enablePdf,hasDateRange,enabledSectionsJSON). - Create via
SharedLinkModal.vue— patient picker,isTemporary(date+time),hasPassword(bcrypt),hasDateRange(DateRangePickerwith left border), sections (CheckboxCardgrid). - Public view:
GET /api/v1/sharedLinks/public/:token,POST /public/:token/unlock(HMACSHARED_LINK_SECRET4h token), thenframe/settings,layout,linked-patients,glucose-readings.
Screen Shared Links (/ss/:token)
- Table
shared_screen_link(frameId,token 32-char,isTemporary,hasPassword). - Limit:
sharedLinks: 2for Free,∞otherwise (canCreateSharedLinkcountssharedScreenLink.userId). - Create:
POST /api/v1/screenSharedLinks(validateUserOwnsFrameForSharedScreenLink+402if over limit). - Public:
GET /public/:token,unlock,frame/*(settings/layout/readings).
UI: SharedLinksPage.vue and ScreenSharedLinksPage.vue use GenericTable + modals; billing limits show ApiStatCard or PremiumUpsellModal.