Create Contact
POSThttps://public.leadpattern.com/customer
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 fieldAuthorizationstringrequired
Your API key. Sent raw (e.g. 'lp_...'). No Bearer prefix required.
Body Parameters
3 fieldsphonestringrequired
Phone number without country code.
countryCodestringrequired
Country calling code.
nameobjectoptional
firststringoptional
laststringoptional
Responses
JSON Response
{
"type": "success",
"message": "Contact updated successfully."
}Sample Request Body
{
"phone": "95XXXXXXXX",
"countryCode": "91",
"name": {
"first": "John",
"last": "Doe"
}
}
