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

Check for duplicate accounts

||View as Markdown|
POST
https://api.vlenseg.com/api/DigitalIdentity/CheckExistenceOfEmailOrPhone
POST
/api/DigitalIdentity/CheckExistenceOfEmailOrPhone
$curl -X POST https://api.vlenseg.com/api/DigitalIdentity/CheckExistenceOfEmailOrPhone \
> -H "ApiKey: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "phoneNumber": "+201234567890",
> "email": "user@example.com"
>}'
200Registration_checkExistenceOfEmailOrPhone_example
1{
2 "data": {
3 "exists": true
4 },
5 "error_code": 1,
6 "error_message": "string"
7}

Before starting registration, verify that the phone number or email is not already associated with an account in this tenant. Call this first to surface duplicate-account errors before the user completes the OTP flow.

Was this page helpful?
Previous

Refresh access token

Next

Send or validate phone OTP

Built with

Authentication

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

Request

This endpoint expects an object.
phoneNumberstring or nullOptional
emailstring or nullOptionalformat: "email"

Response

Check result.
dataobject
error_codeinteger or null
error_messagestring or null