|
| 1 | +--- |
| 2 | +title: "2Factor" |
| 3 | +description: "Guide on how to add 2Factor SMS provider." |
| 4 | +--- |
| 5 | + |
| 6 | +### Step 1. Account Setup |
| 7 | + |
| 8 | +If you do not have an account with 2Factor yet, you can easily create an account [here](https://2factor.in/v3/free-bulk-sms-service-trial/index.php)\*\*. |
| 9 | + |
| 10 | +To be able to send bulk sms to your clients, as per new TRAI regulations you also need to register on the DLT platform. Follow the steps to register on DLT platform [here](https://www.notion.so/DLT-Registration-Steps-ca272ad868cc4014920a8c964ebd4294) (or 2 factor link [here](http://2factor.in/v3/dlt/trai-mandatory-dlt-registration/)) |
| 11 | + |
| 12 | +Once you have registered yourself on DLT and created a 2Factor account, you can then add 2Factor Provider in Raven. |
| 13 | + |
| 14 | +<Note> |
| 15 | + If you are sending SMSs in India, TRAI has mandated to register their |
| 16 | + business, headers (sender IDs), and templates on any of the DLT platforms. |
| 17 | +</Note> |
| 18 | + |
| 19 | +### Step 2. 2Factor Integration in Raven |
| 20 | + |
| 21 | +In the provider form in Raven for 2Factor, you need to fill the following values |
| 22 | + |
| 23 | +| Key | Details | |
| 24 | +| ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | |
| 25 | +| Api Key | If you are signed up in 2Factor.in, you can get your api key [here](https://2factor.in/CP/Dashboard_list.php) | |
| 26 | +| Sender Id | It has to be a preconfigured 6 characters alphabetical sender id for the enterprise account. The Sender ID should be linked with the SMS template as registered on DLT portal. Learn more about DLT Sender Id [here](https://2factor.in/v3/dlt/trai-mandatory-dlt-registration/). Use 'Request Sender Id' option provided under Addon Services >> Transactional SMS >> Request Sender Id. For transactions messages See [here](https://2fa.api-docs.io/v1/send-transactional-sms/create-new-sender-id-for-transactional-sms). For OTP messages see [here](https://2fa.api-docs.io/v1/send-sms-otp/creating-a-custom-otp-template-sender-id) | |
| 27 | +| Route | Applicable only for SMSes sent by Indian businesses to Indian destination numbers. Use the route type specified when registering your templates. Possible values: Transactional, OTP, Promotional. | |
| 28 | +| DLT Entity ID | Applicable only for SMS sent by Indian businesses to Indian destination numbers. Your Entity Id as registered on DLT (Distributed Ledger Technology) portal of operators in India. This is mandatory to be passed in API or configured on Dashboard for SMSes towards Indian destination. Read more [here](http://2factor.in/v3/dlt/trai-mandatory-dlt-registration/). If you have set up your DLT Management Portal on 2Factor, you can check [here](https://dlt-registration.2factor.in/v0.2/login.php) as well | |
| 29 | + |
| 30 | +### Step 3. Delivery Reports |
| 31 | + |
| 32 | +2Factor provides you with an option to set a callback URl, which is hit by 2Factor system, to acknowledge the status of sent sms. 2Factor Transactional SMS API supports upto 3 callback URLs for receiving SMS delivery reports in Realtime. |
| 33 | + |
| 34 | +Callback URL can be set using Manage Services option provided in control panel.For transactional sms [here](https://2factor.in/CP/more_services_list.php), for sms otp [here](https://2factor.in/CP/otp_account_list.php) |
| 35 | + |
| 36 | +**Advanced** |
| 37 | + |
| 38 | +For some additional references, refere [here](https://2fa.api-docs.io/v1/additional-references) |
| 39 | + |
| 40 | +## 🔗 Links |
| 41 | + |
| 42 | +- [2Factor **Website**](https://2factor.in/v3/?at_category=2factor&at_event_action=spr&service=BULK-SMS-OTP-SERVICE-PROVIDER) |
| 43 | +- [2Factor SMS Documentation](https://documenter.getpostman.com/view/301893/TWDamFGh#46b8df37-b085-45e0-9dae-ce6b52f722c9) |
| 44 | +- [2Factor Main Dashboard](https://2factor.in/CP/menu.php) |
| 45 | +- [Additional References](https://2fa.api-docs.io/v1/additional-references) |
| 46 | + |
| 47 | +<Info> |
| 48 | + If you are facing issues with this integration or find something missing, |
| 49 | + please write to us at support@ravenapp.dev |
| 50 | +</Info> |
0 commit comments