whatsapp
Bulk update contacts
Perform bulk operations on multiple contacts (max 500 per request). Supported actions: addTags, removeTags, addGroups, removeGroups, optIn, optOut, block, unblock.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
actionstring
Bulk action to perform
Value in
"addTags" | "removeTags" | "addGroups" | "removeGroups" | "optIn" | "optOut" | "block" | "unblock"contactIdsarray<string>
Contact IDs to update (max 500)
Items
items <= 500tags?array<string>
Tags to add or remove (required for addTags/removeTags)
groups?array<string>
Groups to add or remove (required for addGroups/removeGroups)
Response Body
application/json
application/json
curl -X POST "https://zernio.com/api/v1/whatsapp/contacts/bulk" \ -H "Content-Type: application/json" \ -d '{ "action": "addTags", "contactIds": [ "507f1f77bcf86cd799439011", "507f1f77bcf86cd799439012" ], "tags": [ "vip", "priority" ] }'{
"success": true,
"action": "string",
"modified": 0,
"matched": 0
}Empty
{
"error": "Unauthorized"
}Bulk import contacts POST
Import up to 1000 contacts at once. Each contact requires a phone number and name. Duplicates are skipped by default. Supports default tags and groups applied to all imported contacts.
Bulk delete contacts DELETE
Permanently delete multiple contacts at once (max 500 per request).