Groups
Add contacts to a group
POST/v1/groups/{id}/contacts
Requires an API key with the groups:write scope. About keys and scopes
Adds up to 500 contacts to a group in one batch, named by exactly one of contactIds, externalIds or emails. Contacts already in the group are skipped rather than rejected, so the call is safe to repeat; the response reports how many were actually added, and lists in notFound the identifiers that name no contact in this workspace (no contact is created). 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 AddedGroupMembers in data. Otherwise returns an error; Errors lists every code and which to retry.
addedintegerrequiredContacts newly added to the group.
min 0 · max 9007199254740991
notFoundstring[]requiredIdentifiers as sent (emails normalised) that name no contact in the workspace.