Home › Documentation › API Reference › AI Reject Customer

AI Reject Customer

Tambah atau hapus customer dari daftar rejected AI (agar AI tidak merespon customer tertentu).

POST https://api.alatwa.com/ai/customer/reject/{id}

Headers

NameTypeDescription
Authorization string required API Key akun Alat WA Anda
Content-Type string required application/json

Path Parameters

NameTypeDescription
id string required ID dari AI setting

Body Parameters

NameTypeDescription
phone string required Nomor WhatsApp customer
status string required "active" (reject) atau "inactive" (un-reject)

Try It

Path Parameters
Body Parameters

Code Examples

curl -X POST https://api.alatwa.com/ai/customer/reject/1 \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "phone": "628111111111", "status": "active" }'
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.alatwa.com/ai/customer/reject/1'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Authorization: YOUR_API_KEY', 'Content-Type: application/json' ]); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch);
const response = await fetch('https://api.alatwa.com/ai/customer/reject/1', { method: 'POST', headers: { 'Authorization': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, body: JSON.stringify({ "phone": "628111111111", "status": "active" }) });
import requests response = requests.post( 'https://api.alatwa.com/ai/customer/reject/1', headers={ 'Authorization': 'YOUR_API_KEY', 'Content-Type': 'application/json' }, json={ "phone": "628111111111", "status": "active" } )

Response

200 Success
{ "status": "ok", "message": "Success" }
Update AI Setting Add CS AI Whitelist

Biar WhatsApp yang kerja, kamu fokus jualan

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

WhatsApp