Skip to content

Create a contact

Request

Add a new customer contact with phone number and name. The contact is associated with the authenticated client.

Security
apikeyAuth
Bodyapplication/jsonrequired
idstring, (uuid)
Example:"b4c5d6e7-f890-1234-b4c5-d6e7f8901234"
foundboolean

Whether the contact was found on WhatsApp.

Example:true
firstNamestring
Example:"John"
fullNamestring
Example:"John Doe"
pushNamestring
Example:"JD"
businessNamestring
Example:"Acme Corp"
redactedPhonestring

Partially redacted phone number.

Example:"+27***4567"
phoneNumberstring
Example:"27821234567"
jidstring

WhatsApp JID (e.g. 27821234567@s.whatsapp.net).

Example:"27821234567@s.whatsapp.net"
clientIdstring, (uuid)

ID of the client this contact belongs to.

Example:"dbdb8809-6fd0-4cd2-8574-502f0f61a69d"
createdAtstring, (date-time)
Example:"2026-01-05T15:06:42.606638+02:00"
updatedAtstring, (date-time)
Example:"2026-01-16T21:16:33.620179+02:00"
curl -i -X POST \
  https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/payless4messaging-service/WhatsApp/contacts \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "fullName": "John Doe",
    "jid": "27821234567"
  }'

Responses

The newly created contact object

Bodyapplication/json
idstring, (uuid)
Example:"b4c5d6e7-f890-1234-b4c5-d6e7f8901234"
foundboolean

Whether the contact was found on WhatsApp.

Example:true
firstNamestring
Example:"John"
fullNamestring
Example:"John Doe"
pushNamestring
Example:"JD"
businessNamestring
Example:"Acme Corp"
redactedPhonestring

Partially redacted phone number.

Example:"+27***4567"
phoneNumberstring
Example:"27821234567"
jidstring

WhatsApp JID (e.g. 27821234567@s.whatsapp.net).

Example:"27821234567@s.whatsapp.net"
clientIdstring, (uuid)

ID of the client this contact belongs to.

Example:"dbdb8809-6fd0-4cd2-8574-502f0f61a69d"
createdAtstring, (date-time)
Example:"2026-01-05T15:06:42.606638+02:00"
updatedAtstring, (date-time)
Example:"2026-01-16T21:16:33.620179+02:00"
Response
{ "id": "b4c5d6e7-f890-1234-b4c5-d6e7f8901234", "found": true, "firstName": "John", "fullName": "John Doe", "pushName": "JD", "businessName": "Acme Corp", "redactedPhone": "+27***4567", "phoneNumber": "27821234567", "jid": "27821234567@s.whatsapp.net", "clientId": "dbdb8809-6fd0-4cd2-8574-502f0f61a69d", "createdAt": "2026-01-05T15:06:42.606638+02:00", "updatedAt": "2026-01-16T21:16:33.620179+02:00" }