getSecurityToken
andgetSecurityResult
), the Frontend SDK provides optional checks to add more protection and validation:includeResults
option to control whether results are visible in the frontend or only available to your backend.isAIUsageDetected()
check after the visitor has answered at least one open-ended question. This provides more context for our detection models and increases the likelihood of accurately flagging AI usage during the session.isAIUsageDetected(config)
projectId
(required)visitorId
(optional)// When includeResults is false on init()
{ "token": "token-uuid" }
// When includeResults is true on init()
{
"token": "token-uuid",
"result": {
"isAIUsageDetected": true
}
}
getQualityQuestions(config?)
method retrieves 4 randomized validation questions:checkQualityQuestions(config)
.respondentType
(required) – see supported typeslanguage
(optional, default = en) – see supported languages[
{
"id": "7523cb83-139f-4754-8880-eb8edea07ff0",
"text": "Which of the following best supports long-term cash flow stability during periods of economic uncertainty?",
"type": "single_select",
"options": [
{ "id": "d0f7ede0-5ba3-4704-a63a-19d665fc8097", "text": "Delaying discretionary capital expenditures" },
{ "id": "3a18cfec-eadb-402f-83bb-4c9c642fd399", "text": "Relying on short-term borrowing for payroll" },
{ "id": "631e9542-85f4-4760-a1c0-94f5d041a0b2", "text": "Increasing dividend payouts" },
{ "id": "80da9a11-5b9a-4ed9-8e78-4e74ab35e787", "text": "Reducing credit terms for key customers" }
]
},
{
"id": "d7dc7848-e6f7-4075-b382-3a839550d8d1",
"text": "Which of the following is not a typical objective of a finance function in enterprise risk management?",
"type": "single_select",
"options": [
{ "id": "a924935a-7a67-4344-b157-12a03959c4ca", "text": "Maximizing short-term stock price through one-time gains" },
{ "id": "dba4b297-6b1d-4466-b9d9-00e46d61f615", "text": "Ensuring proactive identification of financial exposures" },
{ "id": "f67eae39-cc18-418d-88c8-484ccb9812b2", "text": "Reducing volatility in earnings" },
{ "id": "58115dc3-c4bc-41c1-8ddf-8ec1f3714e19", "text": "Supporting continuity planning during financial disruption" }
]
},
{
"id": "9326b68d-99cd-4f54-ab27-7c01ed90b343",
"text": "A reverse factoring arrangement primarily benefits which party first in the transaction?",
"type": "single_select",
"options": [
{ "id": "276d2c98-8b55-4c7f-8cd5-d68e45df5312", "text": "The supplier" },
{ "id": "1fce3e4f-94bf-44f0-ab90-df2046131c6d", "text": "The bank" },
{ "id": "f2798c65-9234-44b8-a017-d681e3b6db81", "text": "The customer’s sales team" },
{ "id": "ec918d91-06fc-45df-914a-b901ed926c2d", "text": "The IT department" }
]
},
{
"id": "7b460d63-69e6-41ad-b6eb-6ebe28a45f9c",
"text": "List three considerations you take into account before approving a large capital investment.",
"type": "open_end"
}
]
checkQualityQuestions(config)
method validates the visitor’s answers to quality control questions.projectId
(required)questions
(required) – list of { questionId, answers }
visitorId
(optional)// When includeResults is false on init()
{ "token": "token-uuid" }
// When includeResults is true on init()
{
"token": "token-uuid",
"result": {
"isQualityRejected": false
}
}
respondentType
must be one of:Value | Name |
---|---|
hr-manager-director | HR Manager / Director |
web-developer | Web Developer |
software-engineer | Software Engineer |
it-director | IT Director |
business-administrator | Business Administrator |
accounts-payable-manager | Accounts Payable Manager |
accountant | Accountant |
finance-director | Finance Director |
small-business-owner | Small Business Owner |
general-contractor | General Contractor |
marketing-manager-director | Marketing Manager / Director |
consumer-shopper | Consumer / Shopper |
travel | Travel |
entertainment | Entertainment |
finance-and-banking | Finance & Banking |
general | General |
b2b-white-collar | B2B White Collar |
b2b-blue-collar | B2B Blue Collar |
lawyer | Lawyer |
language
parameter accepts the following codes. Default = en
.Code | Language |
---|---|
ar | Arabic |
bn | Bengali |
de | German |
en | English |
es | Spanish |
fr | French |
hi | Hindi |
id | Indonesian |
it | Italian |
ja | Japanese |
ko | Korean |
ms | Malay |
nl | Dutch |
pt | Portuguese |
ru | Russian |
yue | Cantonese |
zh | Chinese |
LanguageCodes
and QualityQuestionsRespondentTypes
.isQualityRejected
or isAIUsageDetected
is true
, the session will be classified as bad in the Security Result.