How it works: Send and receive text messages through the FoneAPI REST API
If you don’t have a FoneAPI phone number or haven’t sent a text message yet, then start with that in the section above. You need a phone number capable of sending text messages to your destination. Different countries have different restrictions, be sure to check the country capabilities guide for your destination.”
Lets get started with sending a SMS, for this example we'll be sendong a SMS survey to an imaginary customer and receiving the response.
To send a SMS with FoneAPI, you need to send a REST API call to FoneAPI TO, Form and Body parameteres. Lets create those parameters.
In your software, create a new SMS message body.
Send each SMS message using the Explorer to POST to FoneAPI's API. Use the body you created above and To=[customer_phone_number]From=[your_twilio_number]
Make sure you format your phone numbers, correctly using the E.164 number format standard.
After you send a message or two, be sure to check the SMS dashboard to see details such as message delivery status, errors and warnings.
To handle a webhook you need a web applications set up, handling a webhook is usually as easy as adding a new URL to your application. if you don't already have a web application almost all server-side programming languages offer frameworks to help you build one when a text message is received by your FoneAPI number, FoneAPIv makes an HTTP request to the message URL configured for that number