Session Contact Card API

1. Overview

The contacts message type sends one or more vCard-style contact cards to a recipient over WhatsApp, in a single message. A contact object can carry name, birthday, address, email, organization, phone, and URL details. Multiple contact objects can be included in a single contacts array to send several cards in one send.

2. Send Contact Message

Endpoint: POST http://apis.rmlconnect.net/wba/v1/messages

2.1 Payload

POST http://apis.rmlconnect.net/wba/v1/messages

Authorization: <TOKEN>
Content-Type: application/json
{
  "phone": "+919833391195",
  "contacts": [
    {
      "name": {
        "formatted_name": "Aristotle",
        "first_name": "Aristotle",
        "prefix": "Mr."
      },
      "birthday": "2025-07-22",
      "addresses": [
        {
          "street": "main street",
          "city": "LA",
          "state": "<STATE_CODE>",
          "zip": "12345",
          "country": "United States",
          "country_code": "US",
          "type": "Random"
        }
      ],
      "emails": [
        {
          "email": "[email protected]",
          "type": "personal"
        }
      ],
      "org": {
        "title": "philosopher"
      },
      "phones": [
        {
          "phone": "0987654",
          "type": "HOME"
        },
        {
          "phone": "765456",
          "type": "MOBILE",
          "wa_id": "12345678"
        }
      ],
      "urls": [
        {
          "url": "https://www.google.com/",
          "type": "google domain"
        }
      ]
    }
  ]
}

2.2 Field Reference

FieldTypeNotes
phonestringRecipient number, E.164 format (e.g. +919833391195)
contactsarrayOne or more contact objects; each renders as a separate contact card
contacts[].name.formatted_namestringDisplay name shown on the card
contacts[].name.first_namestringFirst name
contacts[].name.prefixstringName prefix/title, e.g. "Mr."
contacts[].birthdaystringDate, observed format YYYY-MM-DD
contacts[].addresses[].streetstringStreet line
contacts[].addresses[].citystringCity
contacts[].addresses[].statestringState code
contacts[].addresses[].zipstringPostal code
contacts[].addresses[].countrystringFull country name
contacts[].addresses[].country_codestringISO country code, e.g. "US"
contacts[].addresses[].typestringAddress label; sample uses a free-text value ("Random") rather than a standard type like HOME/WORK — confirm whether this is validated against an enum
contacts[].emails[].emailstringEmail address
contacts[].emails[].typestringEmail label, e.g. "personal"
contacts[].org.titlestringJob title. Sample org object contains no company or department field — unclear if those keys are supported and simply omitted
contacts[].phones[].phonestringPhone number
contacts[].phones[].typestringPhone label, e.g. "HOME", "MOBILE"
contacts[].phones[].wa_idstringWhatsApp ID, only present on the MOBILE entry in the sample — unclear if this is required only for WhatsApp-registered numbers or optional generally
contacts[].urls[].urlstringURL
contacts[].urls[].typestringURL label; sample uses a free-text value ("google domain") rather than a standard type

Did this page help you?