Menu

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

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 AddedGroupMembers in data. Otherwise returns an error; Errors lists every code and which to retry.

addedintegerrequired

Contacts newly added to the group.

min 0 · max 9007199254740991

notFoundstring[]required

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