Skip to Content

Contact

Sends a WhatsApp contact card to a recipient. This message type is ideal for sharing official business contact details and handing off conversations to a real person.

Common use cases:

  • Customer support handoff
  • Sales or account manager introduction
  • Sharing official business contact details
  • Escalation from automated flows to human support
WhatsApp contact message example

URL

https://api.messagesmart.nl/api/v1/whatsapp/messages/contact

Headers

See Authentication.


Request body

FieldTypeRequiredNotes
whatsAppBusinessIdstringYesCan be collected from the dashboard or provided via webhook
whatsAppBusinessPhoneNumberIdstringYesCan be collected from the dashboard or provided via webhook
tostringYesRecipient phone number in E.164 format
formattedNamestringYesName shown on the contact card
supportPhonestringYesPhone number shown on the contact card
emailstringNoEmail address shown on the contact card
websiteUrlstringNoWebsite shown on the contact card
companystringNoCompany name shown on the contact card

Examples

{ "whatsAppBusinessId": "123456789012345", "whatsAppBusinessPhoneNumberId": "399750423212934", "to": "+31622463691", "formattedName": "MessageSmart Support", "supportPhone": "+31612345678", "email": "support@messagesmart.nl", "websiteUrl": "https://www.messagesmart.nl", "company": "MessageSmart" }

Response

Success (200 OK)

{ "success": true, "data": { "messaging_product": "whatsapp", "contacts": [ { "input": "+31622463691", "wa_id": "31622463691" } ], "messages": [ { "id": "wamid.HBgLMTY0NjcwNDM1OTUVAgARGBI1RjQyNUE3NEYxMzAzMzQ5MkEA" } ] } }

Field explanation

  • data.contacts[0] — contact shared with the recipient
  • data.messages[0].id — WhatsApp message ID

Validation error (400 Bad Request)

{ "success": false, "error": { "code": "validation_error", "message": "Invalid request body", "httpStatus": 400, "details": null } }

Common causes:

  • Missing formattedName or supportPhone
  • Missing to
  • Missing WhatsApp business identifiers

Provider error (502 Bad Gateway)

{ "success": false, "error": { "code": "WHATSAPP_SEND_FAILED", "message": "Failed to send WhatsApp contact message.", "httpStatus": 502, "details": { "provider": "meta", "raw": {} } } }

Last updated on