post
https://partner.gupshup.io/partner/bizgate/app//messaging?messageType=contacts
Send contact card message — one message type of POST /partner/bizgate/app/{appId}/messaging; send the cURL below as shown.
Variant: Contact card.
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| appId | Identifier of the WhatsApp app the call acts on. | 6f414190-d45c-4671-bca1-fb6c3018cb13 | String | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| messaging_product | Always "whatsapp". | — | Required | |
| recipient_type | Always "individual"; group recipients are not supported here. | individual | — | Optional |
| to | E.164 without + | 12XXXXXXX92 | — | Required |
| type | text, template, image, … | template | — | Optional |
| template | Required when type=template | — | — | Optional |
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/messaging' \
--header 'Authorization: Bearer <UT>' \
--header 'Content-Type: application/json' \
--data '{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "91XXXXXXXX10",
"type": "contacts",
"contacts": [
{
"name": {
"formatted_name": "Barbara J. Johnson",
"first_name": "Barbara",
"last_name": "Johnson"
},
"org": {
"company": "Lucky Shrub",
"department": "Legal",
"title": "Lead Counsel"
},
"phones": [
{
"phone": "+19XXXXXXX99",
"type": "Mobile",
"wa_id": "19XXXXXXX99"
}
],
"emails": [
{
"email": "[email protected]",
"type": "Work"
}
],
"urls": [
{
"url": "https://www.luckyshrub.com",
"type": "Company"
}
]
}
]
}
'Sample success response (200)
{
"messages": [
{
"id": "GUPSHUP_MESSAGE_ID"
}
],
"messaging_product": "whatsapp",
"contacts": [
{
"input": "DESTINATION_PHONE_NO",
"wa_id": "DESTINATION_PHONE_NO"
}
]
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…