Back

MSG91 INTEGRATION

  • 0
  • Self Hosted
Drake
16 Sep, 2023, 00:29

This isn't the API we use for phone auth

TL;DR
The user is asking for help integrating MSG91 into their application. They provide code and ask questions about sending messages and using OTP variables. The solution is not provided in the support thread.
rohan
16 Sep, 2023, 00:30

here is the payload

TypeScript
{
    "tokenAuth": "token",
    "widgetId": "33696f706847393734343735",
    "identifier": "917019698895",
    "token": "mytoken"
}
rohan
16 Sep, 2023, 00:31

which is the api appwrite is using?

rohan
16 Sep, 2023, 00:33

ohhk this this for normal message

rohan
16 Sep, 2023, 00:34

which requires DLT registration in INDIA

rohan
16 Sep, 2023, 00:44
rohan
16 Sep, 2023, 00:44

also what should be added in the content field?

rohan
16 Sep, 2023, 00:46

@Steven is phone auth working in appwrite cloud?

rohan
16 Sep, 2023, 00:51
Drake
16 Sep, 2023, 01:25

Yes

Drake
16 Sep, 2023, 01:26

We want to be able to send anything, not just integer

rohan
16 Sep, 2023, 01:27

ohk makes sense

rohan
16 Sep, 2023, 01:27

but the message template should be showing in the appwrite integration docs

rohan
16 Sep, 2023, 01:28

without the template approval we cannot send the messsages for selfhosted

Drake
16 Sep, 2023, 01:39

What do you mean?

rohan
16 Sep, 2023, 01:42
rohan
16 Sep, 2023, 01:43

this is the process to add messaging template without registering the template the messages wont be sent

Drake
16 Sep, 2023, 01:44

Ok and?

rohan
16 Sep, 2023, 01:45

so what is the default appwrite otp template?

Drake
16 Sep, 2023, 01:45

There is none. It's on you to register whatever with msg91

rohan
16 Sep, 2023, 01:52

@Steven i feel the code should be updated according to this https://docs.msg91.com/reference/send-sms

rohan
16 Sep, 2023, 01:53

the body is

TypeScript
{ "template_id":"EntertemplateID",  "short_url": "1 (On) or 0 (Off)",     "recipients" : [     {       "mobiles":"919XXXXXXXXX",       "VAR1": "VALUE1",       "VAR2": "VALUE2"         }   ] }
rohan
16 Sep, 2023, 01:54

the otp variable needs to be included in the recipient's array

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more