The Contacts API manages records in BuzzBip Audience. Phone number is the primary identifier for WhatsApp contacts and must be in E.164 format.
Endpoints
Create a contact
bash
curl -X POST "https://api.buzzbip.com/v1/contacts" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+21612345678",
"firstName": "Walid",
"lastName": "Ben Ali",
"email": "[email protected]",
"tags": ["vip", "woocommerce"]
}'Request body fields
Update a contact
Use PUT /contacts/{id} to update fields. Only include properties you want to change. Tags are replaced when the tags array is provided.
json
{
"firstName": "Walid",
"tags": ["vip", "returning-customer"],
"customFields": {
"loyaltyTier": "gold"
}
}Upsert behavior
POST /contacts creates a new contact or updates an existing one when the phone number already exists in your workspace.
Deleting a contact removes it from Audience but does not delete past conversation history. Contact your account manager if you need GDPR erasure.
