Skip to Content
API ReferenceOnboardingThe OnboardingQuestion object

The onboarding question object

An onboarding question defines one intake prompt configured for your organisation. Your app fetches onboarding questions to render native intake forms and submits answers via PUT /api/v1/members/{external_member_id}.

Attributes

idstringoptional

Question identifier (e.g. "stage_of_life", "due_date"). Pass this as id in the onboarding array on member upsert.

phasestringoptional

Phase name (e.g. "pre-payment", "post-payment"). Tracked in the member’s onboarding_status.

promptstringoptional

Question text to display in your UI.

ui_componentstringoptional("cards_grid" | "radio_list" | "checkbox_list" | "date_picker" | "text_input")

Suggested UI widget:

  • "cards_grid": Visual card tiles with icons and titles.
  • "radio_list": Vertical list with single-select radio buttons.
  • "checkbox_list": Multi-select checkboxes or pills.
  • "date_picker": Date picker with range boundaries.
  • "text_input": Text field with character limit.
answer_typestringoptional("choice" | "multi_choice" | "text" | "date")

Expected answer format (submitted as a string array value: string[]):

  • "choice": Single option (e.g. ["pregnancy"]).
  • "multi_choice": Multiple options (e.g. ["Feel stronger", "More energy"]).
  • "text": Text string (e.g. ["Knee pain"]), or [] if skipped.
  • "date": ISO 8601 date (e.g. ["1992-06-14"]).
requiredbooleanoptional

Whether an answer is required when this question applies (ask_if condition met) before the phase completes.

optionsobject[]optional

Choices for "choice" and "multi_choice" questions:

  • index (integer): 1-based display order.
  • value (string): Machine-readable key for answers and ask_if conditions.
  • label (string): Display label.
  • icon (string | null, optional): Material Symbols icon name or emoji for visual cards.
  • subtitle (string | null, optional): Short secondary helper text shown beneath the label. Empty ([]) for "text" and "date" questions.
ask_ifobjectoptional

Conditions ({ [question_id]: expected_value }) required for this question to apply. An empty object ({}) means it always applies in its phase.

validationsobject[]optional

Validation rules enforced on the answer:

  • date_range: min / max boundaries (today, relative, or fixed).
  • selection: min_picks, max_picks, and exclusive_values.
  • text_length: min_length and max_length.

The OnboardingQuestion object

{ "id": "stage_of_life", "phase": "pre-payment", "prompt": "To get started — is any of this where you are right now?", "ui_component": "cards_grid", "answer_type": "choice", "required": true, "options": [ { "index": 1, "value": "ttc", "label": "Trying to conceive", "icon": "favorite" }, { "index": 2, "value": "pregnancy", "label": "Pregnant", "icon": "pregnant_woman" }, { "index": 3, "value": "postpartum", "label": "Recently had a baby", "icon": "child_care" }, { "index": 4, "value": "perimenopause", "label": "Perimenopause", "icon": "wb_twilight" }, { "index": 5, "value": "menopause", "label": "Menopause", "icon": "self_improvement" }, { "index": 6, "value": "general", "label": "None of these right now", "icon": "fitness_center" } ], "ask_if": {}, "validations": [] }

Endpoints

MethodEndpointDescription
GET/api/v1/onboarding/questionsList your organisation’s onboarding phases and questions, optionally filtered by member or phase (200).

Next steps

Last updated on