Skip to main content
Use this endpoint to finish authenticating all role profiles for a cognitive roadmap when the organizer setting tests_auth_required is true. It exchanges the draft_token from POST /roadmap/{token}/auth/ plus the SMS code for the final list of role profiles.
Only call this endpoint when tests_auth_required is true on the roadmap. If the setting is disabled, the auth call already returns the roles and this endpoint returns a 400 error.

Endpoint

Headers

Path parameters

string
required
The unique cognitive roadmap instance UUID.

Body parameters

string
required
The draft_token returned by POST /roadmap/{token}/auth/. Valid for 5 minutes.
string
required
The SMS verification code sent to the shared mobile number.

Response

boolean
Echoes the organizer setting. Always true when this endpoint succeeds.
array
Array of authenticated roles. Each item contains role_id and a profile object with token, external_id, case_number, mobile, name, age, birth, and is_male.

Example request

Example response

Error responses