In addition to the various CRUD endpoints here related to members, you can also change the status of members, including opting them out.
You’ll notice that there are calls related to individual members, but we also provide quite a few calls to deal with bulk updates of members. Please try to use these whenever possible as opposed to looping through a list of members and calling the individual member calls.
Where this is especially important is when adding new members. To do a bulk import, you’ll POST to the /#account_id/members endpoint. In return, you’ll receive an import ID. You can use this ID to check the status and results of your import. Imports are generally pretty fast, but the time to completion can vary with greater system usage.
Get a basic listing of all members in an account.
Parameters: |
|
---|---|
Returns : | A list of members in the given account. |
Get detailed information on a particular member, including all custom fields.
Parameters: |
|
---|---|
Returns : | A single member if one exists. |
Raises : | Http404 if no member is found. |
Get detailed information on a particular member, including all custom fields, by email address instead of ID.
Parameters: |
|
---|---|
Returns : | A single member if one exists. |
Raises : | Http404 if no member is found. |
If a member has been opted out, returns the details of their optout, specifically date and mailing_id.
Returns : | Member opt out date and mailing if member is opted out. |
---|---|
Raises : | Http404 if no member is found. |
Update a member’s status to optout keyed on email address instead of an ID.
Returns : | True if member status change was successful or member was already opted out. |
---|---|
Raises : | Http404 if no member is found. |
Add new members or update existing members in bulk. If you are doing actions for a single member please see the /members/add call below.
Parameters: |
|
---|---|
Returns : | An import id |
Adds or updates a single audience member. If you are performing actions on bulk members please use the /members call above.
Parameters: |
|
---|---|
Returns : | The member_id of the new or updated member, whether the member was added or an existing member was updated, and the status of the member. The status will be reported as ‘a’ (active), ‘e’ (error), or ‘o’ (optout). |
Takes the necessary actions to signup a member and enlist them in the provided group ids. You can send the same member multiple times and pass in new group ids to signup.
This process triggers the opt-out workflow, and will send a mailing to the member on new group enlistments. If no new group ids are provided for an existing member, the endpoint will respond back with their status and member_id, performing no additional actions.
Parameters: |
|
---|---|
Return : | The member_id of the member, and their status. The status will be reported as ‘a’ (active), ‘e’ (error), or ‘o’ (optout). |
Archive an array of members.
The members will be archived and will be appear in the account's Archived Items section.
Parameters: |
|
---|---|
Returns : | True if all members are successfully deleted, otherwise False. |
Change the status for an array of members.
The members will have their member_status_id updated.
Parameters: |
|
---|---|
Returns : | True if the members are successfully updated, otherwise False. |
Update a single member’s information.
Update the information for an existing member (even if they are marked as deleted). Note that this method allows the email address to be updated (which cannot be done with a POST, since in that case the email address is used to identify the member).
Parameters: |
|
---|---|
Returns : | True if the member was updated successfully |
Raises : | Http404 if no member is found. |
Archive the specified member.
The member will be archived and will appear in the account's Archived Items section.
Returns : | True if the member is deleted. |
---|---|
Raises : | Http404 if no member is found. |
Get the groups to which a member belongs.
Returns : | An array of groups. |
---|---|
Raises : | Http404 if no member is found. |
Add a single member to one or more groups.
Parameters: |
|
---|---|
Returns : | An array of ids of the affected groups. |
Raises : | Http404 if no member is found. |
Remove a single member from one or more groups.
Parameters: |
|
---|---|
Returns : | An array of references to the affected groups. |
Raises : | Http404 if no member is found. |
Archive all members.
Parameters: |
|
---|---|
Returns : | Returns true. |
Remove the specified member from all groups.
Returns : | True if the member is removed from all groups. |
---|---|
Raises : | Http404 if no member is found. |
Remove multiple members from groups.
Parameters: |
|
---|---|
Returns : | True if the members are deleted, otherwise False. |
Raises : | Http404 if any of the members or groups do not exist |
Get the entire mailing history for a member.
Returns : | Message history details for the specified member. |
---|
Get a list of members affected by this import.
Parameters: |
|
---|---|
Returns : | A list of members in the given account and import. |
Get information and statistics about this import.
Returns : | Import details for the given import_id. |
---|
Get information about all imports for this account.
Returns : | An array of import details. |
---|
Copy all account members of one or more statuses into a group.
Parameters: |
|
---|---|
Returns : | True |
Raises : | Http404 if the group does not exist. |
Parameters: |
|
---|---|
Returns : | True |
Raises : | Http400 if the specified status is invalid |
Purge a list of members
This will provide compliance with GDPR right to erasure ('right to be forgotten').
Parameters: |
|
---|---|
Returns : | True |
Raises : | Http400 if the specified status is invalid |
Purge all archived members
This will provide compliance with GDPR right to erasure ('right to be forgotten').
Parameters: |
|
---|---|
Returns : | True |
Raises : | Http400 if the specified status is invalid |