Skip to content

OTP Auto-Fill ​

Enable keyboard auto-fill for verification codes.

When you send OTP codes through Sendivent, we automatically format SMS messages to trigger the WebOTP API — allowing mobile browsers to detect codes and offer keyboard auto-fill.

ChannelHow it worksConfiguration
SMSWebOTP suffix appended automaticallyOTP domain required
EmailDetected automatically by iOS and macOSNone needed

SMS setup ​

1. Configure your domain ​

Go to Settings → General and enter the domain where users enter OTP codes.

The domain must match exactly. If your login form is at app.example.com, configure app.example.com — not example.com. The browser compares the SMS domain against the current page's origin.

Only one domain can be configured per app.

2. Send OTP in payload ​

Use any of these field names:

otp · code · verificationCode · verification_code · pin · token · oneTimeCode · one_time_code

3. Add autocomplete to your input ​

html
<input type="text" inputmode="numeric" autocomplete="one-time-code" />

See also ​

  • SMS — SMS channel configuration
  • Examples — Full 2FA example

Released under the MIT License.