Skip to main content
Version: 3.0.0

☎️ Send a Contact

Send a contact details to the specified phone number

await whatsapp.sendContactDetails(
phoneNumber: 'PHONE_NUMBER',
dateOfBirth: "1990-01-01",
addresses: [{
"street": "Ajmer",
"city": "Ajmer",
"state": "Rajasthan",
"zip": "305001",
"country": "India",
"country_code": "in",
"type": "contact",
}],
emails: [{
"email": "me@rohitchouhan.com",
"type": "contact"
}],
organization: {
"company": "Codebrine",
"department": "IT",
"title": "Founder"
},
person: {
"formatted_name": "Rohit Chouhan",
"first_name": "Rohit",
"last_name": "Chouhan",
"middle_name": "",
"suffix": "Mr.",
"prefix": "Mr."
},
phones: [{
"phone": "+919999999999",
"type": "Home"
}],
urls: [{
"url": "https://rohitchouhan.com",
"type": "Personal Website"
}],
);
paramtyperequireddescription
phoneNumberStringyesPhone number with county code and plus.
dateOfBirthStringnoDate of Birth YYYY-MM-DD
addressesList<Map<String, dynamic>>noList of Address
emailsList<Map<String, dynamic>>noList of Emails
organizationMap<String, dynamic>noOrganization Details
personMap<String, dynamic>yesPerson Information
phoneList<Map<String, dynamic>>yesPhone Details
urlList<Map<String, dynamic>>noList of Webpages