Skip to main content
Use this endpoint to retrieve the questions for a test record. You must authenticate the participant profile first: if auth_required is still true, this endpoint returns an error. The response can be returned as structured JSON (sections and questions with option IDs) or as a rendered HTML string. Use the JSON format when you want to build a custom UI, and the HTML format when you want to embed a pre-rendered questionnaire.

Endpoint

Headers

Path parameters

string
required
The UUID token of the test record.

Response (JSON format)

object
array
Array of section objects. Each section contains:
  • id (string): Section identifier
  • title (string): Section title
  • questions (array): Questions in this section
Each question object contains:
string
Question identifier.
string
Question text.
array
Array of option objects. Each option has:
  • id (string): The option identifier you submit in answers
  • label (string): Human-readable option text

Example request

Example response (JSON)

Option IDs

Each option in the options array has an id field. You must submit these exact id values when posting answers to POST /record/{token}/. The label field is for display only and must not be sent as the answer value.

Response (HTML format)

When the questions endpoint returns HTML, the response shape is:
You can embed the html string directly into an iframe or render it in a WebView for mobile applications.