Skip to content
Reference/Contacts/Create Contact

Create Contact

POSThttps://public.leadpattern.com/customer
application/json60 req/min

Create or upsert a contact by phone number.

  • Upsert: an existing contact with the same countryCode+phone is updated.
  • The stored waId is always countryCode+phone — a waId in the body does not change the lookup key.

Headers

1 field
Authorizationstring
required
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.

Body Parameters

3 fields
phonestring
required
Phone number without country code.
countryCodestring
required
Country calling code.
nameobject
optional
firststring
optional
laststring
optional

Responses

JSON Response
{
  "type": "success",
  "message": "Contact updated successfully."
}

Sample Request Body

{
  "phone": "95XXXXXXXX",
  "countryCode": "91",
  "name": {
    "first": "John",
    "last": "Doe"
  }
}