Two-Factor Authentication API
Two-factor authentication made simple
Securing your users’ personal information is critical—and so is creating a good user experience. Bandwidth’s Authentication-enabled Messaging API helps you accomplish both missions quickly and easily.
2FA built for developers
Ready to reduce fraud and protect your users with one-time codes and account verification? Our Authentication-enabled Messaging API makes it easy to send custom messages over voice and SMS, from your own numbers without the need for additional telecom infrastructure.
const BandwidthMfa = require(‘@bandwidth/mfa’);
BandwidthMfa.Configuration.basicAuthUserName = “token”;
BandwidthMfa.Configuration.basicAuthPassword = “secret”;
const mfaController = BandwidthMfa.APIController;
mfaController.createMessagingTwoFactor(“accountId”, {
from: “+19999999999”,
to: “+18888888888”,
applicationId: “1-2-3”,
scope: “authorization”
});
mfaController.createVerifyTwoFactor(“accountId”, {
from: “+19999999999”,
to: “+18888888888”,
applicationId: “1-2-3”,
scope: “authorization”,
code: “123456”
});

Don’t worry—our signature support is always included
We take a unique approach to support: we focus on making sure our customers are successful. How? With dedicated support that’s included, a support team made up of industry vets, and tools and processes to ensure customer success and satisfaction. You’ll wonder why everyone doesn’t have the same approach.
- Dedicated support to help you every step of the way
- Assigned single point of contact with all products
- 24/7 proactive Network Operations Center (NOC)
- >97% CSAT delivering Technical Assistance Center (TAC)
- Expert business development managers to help navigate your changing needs
- Dedicated team of porting experts