Validate an App Registration Email Validation
PUT
https://api.verifik.co/v2/email-validations/{id}
This endpoint validates a one-time password (OTP) sent to a user's email address during the onboarding (app registration) process. It ensures the user-provided OTP is correct and updates the verification status accordingly. This route is specifically designed for users who are in the middle of an app registration flow.
Headers
Content-Type
application/json
Authorization
Bearer {YOUR_ACCESS_TOKEN}
The JWT Token you should use when validating Onboarding Email Validations
is provided from the App Registration
in creation.
Path Parameters
id
string
The unique identifier of the Email Validation you want to validate.
Body
email
string
Yes
The email address that was used to create the email validation (spaces will be automatically removed and converted to lowercase).
otp
number
Yes
The one-time password (OTP) that was sent to the user's email address.
Body Examples
Basic Validation
{
"email": "[email protected]",
"otp": 123456
}
Request
curl -X PUT https://api.verifik.co/v2/email-validations/674de8df21c72be3cc42b8a7 \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"otp": 123456
}'
Response
The response will contain information about the validated email validation, including the updated status and any additional data based on the validation type. For onboarding flows, this typically includes basic validation information.
{
"data": {
"_id": "674de8df21c72be3cc42b8a7",
"status": "validated",
"email": "[email protected]",
"type": "onboarding",
"showFaceLivenessRecommendation": false
}
}
Notes
Onboarding Flow: This endpoint is specifically designed for users in the app registration process, where email validation is part of the onboarding journey.
OTP Expiration: OTPs have a limited lifespan (typically 10 minutes) and will expire after the predefined time. Expired OTPs cannot be validated.
Status Updates: Successful validation automatically updates the email validation status to "validated" and may trigger additional onboarding steps.
Webhook Events: Validation events trigger webhook notifications for tracking and integration purposes.
App Registration Linking: When validated through this endpoint, the email validation is automatically linked to the user's app registration record.
Email Formatting: Email addresses are automatically converted to lowercase and have spaces removed during processing.
Demo Mode: If the project is in demo mode, special demo OTPs may be accepted for testing purposes.
Onboarding Flow Integration
This validation endpoint is part of the larger onboarding flow where:
User creates an app registration
Email validation is initiated
OTP is sent to the user's email
User validates the OTP using this endpoint
Email validation status is updated
User can proceed to the next step in the onboarding process
The validation ensures that users have access to the email address they provided during registration, adding an extra layer of security to the onboarding process.
Common Use Cases
Account Verification: Confirm email addresses during user registration
Onboarding Security: Ensure users have access to their provided email addresses
Flow Progression: Move users through the onboarding process after email verification
Audit Trail: Track email validation success rates in onboarding flows
This endpoint is specifically designed for onboarding-type email validations. For general validation or login flows, use the public email validation endpoint instead.
Last updated
Was this helpful?