👩💻
Quick Start
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-key
header. Any request that doesn't include an API key will return a 401 (Unauthorized)
response.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
POST
request to the https://api.httpsms.com/v1/messages/send
endpoint.post
https://api.httpsms.com/v1
/messages/send
Send a new SMS message
PHP
Javascript
Python
curl
Go
c-sharp
Java
// 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'
]
]);
echo $res->getBody();
let apiKey = "Get API Key from https://httpsms.com/settings";