POST
https://api.alatwa.com/ai/customer/reject/{id}
Headers
| Name | Type | | Description |
| Authorization |
string |
required |
API Key akun Alat WA Anda |
| Content-Type |
string |
required |
application/json |
Path Parameters
| Name | Type | | Description |
| id |
string |
required |
ID dari AI setting |
Body Parameters
| Name | Type | | Description |
| phone |
string |
required |
Nomor WhatsApp customer |
| status |
string |
required |
"active" (reject) atau "inactive" (un-reject) |
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"
}