HTTP SMS is an open-source service that converts your android phone into an SMS Gateway so you can send and receive SMS messages using an intuitive HTTP API.
API requests to HTTP SMS are authenticated using API keys in the
x-api-keyheader. Any request that doesn't include an API key will return a
To send and receive SMS messages using your android phone, you will need to download and install our android app on your phone so it can be triggered to send an SMS message when you make a request to the HTTP SMS API.
To send an SMS message using an android phone, send an authenticated
POSTrequest to the
Send a new SMS message
// initialize guzzle client https://github.com/guzzle/guzzle
$client = new GuzzleHttp\Client();
$apiKey = "Get API Key from https://httpsms.com/settings";
$res = $client->request('POST', 'https://api.httpsms.com/v1/messages/send', [
'headers' => [
'x-api-key' => $apiKey,
'json' => [
'content' => 'This is a sample text message',
'from' => "+18005550199",
'to' => '+18005550100'
let apiKey = "Get API Key from https://httpsms.com/settings";