SMS API

Share text and picture messages using the programming language you prefer.
Create your Account to Start Building
Home
API

Enter your phone number and receive an SMS

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form
What’s Happening   |    Technical Version

When you click “Send SMS”, a request is sent to FONE API to deliver an SMS to the provided phone number. The server logic determines the weather forecast to San Francisco and sends a related message and graphic to the phone number.

Note that picture messages outside of US and Canada will be
delivered as a hyperlink

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
<?php
// this line loads the library
require('/path/to/foneapi-php/Services/foneapi.php');
$account_sid = 'AC5ef872f6da5a21de157d80997a64bd33';
$auth_token = '[AuthToken]';
$client = new Services_foneapi($account_sid, $auth_token);
$client->account->messages->create(array(
  'To' => "+16518675309",
  'From' => "+14158141829",
  'Body' => "Tomorrow's forecast in Financial District, San Francisco is Clear.",
  'MediaUrl' => "https://climacons.herokuapp.com/clear.png", 
));
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
// foneapi Credentials
var accountSid = 'AC5ef872f6da5a21de157d80997a64bd33';
var authToken = '[AuthToken]';
//require the foneapi module and create a REST client
var client = require('foneapi')(accountSid, authToken);
client.messages.create({
  to: "+16518675309",
  from: "+14158141829",
  body: "Tomorrow's forecast in Financial District, San Francisco is Clear.",
  mediaUrl: "https://climacons.herokuapp.com/clear.png", 
}, function(err, message) {
  console.log(message.sid);
});
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from foneapiML.rest import foneapiMLRestClient
# put your own credentials here
ACCOUNT_SID = "AC5ef872f6da5a21de157d80997a64bd33"
AUTH_TOKEN = "[AuthToken]"
client = foneapiMLRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(
  to="+16518675309",
  from_="+14158141829",
  body="Tomorrow's forecast in Financial District, San Francisco is Clear.",
  media_url="https://climacons.herokuapp.com/clear.png",
)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
require 'rubygems' # not necessary with ruby 1.9 but included for completeness
require 'foneapiML-ruby'
# put your own credentials here
account_sid = 'AC5ef872f6da5a21de157d80997a64bd33'
auth_token = '[AuthToken]'
# set up a client to talk to the foneapi REST API
@client = foneapi::REST::Client.new account_sid, auth_token
@client.account.messages.create({
  :from => '+14158141829',
  :to => '+16518675309',
  :body => 'Tomorrow\'s forecast in Financial District, San Francisco is Clear.',
  :media_url => 'https://climacons.herokuapp.com/clear.png'
})
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// You may want to be more specific in your imports
import java.util.*;
import com.foneapi.sdk.*;
import com.foneapi.sdk.resource.factory.*;
import com.foneapi.sdk.resource.instance.*;
import com.foneapiML.sdk.resource.list.*;
public class foneapiMLTest {
 // Find your Account Sid and Token at foneapi.com/user/account
 public static final String ACCOUNT_SID = "AC5ef872f6da5a21de157d80997a64bd33";
 public static final String AUTH_TOKEN = "[AuthToken]";
 public static void main(String[]args) throws foneapiMLRestException {
  foneapiMLRestClient client = new foneapiMLRestClient(ACCOUNT_SID, AUTH_TOKEN);
   // Build the parameters
   List<NameValuePair> params = new ArrayList<NameValuePair>();
   params.add(new BasicNameValuePair("To", "+16518675309"));
   params.add(new BasicNameValuePair("From", "+14158141829"));
   params.add(new BasicNameValuePair("Body", "Tomorrow's forecast in Financial District, San Francisco is Clear."));
   params.add(new BasicNameValuePair("MediaUrl", "https://climacons.herokuapp.com/clear.png"));
   MessageFactory messageFactory = client.getAccount().getMessageFactory();
   Message message = messageFactory.create(params);
   System.out.println(message.getSid());
 }
}
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// You may want to be more specific in your imports
import java.util.*;
import com.foneapiML.sdk.*;
import com.foneapiML.sdk.resource.factory.*;
import com.foneapiML.sdk.resource.instance.*;
import com.foneapiML.sdk.resource.list.*;
public class foneapiMLTest {
 // Find your Account Sid and Token at foneapi.com/user/account
 public static final String ACCOUNT_SID = "AC5ef872f6da5a21de157d80997a64bd33";
 public static final String AUTH_TOKEN = "[AuthToken]";
 public static void main(String[]args) throws foneapiMLRestException {
  foneapiMLRestClient client = new foneapiMLRestClient(ACCOUNT_SID, AUTH_TOKEN);
   // Build the parameters
   List<NameValuePair> params = new ArrayList<NameValuePair>();
   params.add(new BasicNameValuePair("To", "+16518675309"));
   params.add(new BasicNameValuePair("From", "+14158141829"));
   params.add(new BasicNameValuePair("Body", "Tomorrow's forecast in Financial District, San Francisco is Clear."));
   params.add(new BasicNameValuePair("MediaUrl", "https://climacons.herokuapp.com/clear.png"));
   MessageFactory messageFactory = client.getAccount().getMessageFactory();
   Message message = messageFactory.create(params);
   System.out.println(message.getSid());
 }
}

DYNAMIC API PRIMITIVES

Via custom app logic

Get your app to define custom logic for each response using webhooks. Develop just about any workflow that you can think of.

Share pictures using

Share something interesting to people by sending and receiving pictures on all phone numbers in the U.S. and Canada.

Actual status webhooks

View each step that your message takes as it travels the international telecom network.

The Fone API Edge
Redundancy

Automated failover ensures that you have 99.95% uptime SLA without the need for a maintenance window.

Scalability

Use existing apps to new markets by configuring features for compliance and localization.

Multi-channel

Use a single platform for voice, SMS, video, authentication, chat and more.

Without hassles

Get free support, have the freedom to scale your business, market faster with pay-as-you-go.

Create your Account to Start Building
Reach us through these channels?
voice
video
messaging
email
social
CLOSE WIDGET
Voice Channel
Click To Call
Get A CallBack
Show Number To Call
CLOSE WIDGET
Click to Call
000
1
.
2
ABC
3
DEF
4
GHI
5
JKL
6
MNO
7
PQRS
8
TUVW
9
XYZ
*
.
0
+
#
.
Audio
Audio
Mute
Mute
Dialer
Dialer
End Call
End call
CLOSE WIDGET
Get A Call Back
000
1
.
2
ABC
3
DEF
4
GHI
5
JKL
6
MNO
7
PQRS
8
TUVW
9
XYZ
*
.
0
+
#
.
Enter Phone Number for Call Back
CLOSE WIDGET
Show Number To Call
000
This is your Business Number
CLOSE WIDGET
Messaging Channel
Text/SMS
OTT/Messaging Apps
Chat
CLOSE WIDGET
SMS/Text
000
This is your Business Number
CLOSE WIDGET
OTT/Messaging Apps
Talk to us using you favorite app!
Facebook msg
line
whatsapp
wechat
viber
yahoo msg
kakao talk
skype
kik msg
hangouts
Snapchat
CLOSE WIDGET
Facebook Messenger

Connect to your Facebook Messenger account to receive alerts and talk with us using Facebook Messenger app!

FACEBOOK MESSENGER
Click to connect
CLOSE WIDGET
Line

Connect to your Line account to receive alerts and talk with us using Line app!

Line
Click to connect
CLOSE WIDGET
Whatsapp

Connect to your Whatsapp account to receive alerts and talk with us using Whatsapp app!

Whatsapp
Click to connect
CLOSE WIDGET
Wechat

Connect to your Wechat account to receive alerts and talk with us using Wechat app!

wechat
Click to connect
CLOSE WIDGET
Viber

Connect to your Viber account to receive alerts and talk with us using Viber app!

viber
Click to connect
CLOSE WIDGET
Yahoo Messenger

Connect to your Yahoo Messenger account to receive alerts and talk with us using Facebook Messenger app!

yahoo MESSENGER
Click to connect
CLOSE WIDGET
Kakao

Connect to your Kakao account to receive alerts and talk with us using Kakao app!

FACEBOOK MESSENGER
Click to connect
CLOSE WIDGET
Skype

Connect to your Skype account to receive alerts and talk with us using Skype app!

skype
Click to connect
CLOSE WIDGET
Kik Messenger

Connect to your Kik Messenger account to receive alerts and talk with us using Kik Messenger app!

kik MESSENGER
Click to connect
CLOSE WIDGET
Hangouts

Connect to your Hangout account to receive alerts and talk with us using Hangout app!

Hangout
Click to connect
CLOSE WIDGET
Snapchat

Connect to your Snapchat account to receive alerts and talk with us using Snapchat app!

snapchat
Click to connect
CLOSE WIDGET
Chat Conversation
We love to talk with you! Leave a chat message down below.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Voice Channel
Video Call an Agent
Screenshare & chat
CLOSE WIDGET
Video Call
Audio
Audio
Mute
Mute
End Call
End call
CLOSE WIDGET
Screenshare & chat
Hangout

to the UconnectedIT agent

Click to share access
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Fill form for email
Click to email
CLOSE WIDGET
Fill form for email
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Click to email
Talk to us using you favorite email client!
Default Email Client
Snapchat
CLOSE WIDGET
OTT/Messaging Apps
FACEBOOK POST
TWITTER POST
LINKEDIN POST
INSTAGRAM
PINTEREST
CLOSE WIDGET
Facebook Post
Make a post on Facebook
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Twitter Post
Make a post on Twitter
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Linkedin Post
Make a post on Linkedin
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Instagram Post
Make a post on Instagram
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET
Pinterest Post
Make a post on Pinterest
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
CLOSE WIDGET