SMS API

Is this now possible using code, generally speaking?

https://support.wix.com/en/ticket/85c609a3-c5a9-4895-94ef-bbc72c0911de

you can definitely use an external service that sends SMSs, either from backend or frontend code.
should be quite similar to the way you send emails, which you can see an example of in our samples.

Can you please show us how? I have done the email one with the Javascript code and Js successfully. But I could not replicate the same method with SMS. All services that I found give APIs but do not explain what is in Js and how to implement it in JavaScript. Can you please help with a simple example or some guidlines?

Can you give an example of the service you tried to use, and where you got stuck?

This is one:
http://api.txtlocal.com/docs/sendsms

and others like Infobip API Documentation

It is just wasn’t as easy to understand and implement like your Email article.

Thank you btw.

The first service url is “https://api.txtlocal.com/send/”, so you should use the fetch API to send a request to that url, with the data that they specify in the documentation.
In order to send data in various ways, add request headers (needed in the second service) etc. you can read the following article which explains more about how to use the fetch API:
fetch API

Also, if the SMS service documentation is not clear to you, I would maybe contact them and ask for examples in JavaScript (I didn’t see any listed in their docs).