Build with Programmable SMS

Get started with SMS

How it works: Send and receive text messages through the FoneAPI REST API

Step 1: Get Started with FoneAPI

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.”

Step 2: Setup your Development Environment
Step 3: Send an SMS via the FoneAPI REST API
  1. 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.

  2. 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.

  3. In your software, create a new SMS message body.

  4. 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]

  5. Make sure you format your phone numbers, correctly using the E.164 number format standard.

  6. 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.

Step 4. Receive incoming messages

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