POST
Send Contact
Send a contact card (vCard-style) to a recipient. Requires the Message templates plan feature.
API endpoint
https://waclient.com/api/sendExample:
curl -X POST \
'https://waclient.com/api/send' \
-H 'Content-Type: application/json' \
--data '{
"number": "20100981XXXX",
"type": "contact",
"message": {
"firstName": "Mohamed",
"lastName": "Ali",
"phoneNumber": "+20100981XXXX",
"organization": "WA Client"
},
"instance_id": "META68B6ED90CXXXX",
"access_token": "EMCUH3NQQK8YXXXX"
}'Response
{
"status": "success",
"message": "Success",
"message_payload": {
"messaging_product": "whatsapp",
"messages": [
{
"id": "wamid.xxx",
"message_status": "accepted"
}
]
}
}| Parameter | Description |
|---|---|
| number | Recipient phone number with country code |
| type | Must be contact |
| message | JSON: firstName, lastName, phoneNumber, optional organization |
| instance_id | Meta Cloud instance ID |
| access_token | Your access token |
Only delivers if the customer messaged you within the last 24 hours. Outside that window, use Meta Templates. Poll messages are not supported on Cloud API.