POST
Send Contact
Share a vCard contact (or multiple) in a chat.
API endpoint
https://waclient.com/api/send_contactExample:
curl -X POST \
'https://waclient.com/api/send_contact' \
-H 'Content-Type: application/json' \
--data '{
"to": "20100981XXXX",
"first_name": "Ali",
"last_name": "Hassan",
"phone_number": "966501234567",
"instance_id": "6A4B02A1XXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"data": {
"chat_id": "[email protected]",
"sent": true
}
}| Parameter | Description |
|---|---|
| to / chat_id / number | Recipient chat |
| first_name | Contact first name |
| last_name | Contact last name (Optional) |
| phone_number | Contact phone number |
| contacts[] | Optional — multiple contacts array (Optional) |
| instance_id | Your instance ID |
| access_token | Your access token |