PUT
Add Contact
Add a contact to your WhatsApp address book.
API endpoint
https://waclient.com/api/add_contactExample:
curl -X PUT \
'https://waclient.com/api/add_contact' \
-H 'Content-Type: application/json' \
--data '{
"contact_id": "20100981XXXX",
"full_name": "Mohamed Ali",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"contact_id": "[email protected]",
"added": true
}
}| Parameter | Description |
|---|---|
| contact_id / number | Phone number or JID |
| full_name / first_name | Display name for the contact |
| save_to_phone | Save to phone address book (default true) (Optional) |
| instance_id | Your instance ID |
| access_token | Your access token |