GET
https://api.alatwa.com/send/text
Query Parameters
| Name | Type | | Description |
| device_id |
string |
required |
Device ID akun Alat WA |
| to |
string |
required |
Nomor WhatsApp penerima |
| msg |
string |
required |
Isi pesan |
| token |
string |
required |
API Key akun Alat WA |
Code Examples
curl -X GET https://api.alatwa.com/send/text?device_id=YOUR_DEVICE_ID&to=628111111111&msg=Hello&token=YOUR_API_KEY \
-H "Authorization: YOUR_API_KEY"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.alatwa.com/send/text?device_id=YOUR_DEVICE_ID&to=628111111111&msg=Hello&token=YOUR_API_KEY');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: YOUR_API_KEY'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
const response = await fetch('https://api.alatwa.com/send/text?device_id=YOUR_DEVICE_ID&to=628111111111&msg=Hello&token=YOUR_API_KEY', {
headers: {
'Authorization': 'YOUR_API_KEY'
}
});
const data = await response.json();
import requests
response = requests.get(
'https://api.alatwa.com/send/text?device_id=YOUR_DEVICE_ID&to=628111111111&msg=Hello&token=YOUR_API_KEY',
headers={'Authorization': 'YOUR_API_KEY'}
)
data = response.json()
Response
200 Success
{
"status": "ok",
"message_id": "3EB07186F0298BF9E5E8",
"from": "628122222222",
"to": "628111111111",
"message": "Success"
}
Response Fields
| Field | Type | Description |
| status |
string |
"ok" atau "error" |
| message_id |
string |
Unique message ID |
| from |
string |
Nomor WA pengirim |
| to |
string |
Nomor WA penerima |
| message |
string |
Pesan status |