Quickstart
Get your first test result in minutes with a step-by-step walkthrough.
Authentication
Learn how to obtain and use your API key to authenticate requests.
Records
Understand standalone test records, their lifecycle, and status codes.
Roadmaps
Explore multi-test packages with AI-powered combined analysis.
Integration patterns
The Braintest API supports two main integration patterns. Choose the one that fits your use case. Every record and roadmap payload includes atests_auth_required flag copied from your organizer setting. It controls whether authentication uses a two-step SMS flow (default) or completes on a single call.
Standalone tests
Use this pattern when you want to administer a single psychological test to a participant.- List available records and pick one with
status: 2(ready) andauth_required: true. - Call
POST /record/{token}/auth/with the participant profile. - When
tests_auth_requiredistrue, finish authentication by callingPUT /record/{token}/auth/verify/with the returneddraft_tokenand the SMS code. When it isfalse, the profile is created immediately. - Fetch the test questions.
- Submit the participant answers.
- Retrieve the result in JSON or HTML format.
Cognitive roadmaps
Use this pattern when you want to run a multi-test package and receive an AI-generated combined analysis.- List available roadmaps and pick one with
status: 2(ready). - Call
POST /roadmap/{token}/auth/with the shared mobile and one profile per role. - When
tests_auth_requiredistrue, finish authentication by callingPUT /roadmap/{token}/auth/verify/with thedraft_tokenand the SMS code. When it isfalse, all role profiles are created immediately. - For each test record in the roadmap, fetch questions and submit answers.
- Queue AI analysis generation.
- Poll the generation status until it completes.
- Retrieve the combined roadmap result in JSON or HTML format.
For roadmap records, always authenticate through
/roadmap/{token}/auth/ instead of /record/{token}/auth/. Roadmap authentication links all participant profiles to every record in the package automatically.
