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 during registration

||View as Markdown|
POST
https://api.vlenseg.com/api/DigitalIdentity/Register/StepVerifyOAuthToken
POST
/api/DigitalIdentity/Register/StepVerifyOAuthToken
$curl -X POST https://api.vlenseg.com/api/DigitalIdentity/Register/StepVerifyOAuthToken \
> -H "ApiKey: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "provider": "Google",
> "IdToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE..."
>}'
200Google OAuth token
1{
2 "data": {
3 "oAuthTokenVerificationRequestId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
4 "isVerified": true,
5 "validationResult": "Token verified successfully",
6 "email": "user@example.com"
7 },
8 "error_code": null
9}
Verify an OAuth ID token (from Google or Microsoft) as part of the registration flow. On success, returns an `oAuthTokenVerificationRequestId` — pass this in the `/Register` body to skip the email verification step. **Setup required in the Vlens portal** before using OAuth providers. See the Google Cloud Platform Console and Azure AD B2C documentation for configuring OAuth client credentials. **Supported providers:** - **Google** — configure via Google Cloud Platform Console - **Microsoft** — configure via Azure AD B2C
Was this page helpful?
Previous

Complete registration

Next

Verify OAuth token (skip email at registration)

Built with

Verify an OAuth ID token (from Google or Microsoft) as part of the registration flow. On success, returns an oAuthTokenVerificationRequestId — pass this in the /Register body to skip the email verification step.

Setup required in the Vlens portal before using OAuth providers. See the Google Cloud Platform Console and Azure AD B2C documentation for configuring OAuth client credentials.

Supported providers:

  • Google — configure via Google Cloud Platform Console
  • Microsoft — configure via Azure AD B2C

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. Use the returned oAuthTokenVerificationRequestId in the /Register call.

dataobject
error_codeinteger or null
error_messagestring or null
error_descriptionsany or null