


Quick and easy to get started • No rentals • No commitment

Send SMS

HTTP or XML
Choose an interface to suit your project
Email to SMS
Send text messages from any email address

Receive SMS

Clockwork Numbers
They look and act just like a real mobile number
Free UK Keywords
Users can text a keyword to a shared shortcode
Languages & Interfaces
Get up and running in minutes, regardless of what language or interface you use
Language
PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
// Create a Clockwork object using your API key
$clockwork = new Clockwork( $key );
// Setup and send a message
$message = array( "to" => "441234567890", "message" => "Hello World" );
$result = $clockwork->send( $message );
// Check if the send was successful
if( $result["success"] ) {
echo "Message sent - ID: " . $result["id"];
} else {
echo "Message failed - Error: " . $result["error_message"];
}
C#
1
2
3
4
5
6
7
8
9
10
11
var api = new Clockwork.API(key);
var result = api.Send(new SMS { To = "441234567890", Message = "Hello World" });
if (result.Success)
{
Console.WriteLine("SMS Sent to {0}, Clockwork ID: {1}", result.SMS.To, result.ID);
}
else
{
Console.WriteLine("SMS to {0} failed, Clockwork Error: {1} {2}",
result.SMS.To, result.ErrorCode, result.ErrorMessage);
}
Ruby
1
2
3
4
5
6
7
8
9
10
api = Clockwork::API.new( api_key )
message = api.messages.build( :to => "441234567890", :content => "Hello World" )
response = message.deliver
if response.success
puts response.message_id
else
puts response.error_code
puts response.error_description
end
Java
1
2
3
4
5
6
7
8
9
10
11
12
ClockWorkSmsService clockWorkSmsService = new ClockWorkSmsService(key);
SMS sms = new SMS("441234567890", "Hello World");
ClockworkSmsResult result = clockWorkSmsService.send(sms);
if(result.isSuccess())
{
System.out.println("Sent with ID: " + result.getId());
}
else
{
System.out.println("Error: " + result.getErrorMessage());
}
Python
1
2
3
4
5
6
7
8
9
10
11
from clockwork import clockwork
api = clockwork.API("API_KEY_GOES_HERE")
message = clockwork.SMS( to = "441234567890", message = "Hello World" )
response = api.send(message)
if response.success:
print (response.id)
else:
print (response.error_code)
print (response.error_description)
Node.js
1
2
3
4
5
6
7
8
9
10
11
var clockwork = require("clockwork")({key:"your clockwork key here"});
// Send a message
clockwork.sendSms({ To: "447123456789", Content: "Test!"}, function(error, resp) {
if (error) {
console.log("Something went wrong", error);
} else {
console.log("Message sent",resp.responses[0].id);
}
});
HTTP
1
GET https://api.clockworksms.com/http/send.aspx?key=KEY&to=441234567890&content=Hello+World HTTP/1.1
1
2
3
4
5
6
7
8
9
To: 441234567980@YOURAPIKEY.clockworksms.com
From: a.user@example.com
Subject:
#STARTSMS#
Hello World
#ENDSMS#
This could be a disclaimer at the bottom of your email.
XML
1
2
3
4
5
6
7
8
9
10
POST https://api.clockworksms.com/xml/send.aspx HTTP/1.1
<?xml version="1.0" encoding="UTF-8"?>
<Message>
<Key>key</Key>
<SMS>
<To>441234567890</To>
<Content>Hello World</Content>
</SMS>
</Message>

Features
What makes the Clockwork SMS API tick?

SMS Integrations
Powerful, industry-leading software solutions built using the Clockwork SMS API
Including Zapier, Adapt, Transactor and Target
See the integrations
SMS Plugins
Popular plugins to help you quickly insert SMS into your existing solution
Including Zendesk, Matomo and Wordpress
See the plugins
Businesses + Clockwork



