getSecurityToken
) to later retrieve results securely on your backend, orgetSecurityResult
) directly in your frontend.getSecurityToken
, getSecurityResult
, isAIUsageDetected
, checkQualityQuestions
.getQualityQuestions
.Method | Purpose | Billable* | Returns |
---|---|---|---|
getSecurityToken() | Generates a token (recommended: backend retrieves result) | ✅ | { token } |
getSecurityResult() | Retrieves Security Result directly in frontend | ✅ | { token, result } |
isAIUsageDetected() | Detects AI tools or behaviors during the session | ✅ | { token } (or { token, result } if includeResults=true ) |
checkQualityQuestions() | Validates answers to quality questions | ✅ | { token } (or { token, result } if includeResults=true ) |
getQualityQuestions() | Retrieves 4 randomized validation questions (3 multiple-choice, 1 open-ended) | ❌ | Question[] |
isAIUsageDetected
, checkQualityQuestions
) rely on the includeResults
setting to control whether their results are visible on the frontend.init()
. The API allows you to call methods in any order, and you can invoke them multiple times within the same session.isAIUsageDetected()
afterwards. This maximizes the effectiveness of AI Detection while still giving you flexibility to call it again later in the session if needed.