Form Widget

Select Form Language

Resolve a visitor-selected language and return the first question in that language.

Called by the form widget when the language selector is enabled. The widget passes either a preset_code (from the configured buttons) or other_text (free-form input); backend validates against the supported-language set, falling back to a Haiku language-resolution call if local fuzzy matching fails.

post/forms/{session_id}/select-language

Path parameters

session_idstring uuid required

Request body

preset_codestring nullable

ISO 639-1 / BCP-47 code from the preset options

other_textstring nullable

Free-form language name entered via 'Other'

Response

Successful Response

language_codestring required
language_name_nativestring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.