Skip to content

Submit an answer (per-turn)

POST
/v1/sessions/{token}/answer

Records the patient’s answer to question N and triggers generation of question N+1. Used by the iterative Q&A hosted form.

Parameters

Path Parameters

token
required
string

Request Body required

object
question_index
required
integer
answer
required
string

Responses

200

Next question or done

object
question
string
What brings you to the obstetrics clinic today?
question_type
string
Allowed values: text number yes_no scale_1_10 date choice
choices
Array<string>
nullable
clinical_purpose
string
nullable
is_final_question
boolean
questions_remaining_estimate
integer
done
boolean
nullable