POST
/api/send-message
Sends a message containing a contact card.
Send Contact Card
Send a message containing a contact card (vCard). Provide the contact details within the contact
object parameter.
Parameters
Name | Type | Required | Description |
---|---|---|---|
to | string | Yes | Recipient phone number in E.164 format or, Group JID. |
text | string | No | The text content of the message. Required if no media/contact/location is sent. |
contact | object | Yes | Contact card object. |
Code Examples
curl -X POST "https://www.wasenderapi.com/api/send-message"
-H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"to": "+1234567890",
"text": "Here's our support contact",
"contact": {
"name": "Support Team",
"phone": "+1234567890"
}
}'
Response Examples
{
"success": true,
"data": {
"msgId": 100000,
"jid": "+123456789",
"status": "in_progress"
}
}