Send SMS verification codes for two-factor authentication and security.
FriendlyName
. The friendly name should be a descriptive string that you create to describe the verification service. This is the name used in the SMS sent to the end-user. (e.g. Your [FriendlyName
] verification code is: XXXXXX) It can be up to 32 characters long. This value should not contain PII. Optionally, you can also provide these additional parameters:
CodeLength
The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.LookupEnabled
: Whether to perform a lookup with each verification started and return info about the phone numberSkipSMSToLandlines
: Whether to skip sending SMS verifications to landlines. Requires lookup_enabled.Psd2Enabled
: Whether to pass PSD2 transaction parameters when starting a verification.DoNotShareWarningEnabled
: Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the codeCustomCodeEnabled
: Whether to allow sending verifications with a custom code instead of a randomly generated one.Totp.Issuer
: Optional configuration for the TOTP factors. Set TOTP Issuer for this service. This will allow to configure the issuer of the TOTP URI. Defaults to the service friendly name if not provided.Totp.TimeStep
: Optional configuration for the TOTP factors. Defines how often, in seconds, are TOTP codes generated. i.e, a new TOTP code is generated every time_step seconds. Must be between 20 and 60 seconds, inclusive. Defaults to 30 secondsTotp.CodeLength
: Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6Totp.Skew
: Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 Note: by default, the message to the end user will say “Your [friend name] verification code is: XXXXXX”. To customize this language, reach out to support.