Start an assessment in five minutes
Use the server SDK in your authenticated backend, hand a short-lived token to the browser, and render the published participant journey.This path assumes an owner or admin has already published a version bundle and
activated a program in the Synapse dashboard. Environment keys deliberately
cannot publish or activate scoring science.
1
Install the server SDK
The TypeScript package currently ships through the project’s restricted
GitHub Packages registry.
.npmrc
2
Configure server-only settings
Store these in your backend’s secret manager. Never expose the environment
key through public build variables, static HTML, browser JavaScript, or
mobile application code.
3
Create an authenticated server handler
Resolve your own signed-in user on the server, persist an opaque request ID
for retries, then sync the subject, enroll them, and mint a one-hour
participant token.
start-assessment.ts
4
Render with the participant SDK
The browser gets only the returned
spt_ token. The SDK acknowledges the
exact server-pinned consent notice before it sends answers.participant.ts