BooDoo

SMS and WhatsApp

Connect 2Factor to your app

What is 2Factor?

2Factor is an Indian service that sends one-time codes (OTPs) to phone numbers by text message or voice call.

What it costs
Free test credits when you sign up, with no card. After that you prepay: text codes start at about ₹0.12 each.
Time needed
About 5 minutes. You need an email address and an Indian mobile number.
If you skip it
Your app still works. Only the codes sent to phones stay off until you connect it.

What you can build with 2Factor

How to get it, step by step

  1. Sign up at 2factor.in/v3/signup/, then sign in to your dashboard.
  2. Open the API & SDKs page in your dashboard. Your API key is shown there.
  3. Copy the whole key.

Which value goes in which box

2Factor API keyTWOFACTOR_API_KEYKeep private
The API key shown in your 2Factor dashboard. Copy all of it. An “API key” is a long code that lets your app use your account — like a password for apps.

Watch out for

  • Keep the key private, like a password — anyone with it can spend your text credits.
  • Indian rules (TRAI DLT) require business text messages to use a registered sender name and message format. 2Factor offers free help with this registration; ask their support whether your codes need it.