Skip to main content
Authentication API

Authentication API

Give your customers the peace of mind they deserve. Quickly and easily add multi-factor authentication to your software, website, or application to secure user accounts and personal information.

Talk to an Expert


Multi-factor authentication made simple

The security of your users' personal information is critical—and so is your UX. Bandwidth's Authentication API helps you accomplish both missions quickly and easily.

People talking icon

Customizable codes and messages

Customize your authentication messages to balance security and ease of use —conveying brand and security. Create the right amount of security for your org by setting a code expiration timeframe that meets your unique needs.

Only pay for successful authentication

Don’t waste budget on unsuccessful authentication attempts. Whether because of wrong numbers or a missed message, you only pay for successful authentication using our API.

Use your own number for instant brand identity

Our Authentication API enables you to use your existing numbers to send one-time passcodes. This allows you to protect your brand equity by not sharing numbers with other businesses, creating a better overall end-user experience.

Built for developers

Ready to reduce fraud and protect your users with one-time codes and account verification? Our Authentication 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”

Two-factor authentication example.

What can you do with our Authentication API?

Protect your customers’ personal information and sensitive business systems. Whether verifying a login or confirming account changes, our Authentication API is a must-use technology for your business.

Two-factor login graphic

Second factor login

Passwords can be guessed or compromised, which is why businesses should provide more protection to secure logins and prevent fraudulent access. With a valid phone number for the user, your business can deliver a code to your users’ device, which the user enters to validate their presence.

Number verification

Phone number verification

Many businesses depend on phone numbers to verify a user’s identity. To protect your users and reduce fraud, SMS and voice authentication can be used to verify any phone number input into your system. Phone number validation to make sure callers are who they say they are..

Computer with a security icon

Securing actions

An ounce of prevention is worth a pound of cure. 2FA codes can be used on high-risk actions by your customers, such as account changes or high-value purchases, to not only protect users from themselves, but to reduce fraud if an account or payment source is compromised.

One-time password

Single use passwords

Eliminate the need for users to create new passwords, which have to be tracked and are often forgotten. Instead, allow them to login with their phone number. A 2FA code can be delivered and used as a temporary, single use password, expiring after a set amount of time.

Extend your SMS strategy

Text messaging isn’t just for 2FA. Bandwidth’s robust API platform gives you the keys to create your own unique voice and messaging solutions. Our flexible platform even lets you choose what kind of number works for you!

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)
  • 98% CSAT delivering Technical Assistance Center (TAC)
  • Expert business development managers to help you navigate your changing needs
  • A dedicated team of porting experts

Want to learn more?

Download our Multi-Factor Authentication API fact sheet to learn about the benefits of using Bandwidth’s Authentication API.

Download our Authentication API fact sheet

How can your industry be transformed with Bandwidth?

Software and products

Software & Products

Authenticate user accounts with codes delivered via SMS or phone call. Learn more

Banking and finance graphic

Finance & Banking

Secure customer financial information, verify account changes, and validate high-value transactions.



Protect sensitive patient information and simplify health portal logins with two-factor authentication codes.

Get started with Bandwidth's Authentication API

Give your customers the security they expect, with multi-factor authentication from Bandwidth. Our Authentication API enables you to secure customer accounts, add another layer of security to logins, and give your customers the peace of mind that their information is being secured.

Talk to an Expert