List onboarding questions
GET
/api/v1/onboarding/questionsReturns ordered onboarding phases and questions configured for your organisation, with optional filtering by phase or member.
Query parameters
external_member_idstringoptional
When provided, Bella evaluates question conditions against previously submitted answers and returns only applicable questions the member has not yet answered.
phasestringoptional
Filter questions to a specific phase (e.g. "pre-payment").
Returns
HTTP Status Codes
200 OK{ phases, questions }optional
Returns configured phases and matching onboarding question objects.
401 UnauthorizedErroroptional
The integration key is missing, invalid, or revoked.
404 Not FoundErroroptional
external_member_id was provided but no matching member exists.
cURL
curl -X GET "https://api.bellacoach.ai/api/v1/onboarding/questions?external_member_id=usr_94821&phase=post-payment" \
-H "Authorization: Bearer $BELLA_API_KEY" \
-H "Accept: application/json"Response (200 OK)
{
"phases": ["pre-payment", "post-payment"],
"questions": [
{
"id": "date_of_birth",
"phase": "pre-payment",
"prompt": "When were you born?",
"ui_component": "date_picker",
"answer_type": "date",
"required": false,
"options": [],
"ask_if": {},
"validations": []
},
{
"id": "due_date",
"phase": "post-payment",
"prompt": "Congratulations! When is your baby due?",
"ui_component": "date_picker",
"answer_type": "date",
"required": true,
"options": [],
"ask_if": {
"stage_of_life": "pregnancy"
},
"validations": [
{
"type": "date_range",
"min": { "type": "today" },
"max": {
"type": "relative",
"reference": "today",
"amount": 42,
"unit": "weeks",
"direction": "future"
},
"message": "Due date must be between today and 42 weeks in the future"
}
]
},
{
"id": "constraints",
"phase": "post-payment",
"prompt": "Before we talk movement — any injuries, conditions, or symptoms to keep in mind?",
"ui_component": "text_input",
"answer_type": "text",
"required": false,
"options": [],
"ask_if": {},
"validations": [
{
"type": "text_length",
"max_length": 500,
"message": "Please keep your response under 500 characters"
}
]
}
]
}Next steps
Last updated on