Menu

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

idstringrequired

uuid

Request body

By contact ids
1 child attribute
contactIdsstring[]required

Kirora's ids for the contacts.

at least 1 item · at most 500 items

By external ids
1 child attribute
externalIdsstring[]required

Your own ids for the contacts, as set with identify.

at least 1 item · at most 500 items

By emails
1 child attribute
emailsstring[]required

Email 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.

removedintegerrequired

Contacts removed from the group.

min 0 · max 9007199254740991

notFoundstring[]required

Identifiers as sent (emails normalised) that name no contact in the workspace.