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
Email
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>

Pick a Plugin
Integrate with your favourite services

WordPress

Text booking confirmations and send reminders.
Get WordPress plugins

Shopify

Send order updates direct to your customers' phone.
Get the Shopify plugin

Zendesk

Receive a text as soon as a customer asks for help.
Get the Zendesk plugin

Features
What makes Clockwork tick?

Global Coverage

No boundaries. Send texts to any corner of the world.
View our coverage

Pay As You Go SMS

Free sign up, no contracts. Only pay for what you send.
View our pricing

Delivery Receipts

Find out if your messages were delivered.
More about receipts

Uptime

Multiple redundant systems. No maintenance windows.
Find out more

Throughput

Multi-thread and batch your messages. We won't keep you waiting.
Find out more

Security

We believe in providing fully secure systems. Your business depends on it.
Find out more

Businesses + Clockwork