contact object provided → New contact created with provided data, then message sentcontact object → New contact created with phone number as name, then message sentcontact object is provided, the specified data will be usedcontact object is provided, a basic contact will be created automatically using the phone number as the firstnamefirstname defaults to phone number if not provided in contact datalastname defaults to empty string if not providedGET /api/v1/{subdomain}/sources - List all sources with their IDsGET /api/v1/{subdomain}/statuses - List all statuses with their IDsGET /api/v1/{subdomain}/groups - List all groups with their IDscurl --location --request POST 'https://whatsapp.qtap.chat/api/v1//messages/send' \
--header 'Content-Type: application/json' \
--data-raw '{
"phone_number": "+919909919284",
"message_body": "Hello! This is a sample message to demonstrate the API.",
"contact": {
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"country": "India",
"groups": "VIP Customers,Newsletter Subscribers"
}
}'{
"status": "success",
"message": "Message sent successfully",
"data": {
"message_id": "wamid.HBgMOTE5ODEwNjAwMDAwFQIAERgSNUU1RjE4MUM0QjY5MjFFNzYzAA==",
"contact_id": 15,
"phone": "+919909919284",
"message": "Hello! This is a sample message to demonstrate the API.",
"status": "sent",
"sent_at": "2024-02-08 14:30:25",
"chat_id": 8,
"contact_created": true
}
}