{
"message": "Something went wrong. please try again!!"
}
Verify Frontend SDK token
Verify token
Validates user details by exchanging the token obtained from the otplessUser object for the user’s information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OTPLESS","colors":{"primary":"#2759CD","light":"#8DB0FB","dark":"#113997"},"logo":{"light":"https://mintcdn.com/otpless-96/_aEz_FhlLI0izHsE/logo/otpless-dark.svg?fit=max\u0026auto=format\u0026n=_aEz_FhlLI0izHsE\u0026q=85\u0026s=c211521d204eaa2c4148109d50d19edd","dark":"https://mintcdn.com/otpless-96/_aEz_FhlLI0izHsE/logo/otpless-light.svg?fit=max\u0026auto=format\u0026n=_aEz_FhlLI0izHsE\u0026q=85\u0026s=3fd27e254b68526fa18064c62467b18a","href":"https://otpless.com/"},"favicon":"https://mintcdn.com/otpless-96/_aEz_FhlLI0izHsE/favicon.svg?fit=max\u0026auto=format\u0026n=_aEz_FhlLI0izHsE\u0026q=85\u0026s=b0f8f3a3e4b70cf463375510df120336","background":{"image":"https://mintcdn.com/otpless-96/MG5MLCTUP00EUtvA/images/background-documentation-min.png?fit=max\u0026auto=format\u0026n=MG5MLCTUP00EUtvA\u0026q=85\u0026s=c85d6a33e17f625c33c28433c7a595cf","color":{"light":"#F9F9F9","dark":"#0c101f"}},"navbar":{"links":[{"href":"https://otpless.com/support","label":"Contact Support"}],"primary":{"type":"button","label":"Sign in","href":"https://otpless.com/dashboard"}},"footer":{"socials":{"x":"https://x.com/otpless","github":"https://github.com/orgs/otpless-tech/repositories","linkedin":"https://www.linkedin.com/company/otpless"}},"seo":{"indexing":"all"},"contextual":{"options":["copy","view","chatgpt","claude","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"otpless-96","hasAudioNarration":false,"actualSubdomain":"otpless-96","customDomains":["otpless.com"],"gitSource":{"type":"github","owner":"otpless-tech","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb487a7ebcfcb7ce77c284","collectionId":"615c67d8-2ad1-47c5-9b47-83eedd597d3a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb487a7ebcfcb7ce77c284"},"feedback":{"thumbs":false,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adb487a7ebcfcb7ce77c284","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Frontend SDKs","count":77},{"language":"default","tag":"References","count":61},{"language":"default","tag":"Native/Mobile SDKs","count":51},{"language":"default","tag":"Web SDKs","count":20},{"language":"default","tag":"Android","count":14},{"language":"default","tag":"Server-Initiated Auth","count":12},{"language":"default","tag":"SDK based Integration","count":12},{"language":"default","tag":"Ionic","count":10},{"language":"default","tag":"Silent Network Auth","count":9},{"language":"default","tag":"SNA-SDK based Integration","count":9}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"deflection":{"enabled":true,"email":"help@otpless.com"}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"button_style.css","content":".activate-button{display:inline-block;padding:10px 20px;font-size:14px;font-weight:400;color:#fff;border-radius:4px;text-decoration:none;text-align:center;transition:all .3s ease;cursor:pointer;background:#113997}.activate-button p{margin:0}.activate-button:focus,.activate-button:hover{background-color:#113997e1;color:#fff;text-decoration:none;cursor:pointer}.activate-button:active{background-color:#0a3495;box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}"}],"page":{"pagePath":"api-reference/endpoint/verifytoken/verify-token-with-secure-data","slug":"/api-reference/endpoint/verifytoken/verify-token-with-secure-data","pageMetadata":{"title":"Verify token","openapi":"POST /auth/v1/validate/token","description":"Validates user details by exchanging the token obtained from the otplessUser object for the user's information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.","href":"/api-reference/endpoint/verifytoken/verify-token-with-secure-data"},"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: \"Validates user details by exchanging the token obtained from the otplessUser object for the user’s information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Verify token","openapi":"POST /auth/v1/validate/token","description":"Validates user details by exchanging the token obtained from the otplessUser object for the user's information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.","href":"/api-reference/endpoint/verifytoken/verify-token-with-secure-data"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/otpless-96/b09595f2b6159bec/script.js"],"openApiReferenceData":{"operation":{"summary":"Verify SDK Token with secure data","operationId":"verifySdkTokenWithSecureData","description":"Validates user details by exchanging the token obtained from the otplessUser object for the user's information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.","x-codeSamples":[{"lang":"shell","label":"cURL","source":"curl --location 'https://user-auth.otpless.app/auth/v1/validate/token' \\\n --header 'Content-Type: application/json' \\\n --header 'clientId: YOUR_CLIENT_ID' \\\n --header 'clientSecret: YOUR_CLIENT_SECRET' \\\n --data '{\n \"token\": \"RECEIVED_TOKEN_FROM_OTPLESS\"\n }'\n"}],"requestBody":"9c2a6f86-d084-4266-a473-6be328503446","responses":{"200":"0a52f370-4c2c-4b36-9de4-81239afbdd0a","400":"ff2687ee-676f-45c5-b0b7-c2fe51da7439","401":"7112ed7d-38da-426e-9bcb-9117f084eb70","500":"0fdd9416-70ed-4a4c-972f-9ecee73e5ae6"},"method":"post","type":"path","servers":["7d47a587-b9be-496d-a9d7-11584e259346"],"security":["2f80b184-05d4-4a72-9bcc-35b1d13eca9c"],"path":"/auth/v1/validate/token","baseUrlOptions":["https://user-auth.otpless.app"],"title":"Verify SDK Token with secure data","codeSamples":[{"label":"cURL","lang":"shell","source":"curl --location 'https://user-auth.otpless.app/auth/v1/validate/token' \\\n --header 'Content-Type: application/json' \\\n --header 'clientId: YOUR_CLIENT_ID' \\\n --header 'clientSecret: YOUR_CLIENT_SECRET' \\\n --data '{\n \"token\": \"RECEIVED_TOKEN_FROM_OTPLESS\"\n }'\n"}],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"description":"Payload containing the token received from otpless authentication for verification.","required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"Token received from otplessUser object.","isRequired":true,"uniqueKey":"token","typeLabel":"string"}},"required":["token"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"token":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"0a52f370-4c2c-4b36-9de4-81239afbdd0a":{"description":"The user's information was successfully retrieved.","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","example":"TOKEN_VALUE","uniqueKey":"token","typeLabel":"string"},"status":{"type":"string","example":"SUCCESS","uniqueKey":"status","typeLabel":"string"},"userId":{"type":"string","example":"USER_ID","uniqueKey":"userId","typeLabel":"string"},"timestamp":{"type":"string","format":"date-time","example":"2024-10-15T14:07:14Z","uniqueKey":"timestamp","typeLabel":"string\u003cdate-time>"},"identities":{"type":"array","items":{"type":"object","properties":{"identityType":{"type":"string","example":"MOBILE","uniqueKey":"identities.items.[INDEX].identityType","typeLabel":"string"},"identityValue":{"type":"string","example":"919999999999","uniqueKey":"identities.items.[INDEX].identityValue","typeLabel":"string"},"channel":{"type":"string","example":"OAUTH","uniqueKey":"identities.items.[INDEX].channel","typeLabel":"string"},"methods":{"type":"array","items":{"type":"string","example":"TRUE_CALLER","uniqueKey":"identities.items.[INDEX].methods.items.[INDEX]","typeLabel":"string"},"uniqueKey":"identities.items.[INDEX].methods","typeLabel":"string[]"},"verified":{"type":"boolean","example":true,"uniqueKey":"identities.items.[INDEX].verified","typeLabel":"boolean"},"verifiedAt":{"type":"string","format":"date-time","example":"2024-10-15T14:07:14Z","uniqueKey":"identities.items.[INDEX].verifiedAt","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"identities.items.[INDEX]","typeLabel":"object"},"uniqueKey":"identities","typeLabel":"object[]"},"network":{"type":"object","properties":{"ip":{"type":"string","example":"103.246.62.146","uniqueKey":"network.ip","typeLabel":"string"},"timezone":{"type":"string","example":"Asia/Kolkata","uniqueKey":"network.timezone","typeLabel":"string"},"ipLocation":{"type":"object","properties":{"accuracyRadius":{"type":"integer","example":1000,"uniqueKey":"network.ipLocation.accuracyRadius","typeLabel":"integer"},"city":{"type":"object","uniqueKey":"network.ipLocation.city","typeLabel":"object"},"subdivisions":{"type":"object","uniqueKey":"network.ipLocation.subdivisions","typeLabel":"object"},"country":{"type":"object","properties":{"code":{"type":"string","example":"IN","uniqueKey":"network.ipLocation.country.code","typeLabel":"string"},"name":{"type":"string","example":"India","uniqueKey":"network.ipLocation.country.name","typeLabel":"string"}},"uniqueKey":"network.ipLocation.country","typeLabel":"object"},"continent":{"type":"object","properties":{"code":{"type":"string","example":"AS","uniqueKey":"network.ipLocation.continent.code","typeLabel":"string"}},"uniqueKey":"network.ipLocation.continent","typeLabel":"object"},"latitude":{"type":"number","example":21.9974,"uniqueKey":"network.ipLocation.latitude","typeLabel":"number"},"longitude":{"type":"number","example":79.0011,"uniqueKey":"network.ipLocation.longitude","typeLabel":"number"},"asn":{"type":"object","properties":{"asn":{"type":"string","example":"139570","uniqueKey":"network.ipLocation.asn.asn","typeLabel":"string"},"name":{"type":"string","example":"Spectrum Internet Services","uniqueKey":"network.ipLocation.asn.name","typeLabel":"string"},"network":{"type":"string","example":"103.246.62.0/23","uniqueKey":"network.ipLocation.asn.network","typeLabel":"string"}},"uniqueKey":"network.ipLocation.asn","typeLabel":"object"}},"uniqueKey":"network.ipLocation","typeLabel":"object"}},"uniqueKey":"network","typeLabel":"object"},"deviceInfo":{"type":"object","properties":{"userAgent":{"type":"string","example":"Mozilla/5.0 (Linux; Android 14; RMX3998 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.100 Mobile Safari/537.36 otplesssdk","uniqueKey":"deviceInfo.userAgent","typeLabel":"string"},"platform":{"type":"string","example":"Linux aarch64","uniqueKey":"deviceInfo.platform","typeLabel":"string"},"vendor":{"type":"string","example":"Google Inc.","uniqueKey":"deviceInfo.vendor","typeLabel":"string"},"browser":{"type":"string","example":"Chrome","uniqueKey":"deviceInfo.browser","typeLabel":"string"},"connection":{"type":"string","example":"4g","uniqueKey":"deviceInfo.connection","typeLabel":"string"},"language":{"type":"string","example":"en-GB","uniqueKey":"deviceInfo.language","typeLabel":"string"},"cookieEnabled":{"type":"boolean","example":true,"uniqueKey":"deviceInfo.cookieEnabled","typeLabel":"boolean"},"screenWidth":{"type":"integer","example":360,"uniqueKey":"deviceInfo.screenWidth","typeLabel":"integer"},"screenHeight":{"type":"integer","example":800,"uniqueKey":"deviceInfo.screenHeight","typeLabel":"integer"},"screenColorDepth":{"type":"integer","example":24,"uniqueKey":"deviceInfo.screenColorDepth","typeLabel":"integer"},"devicePixelRatio":{"type":"number","example":3,"uniqueKey":"deviceInfo.devicePixelRatio","typeLabel":"number"},"timezoneOffset":{"type":"integer","example":-330,"uniqueKey":"deviceInfo.timezoneOffset","typeLabel":"integer"},"cpuArchitecture":{"type":"string","example":"8-core","uniqueKey":"deviceInfo.cpuArchitecture","typeLabel":"string"},"fontFamily":{"type":"string","example":"sans-serif","uniqueKey":"deviceInfo.fontFamily","typeLabel":"string"},"deviceId":{"type":"string","example":"DEVICE_ID","uniqueKey":"deviceInfo.deviceId","typeLabel":"string"},"browserInfo":{"type":"object","properties":{"browserName":{"type":"string","example":"Other","uniqueKey":"deviceInfo.browserInfo.browserName","typeLabel":"string"},"os":{"type":"string","example":"Android","uniqueKey":"deviceInfo.browserInfo.os","typeLabel":"string"},"osVersion":{"type":"string","example":"14","uniqueKey":"deviceInfo.browserInfo.osVersion","typeLabel":"string"},"device":{"type":"string","example":"Generic Smartphone","uniqueKey":"deviceInfo.browserInfo.device","typeLabel":"string"}},"uniqueKey":"deviceInfo.browserInfo","typeLabel":"object"}},"uniqueKey":"deviceInfo","typeLabel":"object"},"secureInfo":{"type":"object","properties":{"incognito":{"type":"boolean","example":false,"uniqueKey":"secureInfo.incognito","typeLabel":"boolean"},"confidence":{"type":"object","properties":{"score":{"type":"integer","example":1,"uniqueKey":"secureInfo.confidence.score","typeLabel":"integer"},"revision":{"type":"string","example":"v1.1","uniqueKey":"secureInfo.confidence.revision","typeLabel":"string"}},"uniqueKey":"secureInfo.confidence","typeLabel":"object"},"bot":{"type":"object","properties":{"result":{"type":"string","example":"notDetected","uniqueKey":"secureInfo.bot.result","typeLabel":"string"}},"uniqueKey":"secureInfo.bot","typeLabel":"object"},"rootApps":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.rootApps.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.rootApps","typeLabel":"object"},"emulator":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.emulator.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.emulator","typeLabel":"object"},"vpn":{"type":"object","properties":{"result":{"type":"boolean","example":true,"uniqueKey":"secureInfo.vpn.result","typeLabel":"boolean"},"originCountry":{"type":"string","example":"unknown","uniqueKey":"secureInfo.vpn.originCountry","typeLabel":"string"},"methods":{"type":"object","properties":{"timezoneMismatch":{"type":"boolean","example":false,"uniqueKey":"secureInfo.vpn.methods.timezoneMismatch","typeLabel":"boolean"},"publicVPN":{"type":"boolean","example":true,"uniqueKey":"secureInfo.vpn.methods.publicVPN","typeLabel":"boolean"}},"uniqueKey":"secureInfo.vpn.methods","typeLabel":"object"}},"uniqueKey":"secureInfo.vpn","typeLabel":"object"},"tampering":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.tampering.result","typeLabel":"boolean"},"anomalyScore":{"type":"integer","example":0,"uniqueKey":"secureInfo.tampering.anomalyScore","typeLabel":"integer"}},"uniqueKey":"secureInfo.tampering","typeLabel":"object"},"jailbroken":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.jailbroken.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.jailbroken","typeLabel":"object"},"clonedApp":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.clonedApp.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.clonedApp","typeLabel":"object"},"factoryReset":{"type":"object","properties":{"time":{"type":"string","format":"date-time","example":"2024-10-09T10:53:31Z","uniqueKey":"secureInfo.factoryReset.time","typeLabel":"string\u003cdate-time>"},"timestamp":{"type":"integer","example":1728471211,"uniqueKey":"secureInfo.factoryReset.timestamp","typeLabel":"integer"}},"uniqueKey":"secureInfo.factoryReset","typeLabel":"object"},"frida":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.frida.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.frida","typeLabel":"object"},"suspectScore":{"type":"object","properties":{"result":{"type":"integer","example":5,"uniqueKey":"secureInfo.suspectScore.result","typeLabel":"integer"}},"uniqueKey":"secureInfo.suspectScore","typeLabel":"object"},"privacySettings":{"type":"object","properties":{"result":{"type":"boolean","example":false,"uniqueKey":"secureInfo.privacySettings.result","typeLabel":"boolean"}},"uniqueKey":"secureInfo.privacySettings","typeLabel":"object"}},"uniqueKey":"secureInfo","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"token":"TOKEN_VALUE","status":"SUCCESS","userId":"USER_ID","timestamp":"2024-10-15T14:07:14Z","identities":[{"identityType":"MOBILE","identityValue":"919999999999","channel":"OAUTH","methods":["TRUE_CALLER"],"verified":true,"verifiedAt":"2024-10-15T14:07:14Z"}],"network":{"ip":"103.246.62.146","timezone":"Asia/Kolkata","ipLocation":{"accuracyRadius":1000,"city":{},"subdivisions":{},"country":{"code":"IN","name":"India"},"continent":{"code":"AS"},"latitude":21.9974,"longitude":79.0011,"asn":{"asn":"139570","name":"Spectrum Internet Services","network":"103.246.62.0/23"}}},"deviceInfo":{"userAgent":"Mozilla/5.0 (Linux; Android 14; RMX3998 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/129.0.6668.100 Mobile Safari/537.36 otplesssdk","platform":"Linux aarch64","vendor":"Google Inc.","browser":"Chrome","connection":"4g","language":"en-GB","cookieEnabled":true,"screenWidth":360,"screenHeight":800,"screenColorDepth":24,"devicePixelRatio":3,"timezoneOffset":-330,"cpuArchitecture":"8-core","fontFamily":"sans-serif","deviceId":"DEVICE_ID","browserInfo":{"browserName":"Other","os":"Android","osVersion":"14","device":"Generic Smartphone"}},"secureInfo":{"incognito":false,"confidence":{"score":1,"revision":"v1.1"},"bot":{"result":"notDetected"},"rootApps":{"result":false},"emulator":{"result":false},"vpn":{"result":true,"originCountry":"unknown","methods":{"timezoneMismatch":false,"publicVPN":true}},"tampering":{"result":false,"anomalyScore":0},"jailbroken":{"result":false},"clonedApp":{"result":false},"factoryReset":{"time":"2024-10-09T10:53:31Z","timestamp":1728471211},"frida":{"result":false},"suspectScore":{"result":5},"privacySettings":{"result":false}}}}},"exampleType":"generated"}},"exampleType":"generated"},"ff2687ee-676f-45c5-b0b7-c2fe51da7439":{"description":"Bad Request - The provided token has expired.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message detailing the reason for the failure.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Invalid Request","errorCode":"7114","description":"Request error: Invalid token"},"examples":{"Example":{"title":"Example","value":{"message":"Invalid Request","errorCode":"7114","description":"Request error: Invalid token"}}},"exampleType":"examples"}},"exampleType":"examples"},"7112ed7d-38da-426e-9bcb-9117f084eb70":{"description":"Unauthorized - Invalid client credentials.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message detailing the reason for the failure.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Expired","errorCode":"7301","description":"Request error: Token is expired"},"examples":{"Example":{"title":"Example","value":{"message":"Expired","errorCode":"7301","description":"Request error: Token is expired"}}},"exampleType":"examples"}},"exampleType":"examples"},"0fdd9416-70ed-4a4c-972f-9ecee73e5ae6":{"description":"Internal Server Error - An unexpected error occurred while processing the request.","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message detailing the reason for the failure.","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Something went wrong. please try again!!"},"examples":{"Example":{"title":"Example","value":{"message":"Something went wrong. please try again!!"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"2f80b184-05d4-4a72-9bcc-35b1d13eca9c":{"clientIdHeader":{"type":"apiKey","in":"header","name":"clientId","description":"The `clientId` used for API authentication.","scopes":[]},"clientSecretHeader":{"type":"apiKey","in":"header","name":"clientSecret","description":"The `clientSecret` used for API authentication.","scopes":[]}}},"servers":{"7d47a587-b9be-496d-a9d7-11584e259346":{"url":"https://user-auth.otpless.app","description":"Passwordless Authentication Service"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"clientId","description":"The `clientId` used for API authentication.","scopes":[]},"schema":{"title":"clientId","type":"string","description":"The `clientId` used for API authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"clientIdHeader","name":"clientId"},{"scheme":{"type":"apiKey","in":"header","name":"clientSecret","description":"The `clientSecret` used for API authentication.","scopes":[]},"schema":{"title":"clientSecret","type":"string","description":"The `clientSecret` used for API authentication.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"clientSecretHeader","name":"clientSecret"}],"title":"clientIdHeader \u0026 clientSecretHeader"}]},"originalFileLocation":"api-reference/endpoint/verifytoken/verify-token-with-secure-data.yaml"},"subdomain":"otpless-96","siteName":"OTPLESS","title":"Verify token - OTPLESS","contextualStarterQuestions":[{"_id":"6a515999ae3ff331ddd4b954","deploymentId":"65507bb0b99260c1f65d01cc","questionText":"How do I verify a token?","status":"active","generatedBy":"contextual","path":"api-reference/endpoint/verifytoken/verify-token-with-secure-data","createdAt":"2026-07-10T20:44:09.680Z","updatedAt":"2026-07-10T20:44:09.680Z","__v":0},{"_id":"6a515999ae3ff331ddd4b955","deploymentId":"65507bb0b99260c1f65d01cc","questionText":"What is secureInfo data?","status":"active","generatedBy":"contextual","path":"api-reference/endpoint/verifytoken/verify-token-with-secure-data","createdAt":"2026-07-10T20:44:09.680Z","updatedAt":"2026-07-10T20:44:09.680Z","__v":0},{"_id":"6a515999ae3ff331ddd4b956","deploymentId":"65507bb0b99260c1f65d01cc","questionText":"Do I need client credentials?","status":"active","generatedBy":"contextual","path":"api-reference/endpoint/verifytoken/verify-token-with-secure-data","createdAt":"2026-07-10T20:44:09.680Z","updatedAt":"2026-07-10T20:44:09.680Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-09-12T13:07:26.586Z","originalFileLocation":"api-reference/endpoint/verifytoken/verify-token-with-secure-data.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=\"Validates user details by exchanging the token obtained from the otplessUser object for the user\u0026#x27;s information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OTPLESS\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_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=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Verify token - OTPLESS\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validates user details by exchanging the token obtained from the otplessUser object for the user\u0026#x27;s information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OTPLESS\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://otpless-96.mintlify.app/_mintlify/api/og/v2?division=Verify+Frontend+SDK+token\u0026amp;title=Verify+token\u0026amp;description=Validates+user+details+by+exchanging+the+token+obtained+from+the+otplessUser+object+for+the+user%27s+information.+This+server-to-server+call+requires+authenticati\u0026amp;theme=7f8688bffaa68a7d5c144e80\u0026amp;signature=f29078b559504a2622bdeeefdc1ba4bea99057280188136cc9b80e0d4ad81b8f\">\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=\"Verify token - OTPLESS\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validates user details by exchanging the token obtained from the otplessUser object for the user\u0026#x27;s information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://otpless-96.mintlify.app/_mintlify/api/og/v2?division=Verify+Frontend+SDK+token\u0026amp;title=Verify+token\u0026amp;description=Validates+user+details+by+exchanging+the+token+obtained+from+the+otplessUser+object+for+the+user%27s+information.+This+server-to-server+call+requires+authenticati\u0026amp;theme=7f8688bffaa68a7d5c144e80\u0026amp;signature=f29078b559504a2622bdeeefdc1ba4bea99057280188136cc9b80e0d4ad81b8f\">\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=\"/docs/mintlify-assets/_mintlify/favicons/otpless-96/4ecEfjOYTKC7Ncnz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OTPLESS\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2759CD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://otpless.com/#organization\",\"name\":\"OTPLESS\",\"url\":\"https://otpless.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/otpless-96/_aEz_FhlLI0izHsE/logo/otpless-dark.svg?fit=max\u0026auto=format\u0026n=_aEz_FhlLI0izHsE\u0026q=85\u0026s=c211521d204eaa2c4148109d50d19edd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://otpless.com/docs#website\",\"name\":\"OTPLESS\",\"url\":\"https://otpless.com/docs\",\"publisher\":{\"@id\":\"https://otpless.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data#webpage\",\"url\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data\",\"name\":\"Verify token\",\"description\":\"Validates user details by exchanging the token obtained from the otplessUser object for the user's information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\",\"dateModified\":\"2025-09-12T13:07:26.586Z\",\"isPartOf\":{\"@id\":\"https://otpless.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"OTPLESS\",\"item\":\"https://otpless.com/docs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Verify token\",\"item\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data#apireference\",\"headline\":\"Verify token\",\"name\":\"Verify token\",\"description\":\"Validates user details by exchanging the token obtained from the otplessUser object for the user's information. This server-to-server call requires authentication using the client ID and secret. Also the secureInfo details will only be included when the Secure SDK is integrated as part of the authentication implementation.\",\"url\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data\",\"mainEntityOfPage\":{\"@id\":\"https://otpless.com/docs/api-reference/endpoint/verifytoken/verify-token-with-secure-data#webpage\"},\"dateModified\":\"2025-09-12T13:07:26.586Z\",\"publisher\":{\"@id\":\"https://otpless.com/#organization\"},\"isPartOf\":{\"@id\":\"https://otpless.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OTPLESS\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OTPLESS","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/introduction"}]},{"tab":"Frontend SDKs","pages":[{"title":"Frontend SDKs","href":"/quick-start"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","description":"The OTPLESS API provides a secure, efficient, and seamless way to authenticate users without the need for traditional passwords and OTPs.","href":"/api-reference/introduction"}]},{"group":"Verify Frontend SDK token","pages":[{"title":"Verify token","openapi":"POST /auth/v1/validate/token","href":"/api-reference/endpoint/verifytoken/verify-token-with-secure-data"},{"title":"Verify ID Token","description":null,"href":"/api-reference/endpoint/verifytoken/id-token-validate"}]},{"group":"Telecom","pages":[{"title":"Overview","href":"/api-reference/endpoint/telecom/overview"},{"title":"SIM Swap Check","openapi":"POST /v1/telecom/sim-swap-check","href":"/api-reference/endpoint/telecom/sim-swap-check"},{"title":"Call Forwarding Check","openapi":"POST /v1/telecom/call-forwarding-check","href":"/api-reference/endpoint/telecom/call-forwarding-check"},{"title":"Number Portability Check","openapi":"POST /v1/telecom/portability","href":"/api-reference/endpoint/telecom/portability"},{"title":"Telecom API errors","href":"/api-reference/endpoint/telecom/errors"}]}]},{"tab":"Server-Initiated Auth","pages":[{"title":"Server-Initiated Auth","href":"/server-initiated-auth/overview"}]},{"tab":"Silent Network Auth","pages":[{"title":"Silent Network Auth","href":"/sna/overview"}]},{"tab":"Device Fingerprint","pages":[{"title":"Device Fingerprint","href":"/device-fingerprint/overview"}]},{"tab":"Resources","hidden":true}]},"title":"Verify token - OTPLESS","buildId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","deploymentId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bg4Z7D_G.js","utils-Biz734EK.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C6F9YHs6.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BoJjY_VP.js","snippetPresets-CnZ-mOFh.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-DC_SB2pp.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BYKtOiIP.js","shallow-COAac_UD.js","getApiPlaygroundDisplay-BV4Viqi2.js","CodeSnippet-DDgW-JXl.js","CodeSnippets-CP1LpNhG.js","Page-BeiUfucV.js","getPastedJson-Cvgvbfmv.js","icon-D-H368xH.js","MethodPill-CXSxH1VW.js","DuplicateIcon-JcbBzF1x.js","createIcon-BDt_aHZM.js","DynamicMarkdown-DO1Fz7ar.js","SectionHeading-mwKBArs3.js","axios-vUo_bRtp.js","Markdown-C3KUTGJN.js","clsx-C6CAjViH.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C3vb5JQZ.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C8Hisf3g.js"]}