Generate and validate 2FA / MFA codes via SMS
Learn how Mobile Text Alerts can generate and then validate verification codes via SMS for simplified two-factor authentication.
SMS Verification Overview

Steps for SMS validation with the Mobile Text Alerts API
Generate and send SMS verification code
Send Verification Code endpoint verify/sms/send-code
verify/sms/send-codeDuplicate Requests (Idempotency)
Request Fields
Name
Type
Description
Response Fields
Name
Type
Description
Risk Types
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
tostringRequired
serviceNamestringOptional
timeoutSecondsnumberOptional
codeLengthnumberOptional
realtimebooleanOptional
bypassbooleanOptional
externalIdstringOptional
longcodeIdnumberOptional
poolIdstringOptional
senderNamestringOptional
gatedbooleanOptional
Responses
200
Success
application/json
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
post
/verify/sms/send-codeValidate SMS code
Check SMS Code endpoint verify/sms/check-code
verify/sms/check-codeRequest Fields
Name
Type
Description
Response Fields
Name
Type
Description
Verification Status
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
tostringOptional
verificationIdstringOptional
codestringRequired
Responses
200
Success
application/json
400
BadRequestError
application/json
401
UnauthorizedError
application/json
403
ForbiddenError
application/json
500
InternalServerError
application/json
post
/verify/sms/check-codeLast updated
Was this helpful?