WA Client
PUT

Add Contact

Add a contact to your WhatsApp address book.

API endpoint
https://waclient.com/api/add_contact
Example:
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
    }
}
ParameterDescription
contact_id / numberPhone number or JID
full_name / first_nameDisplay name for the contact
save_to_phoneSave to phone address book (default true) (Optional)
instance_idYour instance ID
access_tokenYour access token

Command Palette

Search documentation endpoints.

Esc