XUND
Reference

Parameters

Every script tag attribute and JS API property of the Symptom & Illness Check App.

HTML attributes are used with the script embed, JS properties with the JS API. A dash means the option is not available in that method.

HTML attributeJS propertyTypeRequiredDescription
client-idclientIdstringyesYour Client Id.
webapp-codewebappCodestringyesYour Web App Code.
auth-codeauthCodestringyesA fresh auth code for each page load — see Authentication.
—targetContainerIdstringyes (JS API)The id of the element the app is rendered into.
statestatestring (UUID)noYour own identifier, returned in the webhook. It only arrives there when your server signed the auth code with the same value and scope=state — see Webhooks and your own identifier.
check-idcheckIdstring (UUID)noOpens an existing check by its id instead of starting a new one.
app-languageappLanguagestringnoThe app's language — see Language.
birthcustomization.birthstring (YYYY-MM-DD)noPrefilled date of birth — see Profile data.
gendercustomization.gendermale | femalenoPrefilled gender — see Profile data.
direct-checkcustomization.directCheckSYMPTOM_CHECK | ILLNESS_CHECKnoSkips the choice of check type — see Start with a check.
direct-check-main-symptom-idcustomization.directCheckMainSymptomIdstring (UUID)noStarts a symptom check with this main symptom — see Start with a symptom.
onboardingcustomization.onboardingbooleannoShows an onboarding page first — see Onboarding.
compact-modecustomization.compactModebooleannoHides the logo and side-menu button in the header — see Compact mode.
color-schemecustomization.colorSchemelight | dark | autonoThe colour scheme — see Colour scheme.
—customization.colorsobjectnoYour own colours for the light and dark scheme — see Your own colours and Colour keys.
—customization.onReportShownfunctionnoCalled with { reportData, checkId } when the report is shown — see Report data.
—customization.checkReport.actionButtonobject | boolean | nullnoThe report's action button — see Report action button.
webapp-base-urlwebappBaseUrlstringnoOnly when XUND gives you a different app URL. Must be a *.xund.solutions URL; otherwise the default is used.
auth-base-urlauthBaseUrlstringnoOnly when XUND gives you a different auth URL. Must be a *.xund.solutions URL; otherwise the default https://login.xund.solutions/api is used.

In HTML attributes, boolean options take the string "true" or "false".

Last updated on