Home › Documentation › API Reference › Send Text (GET)

Send Text (GET)

Kirim pesan teks menggunakan query parameter (GET method). Cocok untuk integrasi sederhana.

GET https://api.alatwa.com/send/text

Query Parameters

NameTypeDescription
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

Try It

Query Parameters

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

FieldTypeDescription
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
Send Text Send Media

Biar WhatsApp yang kerja, kamu fokus jualan

Tanpa server, tanpa coding. Daftar, scan QR WhatsApp, dan auto reply pertamamu bisa langsung jalan.

WhatsApp