/contactgroups/:id/contacts [deprecated]

Adds contacts to a contact group. You need read-write access to the group; otherwise, or if the group does not exist, the response is 404 with the text body Not Found.

Send one contact with email or contactId, or up to 300 in contacts. A contact sent by email is created or matched among your own contacts, its meta is merged into the existing meta, and its group list is replaced by this group, so it leaves any other group it was in. A contact sent by contactId is added to this group and keeps its other groups.

Contacts are added in order and processing stops at the first error, so earlier contacts stay added.

One contact returns that contact. A contacts array returns an empty object.

This operation is deprecated. It has no replacement in the public API, and no removal date has been announced.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

_id of the contact group.

Body Params

Send contacts, or one of email and contactId, but not both kinds.

string

Email of the contact to add.

string

_id of the contact to add.

string

Name for the contact, used with email.

meta
object

Template and sequence variables, used with email. Merged into the contact's existing meta.

contacts
array of objects
length ≤ 300

Several contacts to add, each with email or contactId.

contacts
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Choose an example:
application/json
text/plain
Psst... like working with APIs? Come join us!