Create or update contact
https://whatsapp.paaltech.org/api/v1/businesses/{external_id}/contacts
Token ability:
contacts.write
ยท Authentication
Finds the contact by your external_id, else by phone, and updates it - or creates it.
custom_fields must be fields defined for the business (see Define a contact field);
tags replaces the contact's tags. Safe to repeat.
Path parameters
external_id
string
required
Your own ID for the business (Multi-SKUUL - the tenant ID).
Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.
Body parameters
external_id
string | null
Max 191 characters. Pattern ^[A-Za-z0-9._:-]+$.
phone
string | null
International number, digits with optional +. Needed when there is no external_id.
name
string | null
Max 191 characters.
email
string | null
Format email.
locale
string | null
Max 16 characters.
timezone
string | null
IANA, e.g. Africa/Accra.
custom_fields
object
Values for the business's fields; null clears one.
tags
array of strings
Replaces the contact's tags.
Responses
Updated - an existing contact matched.
Created.
unauthenticated - missing, invalid, revoked or expired token
missing_ability, product_suspended or product_token_required
not_found - not yours, or does not exist
validation_failed - fields are invalid; see errors.
rate_limited - over 300 requests/minute for this product
Errors always look like {"error": {"code", "message"}} - see Errors and status codes.