Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

OTP - Verify email ​

Use this action to confirm ownership of an email address. It validates the OTP (one‑time passcode) and marks the email as verified.

FIRST REQUEST A CODE

Before you can use this action, you must first use the Request code action to generate a code.

Go to 'Request code' action ->

Configuration ​

Display KeyExample InputDescription
Email"user@example.com"Email to verify (must match the target of the requested code).
OTP Code"362941"The code the user received and entered.

Example flow ​

1
Run the OTP – Request code action to generate a code, and set OTP Type: email-verification
2
In the On OTP requested Event Trigger, send the verification code (such as via email with Resend/SendGrid, or SMS with Twilio)
3
After sending the code, allow the user to enter the code and run the OTP – Verify email action

OTP INPUT ELEMENT

If you do not wish to create your own element to allow the user to input the code, WeWeb has its own native element.

OTP Input Element ->

Example output ​

json
{ "verified": true }