Contact Groups
Contact Groups
📄️ List contact groups
Lists the organization's contact groups with their contact counts. Filters: name, search (name/description), page, limit. Requires `api_user|contact_view`.
📄️ Create a contact group
Group names are unique within the organization. Requires `api_user|contact_create`.
📄️ Show a contact group
Returns a contact group with its contact count. Requires `api_user|contact_view`.
📄️ Delete a contact group
Soft-deletes the group and removes all its memberships; the contacts themselves are kept. Requires `api_user|contact_delete`.
📄️ Update a contact group
Partial update; at least one field required. Requires `api_user|contact_update`.
📄️ List contacts in a group
Lists the group's contacts. Accepts the same filters as the contact list (name, email, phone, is_blacklisted, search, page, limit). Requires `api_user|contact_view`.
📄️ Add contacts to a group
Adds up to 100 contacts; contacts already in the group are skipped and `attached` counts only the new memberships. An unknown, deleted or foreign contact id fails the whole request with a 422 reported under its index (e.g. `contact_ids.1`). Requires `api_user|contact_update`.
📄️ Remove contacts from a group
Removes up to 100 contacts from the group; `detached` counts the memberships actually removed. The contacts themselves are kept. An unknown, deleted or foreign contact id fails the whole request with a 422 reported under its index. Requires `api_user|contact_update`.