Groups
Remove contacts from a group
POST/v1/groups/{id}/contacts/remove
Requires an API key with the groups:write scope. About keys and scopes
Removes up to 500 contacts from a group in one batch, named by exactly one of contactIds, externalIds or emails: a POST, since some clients and proxies drop the body of a DELETE. Contacts that were not members are ignored; the response reports how many were actually removed, and lists in notFound the identifiers that name no contact in this workspace. Agent keys are refused with 403.
Path parameters
idstringrequireduuid
Request body
- By contact ids
1 child attribute
contactIdsstring[]requiredKirora's ids for the contacts.
at least 1 item · at most 500 items
- By external ids
1 child attribute
externalIdsstring[]requiredYour own ids for the contacts, as set with identify.
at least 1 item · at most 500 items
- By emails
1 child attribute
emailsstring[]requiredEmail addresses, matched trimmed and without case.
at least 1 item · at most 500 items
Returns
Returns 200 OK with a RemovedGroupMembers in data. Otherwise returns an error; Errors lists every code and which to retry.
removedintegerrequiredContacts removed from the group.
min 0 · max 9007199254740991
notFoundstring[]requiredIdentifiers as sent (emails normalised) that name no contact in the workspace.