Welcome to Taratxt
Taratxt is a free-to-use IoT SMS Gateway platform that allows you to send and receive SMS messages via your own gateway device. With our easy-to-use API, you can seamlessly integrate SMS functionality into your apps, services, or backend systems.
Requirements
- A Taratxt account (register at taratxt.com/app)
- Basic knowledge of PHP or any language of your choice
- A working internet connection
- (Later) An ESP32 + GSM module, or order a prebuilt device
Register on Taratxt
- Visit https://taratxt.com/app
- Click Sign Up and create your free account
- Verify your email and log in to your dashboard
Create Your API Token
- From this documentation page click back
- Click Edit Profile in the sidebar
- Click Generate Token
- Copy and securely store your API Token — you’ll use this in your system integration
Send an SMS from Your System (PHP Example)
<?php
$apiKey = 'your_api_token_here';
$data = [
'to' => '+639XXXXXXXXX',
'message' => 'Hello from Taratxt!',
];
$ch = curl_init('https://taratxt.com/api/send');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $apiKey,
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
$response = curl_exec($ch);
curl_close($ch);
echo $response;
*Make sure to replace your_api_token_here and the phone number with real values.
View Messages
- From this documentation page click back
- Click on Messages in the sidebar
- All outgoing received through the API and inbound SMS messages received by your connected device(s) will appear here.
- Messages include: Device, Number, Status, Type, Message content
Test Webhooks for Incoming Messages
When your device receives SMS messages, Taratxt can forward them to your webhook endpoint in real-time. To quickly test and debug your webhook integration, try SnapWebhook — a free tool to instantly inspect incoming webhook payloads.
- Visit snapwebhook.com and generate a unique webhook URL
- Configure this URL in your Taratxt device settings as your webhook endpoint
- Send an SMS to your gateway device and watch it appear in SnapWebhook in real-time