Whatsapp Contacts Messages
Contacts messages allow you to send rich contact information directly to WhatsApp users, such as names, phone numbers, physical addresses, and email addresses.
Contacts Object
Parameter | Type | Description |
---|---|---|
*name | Object | Full contact name formatted as a name object. |
addresses | Array (Object) | Full contact address(es) formatted as an addresses object. |
birthday | String | YYYY-MM-DD formatted string. |
emails | Array (Object) | Contact email address(es) formatted as an emails object. |
org | Object | Contact organization information formatted as an org object. |
phones | Array (Object) | Contact phone number(s) formatted as a phone object. |
urls | Array (Object) | Contact URL(s) formatted as a urls object. |
Parameter | Type | Description |
---|---|---|
*formatted_name | String | Full name, as it normally appears. At least one of the optional parameters needs to be included along with the formatted_name parameter. |
first_name | String | First name of the contact you wants to send. |
last_name | String | Last name of the contact you wants to send. |
middle_name | String | Middle name of the contact you wants to send. |
suffix | String | Name suffix. |
prefix | String | Name prefix. |
Parameter | Type | Description |
---|---|---|
street | String | Street number and name. |
city | String | City name. |
state | String | State abbreviation. |
zip | String | Zip Code |
country | String | Full country name. |
country_code | String | Two-letter country abbreviation. |
type | String | Standard values are HOME and WORK. |
Parameter | Type | Description |
---|---|---|
String | Email Address. | |
type | String | Supported values are HOME and WORK. |
Parameter | Type | Description |
---|---|---|
company | String | Name of the contact's company. |
department | String | Name of the contact's department. |
title | String | Contact's business title. |
Parameter | Type | Description |
---|---|---|
phone | String | Automatically populated with the wa_id value as a formatted phone number. |
type | String | Standard Values are CELL, MAIN, IPHONE, HOME, and WORK. |
wa_id | String | WhatsApp ID. |
Parameter | Type | Description |
---|---|---|
url | String | URL. |
type | String | Supported values are HOME and WORK. |
"contacts": [
{
"addresses": [{
"street": "STREET",
"city": "CITY",
"state": "STATE",
"zip": "ZIP",
"country": "COUNTRY",
"country_code": "COUNTRY_CODE",
"type": "HOME"
},
{
"street": "STREET",
"city": "CITY",
"state": "STATE",
"zip": "ZIP",
"country": "COUNTRY",
"country_code": "COUNTRY_CODE",
"type": "WORK"
}],
"birthday": "YEAR_MONTH_DAY",
"emails": [{
"email": "EMAIL",
"type": "WORK"
},
{
"email": "EMAIL",
"type": "HOME"
}],
"name": {
"formatted_name": "NAME",
"first_name": "FIRST_NAME",
"last_name": "LAST_NAME",
"middle_name": "MIDDLE_NAME",
"suffix": "SUFFIX",
"prefix": "PREFIX"
},
"org": {
"company": "COMPANY",
"department": "DEPARTMENT",
"title": "TITLE"
},
"phones": [{
"phone": "PHONE_NUMBER",
"type": "HOME"
},
{
"phone": "PHONE_NUMBER",
"type": "WORK",
"wa_id": "PHONE_OR_WA_ID"
}],
"urls": [{
"url": "URL",
"type": "WORK"
},
{
"url": "URL",
"type": "HOME"
}]
}
]
Programing Examples:
|
|
|
|
|
|
|
|
|