With these endpoints, you can get information about your mailings including their HTML contents. You can retrieve the members to whom the mailing was sent. You can also pause mailings and cancel mailings that are pending or paused.
Get information about current mailings.
Parameters: |
|
---|---|
Raises : | Http400 if invalid mailing types or statuses are specified. |
Returns : | An array of mailings. |
Get detailed information for one mailing.
Parameters: |
|
---|---|
Returns : | A mailing. |
Raises : | Http404 if no mailing is found. |
Get the list of members to whom the given mailing was sent. This does not include groups or searches.
Returns : | An array of members including status and member fields. |
---|---|
Raises : | Http404 if no mailing is found. |
Gets the personalized message content as sent to a specific member as part of the specified mailing.
Parameters: |
|
---|---|
Returns : | Message content from a mailing, personalized for a member. The response will contain all parts of the mailing content by default, or just the type of content specified by type. |
Raises : | Http404 if no message is found. |
Raises : | Http500 if allowed_types is not valid. |
Get the groups to which a particular mailing was sent.
Returns : | An array of groups. |
---|---|
Raises : | Http404 if no mailing is found. |
Get the subscriptions to which a particular mailing was sent.
Returns : | An array of subscriptions. |
---|---|
Raises : | Http404 if no mailing is found. |
Get all searches associated with a sent mailing.
Returns : | An array of searches. |
---|---|
Raises : | Http404 if no mailing is found. |
Get all suppressed searches associated with a sent mailing.
Returns : | An array of suppressed searches. |
---|---|
Raises : | Http404 if no mailing is found. |
Get all suppressed members for a particular mailing.
Returns : | An array of suppressed members. |
---|---|
Raises : | Http404 if no mailing is found. |
Update status of a current mailing
The status can be one of canceled, paused or ready. This method can be used to control the progress of a mailing by pausing, canceling or resuming it. Once a mailing is canceled it can’t be resumed, and will not show in the normal mailing_list output.
Parameters: |
|
---|---|
Raises : | Http404 if no mailing is found. |
Raises : | Http400 if the mailing is already in Completed or Sending status and cannot be updated. |
Raises : | Http400 if the mailing is in Pending or Unapproved status and the html or plaintext is missing a required tag. |
Raises : | Http400 if the mailing is in Pending or Unapproved status and cannot be rescheduled. |
Raises : | Http400 if an invalid status is passed in. |
Raises : | Http400 if the mailing is already canceled. |
Returns : | The updated mailing |
Sets archived timestamp for a mailing so it is no longer included in mailing_list.
Returns : | True if the mailing is successfully archived. |
---|
Cancels a mailing that has a current status of pending or paused. All other statuses will result in a 403.
Returns : | True if mailing marked as cancelled. |
---|---|
Raises : | Http403 if the current mailing status is not pending or paused. |
Raises : | Http404 if no mailing is found. |
Forward a previous message to additional recipients. If these recipients are not already in the audience, they will be added with a status of FORWARDED.
Parameters: |
|
---|---|
Returns : | A reference to the new mailing_id. |
Raises : | Http404 if no message is found. |
Send a prior mailing to additional recipients. A new mailing will be created that inherits its content from the original.
Parameters: |
|
---|---|
Returns : | A reference to the new mailing_id. |
Raises : | Http404 if no mailing is found. |
Get heads up email address(es) related to a mailing.
Returns : | An array of heads up email addresses. |
---|---|
Raises : | Http404 if no mailing is found. |
Validate that a mailing has valid personalization-tag syntax. Checks tag syntax in three params:
Parameters: |
|
---|---|
Returns : | true |
Raises : | Http400 if any tags are invalid. The response body will have information about the invalid tags. |
Declare the winner of a split test manually. In the event that the test duration has not elapsed, the current stats for each test will be frozen and the content defined in the user declared winner will sent to the remaining members for the mailing. Please note, any messages that are pending for each of the test variations will receive the content assigned to them when the test was initially constructed.
Returns : | True on success. |
---|---|
Raises : | Http403 if the winner cannot be manually declared. |
Raises : | Http404 if the mailing is not found. |
Raises : | Http404 if the winning_id mailing is not found. |