
This isn't the API we use for phone auth

here is the payload
{
"tokenAuth": "token",
"widgetId": "33696f706847393734343735",
"identifier": "917019698895",
"token": "mytoken"
}

which is the api appwrite is using?


ohhk this this for normal message

which requires DLT registration in INDIA


also what should be added in the content field?

@Steven is phone auth working in appwrite cloud?

appwrite should be using this https://api.msg91.com/apidoc/sendotp/send-otp.php

Yes

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

ohk makes sense

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

without the template approval we cannot send the messsages for selfhosted

What do you mean?

check this https://www.youtube.com/watch?v=spg_TwW-vJE

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

Ok and?

so what is the default appwrite otp template?

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

ohhk so appwrite sends the otp as variable? https://github.com/utopia-php/messaging/blob/2d0f474a106bb1da285f85e105c29b46085d3a43/src/Utopia/Messaging/Adapters/SMS/Msg91.php#L55C18-L55C18

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

the body is
{ "template_id":"EntertemplateID", "short_url": "1 (On) or 0 (Off)", "recipients" : [ { "mobiles":"919XXXXXXXXX", "VAR1": "VALUE1", "VAR2": "VALUE2" } ] }

the otp variable needs to be included in the recipient's array
Recommended threads
- Can't create a function. The user interf...
I am trying to create a server-side function. I am on the free tier. **I already have three functions that work properly** that I created a few months ago. Now,...
- 1.6 to 1.7 does not work
Appwrite (self-hosted) stopped working after updating from 1.6.2 that was stable. Getting the general_server_error. Mentioning I fallowed all steps for upgrad...
- Svelte App Whitelist
https://appwrite.io/docs/quick-starts/sveltekit Based on the example from the docs, how woul'd I go about adding a "whitelist" that checks if the user has a sp...
