For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
HomeAPI Reference
HomeAPI Reference
  • Overview
    • API Overview
  • Vlens API
      • POSTCheck for duplicate accounts
      • POSTSend or validate phone OTP
      • POSTSend or validate email OTP
      • POSTComplete registration
      • POSTVerify OAuth token during registration
      • POSTVerify OAuth token (skip email at registration)
Dashboard
LogoLogo
Vlens APIRegistration

Verify OAuth token (skip email at registration)

||View as Markdown|
POST
https://api.vlenseg.com/api/DigitalIdentity/VerifyOAuthToken
POST
/api/DigitalIdentity/VerifyOAuthToken
$curl -X POST https://api.vlenseg.com/api/DigitalIdentity/VerifyOAuthToken \
> -H "ApiKey: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "provider": "Google",
> "IdToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE..."
>}'
200Registration_verifyOAuthToken_example
1{
2 "data": {
3 "oAuthTokenVerificationRequestId": "string",
4 "isVerified": true,
5 "validationResult": "string",
6 "email": "string"
7 },
8 "error_code": 1,
9 "error_message": "string",
10 "error_descriptions": null
11}
Verify an OAuth ID token to skip the email verification step during registration. Returns an `oAuthTokenVerificationRequestId` that can be passed in the `/Register` body in place of an email OTP. Use this when the user has already authenticated with Google or Microsoft and you want to use their verified email from the OAuth token instead of sending a separate email OTP.
Was this page helpful?
Previous

Verify OAuth token during registration

Next

Scan national ID front

Built with

Verify an OAuth ID token to skip the email verification step during registration. Returns an oAuthTokenVerificationRequestId that can be passed in the /Register body in place of an email OTP.

Use this when the user has already authenticated with Google or Microsoft and you want to use their verified email from the OAuth token instead of sending a separate email OTP.

Authentication

ApiKeystring
Static API key issued to your tenant. Obtain from the Vlens dashboard.

Request

This endpoint expects an object.
providerenumRequired
The OAuth provider that issued the token.
Allowed values:
IdTokenstringRequired
The ID token received from the OAuth provider after the user authenticates.

Response

Token verified. Pass oAuthTokenVerificationRequestId to /Register to skip email verification.

dataobject
error_codeinteger or null
error_messagestring or null
error_descriptionsany or null