Call this endpoint when the user clicks a survey from the surveys feed. It returns one of three outcomes:
accepted: the user must answer a question first. Show questions.current and send the answer to Submit an answer.
qualified: send the user to url.
disqualified: the user does not fit this survey. Show your “no match” screen, or follow redirect_url if it is present.
Replace {your-domain} with your own domain. For example, if your platform runs on example.com, the base URL is https://partners.example.com.
Headers
string
required
Bearer {uh}. uh is the user hash returned by Get surveys. You can also send Bearer {external_user_id}:{app}.
Body
string
required
Survey hash (UUID) from the surveys feed.
string
Your app API token. Required when secure API mode is enabled for your app.
boolean
Send true once the user has accepted your privacy policy. When your app requires a policy opt-in and the user has not given it, the response is disqualified with message: "Policy required".
string
Optional tracking value, stored with the survey click.
Response
string
required
accepted, qualified, disqualified or error.
object
required
Show properties
object | null
The question to show next. null when status is not accepted.
One of single_choice, multiple_choice, input_int, input_text, input_bigtext, input_date. See Question types.
boolean
Whether the user may skip this question.
boolean
When true, answers is empty: look up answers as the user types with Search answers.
object[]
Answer options for choice questions. Empty for input questions and autocomplete questions.
Show properties
string
Answer hash (UUID). Send it in answer.
string
Answer text, in the user’s language.
integer | null
Approximate number of questions left for this survey. It can change during qualification.
string | null
On disqualified and error, the reason (for example a reason code such as "18", or "Policy required"). Otherwise null.
boolean
Internal flag. You can ignore it.
string
Only on qualified. The survey entry link on the survey router (https://{router-host}/out?...). The router host depends on the survey. Send the user to this URL as is.
string
Present with url or redirect_url. How to open the link, as configured for your app (for example new_tab).
string
Only on disqualified, when your app has a disqualification redirect configured.
number
Reward earned by the user for answering qualification questions, when pre-qualification rewards are enabled for your app. In your app’s currency.
boolean
Present and true when the user must give consent before entering the survey. In this case status is qualified and there is no url.
string
Present when the user is moved on to another survey. Continue qualification with this survey hash.
Errors
HTTP
When
400
App not found, app deleted, or token does not match ({"status":"error","message":"Token mismatch"}).
401
Missing or unknown bearer token ({"message":"Unauthenticated."}).
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Prime Insights","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"favicon":"https://mintcdn.com/primeinsights/bDen0AJeu40picfe/favicon.svg?fit=max\u0026auto=format\u0026n=bDen0AJeu40picfe\u0026q=85\u0026s=801ef9e4fe49f48bceeedb24e16fa0f2","api":{"playground":{"display":"simple"},"mdx":{"server":"https://partners.{your-domain}"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"primeinsights","hasAudioNarration":false,"actualSubdomain":"primeinsights","customDomains":["docs-saas.primeearn.com"],"gitSource":{"type":"artifacts","owner":"prod","repo":"6b0432e208d314b7b333663b","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b043699e9dc5e7aaf35dee4"},"entitlements":{},"buildId":"6b044d1d610c4bb5856861a2","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"Surveys","count":10},{"language":"default","tag":"Qualification","count":4},{"language":"default","tag":"Get started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"surveys/qualification/start","slug":"/surveys/qualification/start","pageMetadata":{"title":"Start qualification","api":"POST /api/qualification","description":"Start the qualification process for a survey and get the first question, or an immediate result.","href":"/surveys/qualification/start"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Start the qualification process for a survey and get the first question, or an immediate result.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Note,ParamField,ResponseField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Call this endpoint when the user clicks a survey from the `,_jsx(_components.a,{href:`/surveys/get-surveys`,children:`surveys feed`}),`. It returns one of three outcomes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`accepted`})}),`: the user must answer a question first. Show `,_jsx(_components.code,{children:`questions.current`}),` and send the answer to `,_jsx(_components.a,{href:`/surveys/qualification/submit-answer`,children:`Submit an answer`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`qualified`})}),`: send the user to `,_jsx(_components.code,{children:`url`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`disqualified`})}),`: the user does not fit this survey. Show your “no match” screen, or follow `,_jsx(_components.code,{children:`redirect_url`}),` if it is present.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`{your-domain}`}),` with your own domain. For example, if your platform runs on `,_jsx(_components.code,{children:`example.com`}),`, the base URL is `,_jsx(_components.code,{children:`https://partners.example.com`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer {uh}`}),`. `,_jsx(_components.code,{children:`uh`}),` is the user hash returned by `,_jsx(_components.a,{href:`/surveys/get-surveys`,children:`Get surveys`}),`. You can also send `,_jsx(_components.code,{children:`Bearer {external_user_id}:{app}`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`survey`,type:`string`,required:true,id:`param-survey`,children:_jsx(_components.p,{children:`Survey hash (UUID) from the surveys feed.`})}),`\n`,_jsx(ParamField,{body:`token`,type:`string`,id:`param-token`,children:_jsx(_components.p,{children:`Your app API token. Required when secure API mode is enabled for your app.`})}),`\n`,_jsx(ParamField,{body:`policy_optin`,type:`boolean`,id:`param-policy-optin`,children:_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`true`}),` once the user has accepted your privacy policy. When your app requires a policy opt-in and the user has not given it, the response is `,_jsx(_components.code,{children:`disqualified`}),` with `,_jsx(_components.code,{children:`message: \"Policy required\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`subid`,type:`string`,id:`param-subid`,children:_jsx(_components.p,{children:`Optional tracking value, stored with the survey click.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`accepted`}),`, `,_jsx(_components.code,{children:`qualified`}),`, `,_jsx(_components.code,{children:`disqualified`}),` or `,_jsx(_components.code,{children:`error`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`questions`,type:`object`,required:true,id:`param-questions`,children:_jsxs(Expandable,{title:`properties`,children:[_jsxs(ResponseField,{name:`current`,type:`object | null`,id:`param-current`,children:[_jsxs(_components.p,{children:[`The question to show next. `,_jsx(_components.code,{children:`null`}),` when `,_jsx(_components.code,{children:`status`}),` is not `,_jsx(_components.code,{children:`accepted`}),`.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Question hash (UUID). Send it as `,_jsx(_components.code,{children:`question`}),` in `,_jsx(_components.a,{href:`/surveys/qualification/submit-answer`,children:`Submit an answer`}),`.`]})}),_jsx(ResponseField,{name:`question`,type:`string`,id:`param-question`,children:_jsx(_components.p,{children:`Question text, in the user’s language.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`One of `,_jsx(_components.code,{children:`single_choice`}),`, `,_jsx(_components.code,{children:`multiple_choice`}),`, `,_jsx(_components.code,{children:`input_int`}),`, `,_jsx(_components.code,{children:`input_text`}),`, `,_jsx(_components.code,{children:`input_bigtext`}),`, `,_jsx(_components.code,{children:`input_date`}),`. See `,_jsx(_components.a,{href:`/surveys/qualification/question-types`,children:`Question types`}),`.`]})}),_jsx(ResponseField,{name:`is_skippable`,type:`boolean`,id:`param-is-skippable`,children:_jsx(_components.p,{children:`Whether the user may skip this question.`})}),_jsx(ResponseField,{name:`autocomplete`,type:`boolean`,id:`param-autocomplete`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`answers`}),` is empty: look up answers as the user types with `,_jsx(_components.a,{href:`/surveys/qualification/search-answers`,children:`Search answers`}),`.`]})}),_jsxs(ResponseField,{name:`answers`,type:`object[]`,id:`param-answers`,children:[_jsx(_components.p,{children:`Answer options for choice questions. Empty for input questions and autocomplete questions.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsxs(_components.p,{children:[`Answer hash (UUID). Send it in `,_jsx(_components.code,{children:`answer`}),`.`]})}),_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`Answer text, in the user’s language.`})})]})]})]})]}),_jsx(ResponseField,{name:`available`,type:`integer | null`,id:`param-available`,children:_jsx(_components.p,{children:`Approximate number of questions left for this survey. It can change during qualification.`})})]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string | null`,id:`param-message`,children:_jsxs(_components.p,{children:[`On `,_jsx(_components.code,{children:`disqualified`}),` and `,_jsx(_components.code,{children:`error`}),`, the reason (for example a reason code such as `,_jsx(_components.code,{children:`\"18\"`}),`, or `,_jsx(_components.code,{children:`\"Policy required\"`}),`). Otherwise `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`advice`,type:`boolean`,id:`param-advice`,children:_jsx(_components.p,{children:`Internal flag. You can ignore it.`})}),`\n`,_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url`,children:_jsxs(_components.p,{children:[`Only on `,_jsx(_components.code,{children:`qualified`}),`. The survey entry link on the survey router (`,_jsx(_components.code,{children:`https://{router-host}/out?...`}),`). The router host depends on the survey. Send the user to this URL as is.`]})}),`\n`,_jsx(ResponseField,{name:`redirect_type`,type:`string`,id:`param-redirect-type`,children:_jsxs(_components.p,{children:[`Present with `,_jsx(_components.code,{children:`url`}),` or `,_jsx(_components.code,{children:`redirect_url`}),`. How to open the link, as configured for your app (for example `,_jsx(_components.code,{children:`new_tab`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`redirect_url`,type:`string`,id:`param-redirect-url`,children:_jsxs(_components.p,{children:[`Only on `,_jsx(_components.code,{children:`disqualified`}),`, when your app has a disqualification redirect configured.`]})}),`\n`,_jsx(ResponseField,{name:`pre_qualification_reward`,type:`number`,id:`param-pre-qualification-reward`,children:_jsx(_components.p,{children:`Reward earned by the user for answering qualification questions, when pre-qualification rewards are enabled for your app. In your app’s currency.`})}),`\n`,_jsx(ResponseField,{name:`is_consent_required`,type:`boolean`,id:`param-is-consent-required`,children:_jsxs(_components.p,{children:[`Present and `,_jsx(_components.code,{children:`true`}),` when the user must give consent before entering the survey. In this case `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`qualified`}),` and there is no `,_jsx(_components.code,{children:`url`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`redirect_survey_hash`,type:`string`,id:`param-redirect-survey-hash`,children:_jsx(_components.p,{children:`Present when the user is moved on to another survey. Continue qualification with this survey hash.`})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`App not found, app deleted, or `,_jsx(_components.code,{children:`token`}),` does not match (`,_jsx(_components.code,{children:`{\"status\":\"error\",\"message\":\"Token mismatch\"}`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsxs(_components.td,{children:[`Missing or unknown bearer token (`,_jsx(_components.code,{children:`{\"message\":\"Unauthenticated.\"}`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Unknown survey hash.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Validation error, for example `,_jsx(_components.code,{children:`survey`}),` missing.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded.`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start qualification","api":"POST /api/qualification","description":"Start the qualification process for a survey and get the first question, or an immediate result.","href":"/surveys/qualification/start"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Call this endpoint when the user clicks a survey from the `,_jsx(_components.a,{href:`/surveys/get-surveys`,children:`surveys feed`}),`. It returns one of three outcomes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`accepted`})}),`: the user must answer a question first. Show `,_jsx(_components.code,{children:`questions.current`}),` and send the answer to `,_jsx(_components.a,{href:`/surveys/qualification/submit-answer`,children:`Submit an answer`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`qualified`})}),`: send the user to `,_jsx(_components.code,{children:`url`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`disqualified`})}),`: the user does not fit this survey. Show your “no match” screen, or follow `,_jsx(_components.code,{children:`redirect_url`}),` if it is present.`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`{your-domain}`}),` with your own domain. For example, if your platform runs on `,_jsx(_components.code,{children:`example.com`}),`, the base URL is `,_jsx(_components.code,{children:`https://partners.example.com`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer {uh}`}),`. `,_jsx(_components.code,{children:`uh`}),` is the user hash returned by `,_jsx(_components.a,{href:`/surveys/get-surveys`,children:`Get surveys`}),`. You can also send `,_jsx(_components.code,{children:`Bearer {external_user_id}:{app}`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`survey`,type:`string`,required:true,id:`param-survey`,children:_jsx(_components.p,{children:`Survey hash (UUID) from the surveys feed.`})}),`\n`,_jsx(ParamField,{body:`token`,type:`string`,id:`param-token`,children:_jsx(_components.p,{children:`Your app API token. Required when secure API mode is enabled for your app.`})}),`\n`,_jsx(ParamField,{body:`policy_optin`,type:`boolean`,id:`param-policy-optin`,children:_jsxs(_components.p,{children:[`Send `,_jsx(_components.code,{children:`true`}),` once the user has accepted your privacy policy. When your app requires a policy opt-in and the user has not given it, the response is `,_jsx(_components.code,{children:`disqualified`}),` with `,_jsx(_components.code,{children:`message: \"Policy required\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`subid`,type:`string`,id:`param-subid`,children:_jsx(_components.p,{children:`Optional tracking value, stored with the survey click.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,required:true,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`accepted`}),`, `,_jsx(_components.code,{children:`qualified`}),`, `,_jsx(_components.code,{children:`disqualified`}),` or `,_jsx(_components.code,{children:`error`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`questions`,type:`object`,required:true,id:`param-questions`,children:_jsxs(Expandable,{title:`properties`,children:[_jsxs(ResponseField,{name:`current`,type:`object | null`,id:`param-current`,children:[_jsxs(_components.p,{children:[`The question to show next. `,_jsx(_components.code,{children:`null`}),` when `,_jsx(_components.code,{children:`status`}),` is not `,_jsx(_components.code,{children:`accepted`}),`.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Question hash (UUID). Send it as `,_jsx(_components.code,{children:`question`}),` in `,_jsx(_components.a,{href:`/surveys/qualification/submit-answer`,children:`Submit an answer`}),`.`]})}),_jsx(ResponseField,{name:`question`,type:`string`,id:`param-question`,children:_jsx(_components.p,{children:`Question text, in the user’s language.`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`One of `,_jsx(_components.code,{children:`single_choice`}),`, `,_jsx(_components.code,{children:`multiple_choice`}),`, `,_jsx(_components.code,{children:`input_int`}),`, `,_jsx(_components.code,{children:`input_text`}),`, `,_jsx(_components.code,{children:`input_bigtext`}),`, `,_jsx(_components.code,{children:`input_date`}),`. See `,_jsx(_components.a,{href:`/surveys/qualification/question-types`,children:`Question types`}),`.`]})}),_jsx(ResponseField,{name:`is_skippable`,type:`boolean`,id:`param-is-skippable`,children:_jsx(_components.p,{children:`Whether the user may skip this question.`})}),_jsx(ResponseField,{name:`autocomplete`,type:`boolean`,id:`param-autocomplete`,children:_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, `,_jsx(_components.code,{children:`answers`}),` is empty: look up answers as the user types with `,_jsx(_components.a,{href:`/surveys/qualification/search-answers`,children:`Search answers`}),`.`]})}),_jsxs(ResponseField,{name:`answers`,type:`object[]`,id:`param-answers`,children:[_jsx(_components.p,{children:`Answer options for choice questions. Empty for input questions and autocomplete questions.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id-1`,children:_jsxs(_components.p,{children:[`Answer hash (UUID). Send it in `,_jsx(_components.code,{children:`answer`}),`.`]})}),_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`Answer text, in the user’s language.`})})]})]})]})]}),_jsx(ResponseField,{name:`available`,type:`integer | null`,id:`param-available`,children:_jsx(_components.p,{children:`Approximate number of questions left for this survey. It can change during qualification.`})})]})}),`\n`,_jsx(ResponseField,{name:`message`,type:`string | null`,id:`param-message`,children:_jsxs(_components.p,{children:[`On `,_jsx(_components.code,{children:`disqualified`}),` and `,_jsx(_components.code,{children:`error`}),`, the reason (for example a reason code such as `,_jsx(_components.code,{children:`\"18\"`}),`, or `,_jsx(_components.code,{children:`\"Policy required\"`}),`). Otherwise `,_jsx(_components.code,{children:`null`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`advice`,type:`boolean`,id:`param-advice`,children:_jsx(_components.p,{children:`Internal flag. You can ignore it.`})}),`\n`,_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url`,children:_jsxs(_components.p,{children:[`Only on `,_jsx(_components.code,{children:`qualified`}),`. The survey entry link on the survey router (`,_jsx(_components.code,{children:`https://{router-host}/out?...`}),`). The router host depends on the survey. Send the user to this URL as is.`]})}),`\n`,_jsx(ResponseField,{name:`redirect_type`,type:`string`,id:`param-redirect-type`,children:_jsxs(_components.p,{children:[`Present with `,_jsx(_components.code,{children:`url`}),` or `,_jsx(_components.code,{children:`redirect_url`}),`. How to open the link, as configured for your app (for example `,_jsx(_components.code,{children:`new_tab`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`redirect_url`,type:`string`,id:`param-redirect-url`,children:_jsxs(_components.p,{children:[`Only on `,_jsx(_components.code,{children:`disqualified`}),`, when your app has a disqualification redirect configured.`]})}),`\n`,_jsx(ResponseField,{name:`pre_qualification_reward`,type:`number`,id:`param-pre-qualification-reward`,children:_jsx(_components.p,{children:`Reward earned by the user for answering qualification questions, when pre-qualification rewards are enabled for your app. In your app’s currency.`})}),`\n`,_jsx(ResponseField,{name:`is_consent_required`,type:`boolean`,id:`param-is-consent-required`,children:_jsxs(_components.p,{children:[`Present and `,_jsx(_components.code,{children:`true`}),` when the user must give consent before entering the survey. In this case `,_jsx(_components.code,{children:`status`}),` is `,_jsx(_components.code,{children:`qualified`}),` and there is no `,_jsx(_components.code,{children:`url`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`redirect_survey_hash`,type:`string`,id:`param-redirect-survey-hash`,children:_jsx(_components.p,{children:`Present when the user is moved on to another survey. Continue qualification with this survey hash.`})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`HTTP`}),_jsx(_components.th,{children:`When`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsxs(_components.td,{children:[`App not found, app deleted, or `,_jsx(_components.code,{children:`token`}),` does not match (`,_jsx(_components.code,{children:`{\"status\":\"error\",\"message\":\"Token mismatch\"}`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsxs(_components.td,{children:[`Missing or unknown bearer token (`,_jsx(_components.code,{children:`{\"message\":\"Unauthenticated.\"}`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`404`})}),_jsx(_components.td,{children:`Unknown survey hash.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`422`})}),_jsxs(_components.td,{children:[`Validation error, for example `,_jsx(_components.code,{children:`survey`}),` missing.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:`Rate limit exceeded.`})]})]})]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://partners.{your-domain}/api/qualification`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer 0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"survey\": \"a4df4600-df48-4286-990d-fa68db595f44\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`Question (single choice)`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"accepted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"current\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0d8263ff-07b9-4097-b228-517eb1a35b2d\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"question\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Are you of Hispanic, Latino, or Spanish origin?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"single_choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"is_skippable\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"autocomplete\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"answers\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"c18689dc-6379-4c86-92f6-692f67c3c522\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"No, not of Hispanic, Latino, or Spanish origin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"5b1c2f4e-8a0e-4c2f-9a33-2f0d6f1b7c11\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Yes, Mexican, Mexican American, Chicano\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"9e7d3a10-1f2b-4c5d-8e6f-7a8b9c0d1e2f\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Yes, Cuban\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"advice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Qualified`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"qualified\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"current\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"advice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://{router-host}/out?sh=a4df4600-df48-4286-990d-fa68db595f44\u0026uh=0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f\u0026p=web\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redirect_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"new_tab\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Disqualified`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disqualified\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"questions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"current\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"18\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"advice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Start qualification","api":"POST /api/qualification","description":"Start the qualification process for a survey and get the first question, or an immediate result.","href":"/surveys/qualification/start"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Headers","slug":"headers","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"7\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://partners.{your-domain}/api/qualification\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Authorization: Bearer 0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'Content-Type: application/json'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --data\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"survey\": \"a4df4600-df48-4286-990d-fa68db595f44\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"Question (single choice)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"accepted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"questions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"current\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"0d8263ff-07b9-4097-b228-517eb1a35b2d\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"question\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Are you of Hispanic, Latino, or Spanish origin?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"single_choice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"is_skippable\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"autocomplete\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"answers\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"c18689dc-6379-4c86-92f6-692f67c3c522\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"No, not of Hispanic, Latino, or Spanish origin\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"5b1c2f4e-8a0e-4c2f-9a33-2f0d6f1b7c11\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Yes, Mexican, Mexican American, Chicano\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"9e7d3a10-1f2b-4c5d-8e6f-7a8b9c0d1e2f\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"text\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Yes, Cuban\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"available\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"advice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Qualified","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"8\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"qualified\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"questions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"current\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"available\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"advice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://{router-host}/out?sh=a4df4600-df48-4286-990d-fa68db595f44\u0026#x26;uh=0b6c1a3e-5d1f-4c1e-9d0a-2f3b4c5d6e7f\u0026#x26;p=web\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"redirect_type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"new_tab\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Disqualified","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"disqualified\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"questions\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"current\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"available\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"18\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"advice\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Start qualification","path":"/api/qualification","servers":[{"url":"https://partners.{your-domain}"}],"method":"post","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer {uh}` . `uh` is the user hash returned by Get surveys . You can also send `Bearer {external_user_id}:{app}` .","required":true}]}},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"survey":[{"type":"string","description":"Survey hash (UUID) from the surveys feed.","required":true}],"token":[{"type":"string","description":"Your app API token. Required when secure API mode is enabled for your app."}],"policy_optin":[{"type":"boolean","description":"Send `true` once the user has accepted your privacy policy. When your app requires a policy opt-in and the user has not given it, the response is `disqualified` with `message: \"Policy required\"` ."}],"subid":[{"type":"string","description":"Optional tracking value, stored with the survey click."}]}}],"examples":{"example":{"value":{"survey":"\u003cstring>","token":"\u003cstring>","policy_optin":true,"subid":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"status":[{"type":"string","description":"`accepted` , `qualified` , `disqualified` or `error` .","required":true}],"questions":[{"type":"object","properties":{"current":[{"type":"object","properties":{"id":[{"type":"string","description":"Question hash (UUID). Send it as `question` in Submit an answer ."}],"question":[{"type":"string","description":"Question text, in the user’s language."}],"type":[{"type":"string","description":"One of `single_choice` , `multiple_choice` , `input_int` , `input_text` , `input_bigtext` , `input_date` . See Question types ."}],"is_skippable":[{"type":"boolean","description":"Whether the user may skip this question."}],"autocomplete":[{"type":"boolean","description":"When `true` , `answers` is empty: look up answers as the user types with Search answers ."}],"answers":[{"type":"array","items":[{"type":"object","properties":{"id":[{"type":"string","description":"Answer hash (UUID). Send it in `answer` ."}],"text":[{"type":"string","description":"Answer text, in the user’s language."}]}}],"description":"Answer options for choice questions. Empty for input questions and autocomplete questions."}]},"description":"The question to show next. `null` when `status` is not `accepted` ."}],"available":[{"type":"object","properties":{},"description":"Approximate number of questions left for this survey. It can change during qualification."}]},"required":true}],"message":[{"type":"object","properties":{},"description":"On `disqualified` and `error` , the reason (for example a reason code such as `\"18\"` , or `\"Policy required\"` ). Otherwise `null` ."}],"advice":[{"type":"boolean","description":"Internal flag. You can ignore it."}],"url":[{"type":"string","description":"Only on `qualified` . The survey entry link on the survey router ( `https://{router-host}/out?...` ). The router host depends on the survey. Send the user to this URL as is."}],"redirect_type":[{"type":"string","description":"Present with `url` or `redirect_url` . How to open the link, as configured for your app (for example `new_tab` )."}],"redirect_url":[{"type":"string","description":"Only on `disqualified` , when your app has a disqualification redirect configured."}],"pre_qualification_reward":[{"type":"number","description":"Reward earned by the user for answering qualification questions, when pre-qualification rewards are enabled for your app. In your app’s currency."}],"is_consent_required":[{"type":"boolean","description":"Present and `true` when the user must give consent before entering the survey. In this case `status` is `qualified` and there is no `url` ."}],"redirect_survey_hash":[{"type":"string","description":"Present when the user is moved on to another survey. Continue qualification with this survey hash."}]}}],"examples":{"example":{"value":{"status":"\u003cstring>","questions":{"current":{"id":"\u003cstring>","question":"\u003cstring>","type":"\u003cstring>","is_skippable":true,"autocomplete":true,"answers":[{"id":"\u003cstring>","text":"\u003cstring>"}]},"available":{}},"message":{},"advice":true,"url":"\u003cstring>","redirect_type":"\u003cstring>","redirect_url":"\u003cstring>","pre_qualification_reward":123,"is_consent_required":true,"redirect_survey_hash":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"primeinsights","siteName":"Prime Insights","title":"Start qualification - Prime Insights","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-23T14:26:39.914Z","originalFileLocation":"surveys/qualification/start.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Start the qualification process for a survey and get the first question, or an immediate result.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Prime Insights\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Start qualification - Prime Insights\">\u003cmeta data-mint-head property=\"og:description\" content=\"Start the qualification process for a survey and get the first question, or an immediate result.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Prime Insights\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs-saas.primeearn.com/surveys/qualification/start\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://primeinsights.mintlify.site/_mintlify/api/og/v2?division=Qualification\u0026amp;title=Start+qualification\u0026amp;description=Start+the+qualification+process+for+a+survey+and+get+the+first+question%2C+or+an+immediate+result.\u0026amp;theme=be394bdd824f66fd2549706a\u0026amp;signature=5409ff6b1d4b0d9a1355445cdf74c033bd2b06afde94096430edeb65d526108b\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Start qualification - Prime Insights\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Start the qualification process for a survey and get the first question, or an immediate result.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://primeinsights.mintlify.site/_mintlify/api/og/v2?division=Qualification\u0026amp;title=Start+qualification\u0026amp;description=Start+the+qualification+process+for+a+survey+and+get+the+first+question%2C+or+an+immediate+result.\u0026amp;theme=be394bdd824f66fd2549706a\u0026amp;signature=5409ff6b1d4b0d9a1355445cdf74c033bd2b06afde94096430edeb65d526108b\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/primeinsights/26PxvF8d5oJl0n0l/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Prime Insights\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs-saas.primeearn.com/surveys/qualification/start\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/surveys/qualification/start.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs-saas.primeearn.com/#organization\",\"name\":\"Prime Insights\",\"url\":\"https://docs-saas.primeearn.com\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs-saas.primeearn.com#website\",\"name\":\"Prime Insights\",\"url\":\"https://docs-saas.primeearn.com\",\"publisher\":{\"@id\":\"https://docs-saas.primeearn.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs-saas.primeearn.com/surveys/qualification/start#webpage\",\"url\":\"https://docs-saas.primeearn.com/surveys/qualification/start\",\"name\":\"Start qualification\",\"description\":\"Start the qualification process for a survey and get the first question, or an immediate result.\",\"dateModified\":\"2026-11-23T14:26:39.914Z\",\"isPartOf\":{\"@id\":\"https://docs-saas.primeearn.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs-saas.primeearn.com/surveys/qualification/start#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs-saas.primeearn.com/surveys/qualification/start#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prime Insights\",\"item\":\"https://docs-saas.primeearn.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start qualification\",\"item\":\"https://docs-saas.primeearn.com/surveys/qualification/start\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs-saas.primeearn.com/surveys/qualification/start#apireference\",\"headline\":\"Start qualification\",\"name\":\"Start qualification\",\"description\":\"Start the qualification process for a survey and get the first question, or an immediate result.\",\"url\":\"https://docs-saas.primeearn.com/surveys/qualification/start\",\"mainEntityOfPage\":{\"@id\":\"https://docs-saas.primeearn.com/surveys/qualification/start#webpage\"},\"dateModified\":\"2026-11-23T14:26:39.914Z\",\"publisher\":{\"@id\":\"https://docs-saas.primeearn.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs-saas.primeearn.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Prime Insights\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Prime Insights\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/surveys/qualification/start.md","siteName":"Prime Insights","nav":{"global":null,"tabs":[{"tab":"Surveys","groups":[{"group":"Get started","pages":[{"title":"Overview","href":"/surveys/overview"},{"title":"Authentication","href":"/surveys/authentication"}]},{"group":"Surveys","pages":[{"title":"Get surveys","api":"GET /api/surveys","href":"/surveys/get-surveys"},{"title":"Surveys list","api":"GET /api/surveys/list","description":"List all surveys available to your app in a country, without a user.","href":"/surveys/surveys-list"}]},{"group":"Qualification","pages":[{"title":"Start qualification","api":"POST /api/qualification","href":"/surveys/qualification/start"},{"title":"Submit an answer","api":"POST /api/answers","description":"Send the user's answer to the current qualification question and get the next step.","href":"/surveys/qualification/submit-answer"},{"title":"Search answers","api":"GET /api/question/{question}/answers","href":"/surveys/qualification/search-answers"},{"title":"Question types","href":"/surveys/qualification/question-types"}]}]}]},"basePath":"","title":"Start qualification - Prime Insights","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js"]}