Autoresponders API
- Table of Contents
- Remote Lists
- Autoresponder Attributes
- Get a list of autoresponders
- Create a new autoresponder
- Update an existing autoresponder
- Get statistics for an autoresponder
Remote Lists
Autoresponders are not available on Remote Lists.
API calls to these endpoints will return an error message if attempted on a Remote List.
Autoresponder Attributes
autoresponder
hash
|
Get a list of autoresponders
Get a list of the basic details of all autoresponders of a particular mailing list.
URL
GET /ga/api/v2/mailing_lists/:mailing_list_id/autoresponders
Response
The response will be a JSON array where each element contains the Autoresponder Attributes.
Example
GET /ga/api/v2/mailing_lists/1/autoresponders
HTTP/1.1 200 OK
{
"success": true,
"data": [
{
"bounce_email_domain_id": null,
"bounce_email_user_id": null,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": null,
"from_name": null,
"id": 1,
"mailing_list_id": 1,
"name": "Autoresponder A",
"paused": false,
"paused_at": null,
"reply_to": null,
"segmentation_criteria_id": 1,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_autoresponder_to_click_id": null,
"trigger_autoresponder_to_click_on_any_url": null,
"trigger_autoresponder_to_click_urls": null,
"trigger_autoresponder_to_open_id": null,
"trigger_autoresponder_to_send_id": null,
"trigger_campaign_to_click_id": null,
"trigger_campaign_to_click_on_any_url": null,
"trigger_campaign_to_click_urls": null,
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": false,
"trigger_run_on_api": false,
"triggered_on": null,
"url_domain_id": null,
"use_external_delivery_setting": true,
"virtual_mta_id": null,
"special_sending_rule_id": null,
"special_sending_rule_name": null,
"content_subject": "test",
"content_format": "both",
"content_html": "",
"content_text": "",
"segmentation_criteria_name": "Named Segment #127"
},
{
"bounce_email_domain_id": null,
"bounce_email_user_id": null,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": null,
"from_name": null,
"id": 2,
"mailing_list_id": 1,
"name": "Autoresponder B",
"paused": false,
"paused_at": null,
"reply_to": null,
"segmentation_criteria_id": 2,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_autoresponder_to_click_id": null,
"trigger_autoresponder_to_click_on_any_url": null,
"trigger_autoresponder_to_click_urls": null,
"trigger_autoresponder_to_open_id": null,
"trigger_autoresponder_to_send_id": null,
"trigger_campaign_to_click_id": null,
"trigger_campaign_to_click_on_any_url": null,
"trigger_campaign_to_click_urls": null,
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": false,
"trigger_run_on_api": false,
"triggered_on": null,
"url_domain_id": null,
"use_external_delivery_setting": true,
"virtual_mta_id": null,
"special_sending_rule_id": null,
"special_sending_rule_name": null,
"content_subject": "test",
"content_format": "both",
"content_html": "",
"content_text": "",
"segmentation_criteria_name": "Named Segment #128"
},
{
"bounce_email_domain_id": 8,
"bounce_email_user_id": 14,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": "[email protected]",
"from_name": "Bob Example",
"id": 3,
"mailing_list_id": 1,
"name": "Autoresponder C",
"paused": false,
"paused_at": null,
"reply_to": "[email protected]",
"segmentation_criteria_id": 3,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_autoresponder_to_click_id": null,
"trigger_autoresponder_to_click_on_any_url": null,
"trigger_autoresponder_to_click_urls": null,
"trigger_autoresponder_to_open_id": null,
"trigger_autoresponder_to_send_id": null,
"trigger_campaign_to_click_id": null,
"trigger_campaign_to_click_on_any_url": null,
"trigger_campaign_to_click_urls": null,
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": false,
"trigger_run_on_api": false,
"triggered_on": null,
"url_domain_id": 91,
"use_external_delivery_setting": false,
"virtual_mta_id": 12,
"special_sending_rule_id": null,
"special_sending_rule_name": null,
"content_subject": "test",
"content_format": "both",
"content_html": "",
"content_text": "",
"segmentation_criteria_name": "Named Segment #129"
}
],
"error_code": null,
"error_message": null
}
Create a new autoresponder
Create a new autoresponder on the specified mailing list.
URL
POST /ga/api/v2/mailing_lists/:mailing_list_id/autoresponders
Request Parameters
The request body should be a JSON hash of Autoresponder Attributes.
Response
The response will be a JSON hash of Autoresponder Attributes.
Example
Note that the JSON response will not be “pretty formatted” as it is below.
> POST /ga/api/mailing_lists/1/autoresponders HTTP/1.1
> Authorization: Basic MToxNmRjYjllYmM1MzE1M2Q3YWViOTQ3YmE0MGE3NDVkMzc4N2ViYWJj
> Accept: application/json
> Content-Type: application/json
{
"autoresponder": {
"bounce_email_domain_id": 1,
"bounce_email_user_id": 1,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": "[email protected]",
"from_name": "Bob Example",
"name": "Autoresponder 2",
"paused": false,
"paused_at": null,
"reply_to": null,
"segmentation_criteria_id": 1,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": false,
"trigger_run_on_api": false,
"triggered_on": "2014-06-30",
"url_domain_id": 1,
"use_external_delivery_setting": true,
"virtual_mta_id": 0,
"content_format": "html",
"content_subject": "Welcome to our mailing list!",
"content_html": "<p>Welcome!</p>",
"special_sending_rule_id":123,
"special_sending_rule_name":"Customize Content"
}
}
< Content-Type: application/json; charset=utf-8
< X-UA-Compatible: IE=Edge
< ETag: "d5361297bdcff3a922bfe56d5f2398ad"
< Cache-Control: max-age=0, private, must-revalidate
< Set-Cookie: ["request_method=POST; path=/", "_session_id=4851f080c4908bd8fbe3809de3146c8d; path=/; HttpOnly"]
< X-Request-Id: bdc5494afb378e0e6aac27adf21ffd9f
< X-Runtime: 0.171395
< Connection: close
< Server: thin
{
"success": true,
"data": {
"bounce_email_domain_id": null,
"bounce_email_user_id": null,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": null,
"from_name": null,
"id": 3,
"mailing_list_id": 1,
"name": "Autoresponder 2",
"paused": false,
"paused_at": null,
"reply_to": null,
"segmentation_criteria_id": 1,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_autoresponder_to_open_id": null,
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": false,
"trigger_run_on_api": false,
"triggered_on": null,
"url_domain_id": null,
"use_external_delivery_setting": true,
"virtual_mta_id": null,
"special_sending_rule_id":92,
"special_sending_rule_name":"Customize Content",
"content_subject": "Welcome to our mailing list!",
"content_format": "html",
"content_html": "<h1>Welcome!</h1>",
"content_text": "",
"segmentation_criteria_name": "Named Segment #1"
},
"error_code": null,
"error_message": null
}
Update an existing autoresponder
Update an existing autoresponder.
URL
PUT /ga/api/v2/mailing_lists/:mailing_list_id/autoresponders/:id
Request Parameters
The request body should be a JSON hash of Autoresponder Attributes.
Response
The response will be a JSON hash of Autoresponder Attributes.
Example
Note that the JSON response will not be “pretty formatted” as it is below.
> PUT /ga/api/mailing_lists/1/autoresponders/1 HTTP/1.1
> Authorization: Basic MToxNmRjYjllYmM1MzE1M2Q3YWViOTQ3YmE0MGE3NDVkMzc4N2ViYWJj
> Accept: application/json
> Content-Type: application/json
{
"autoresponder": {
"from_email": "[email protected]",
"content_text": "foo bar"
}
}
< Content-Type: application/json; charset=utf-8
< X-UA-Compatible: IE=Edge
< ETag: "b85e60d89386b93deb04dca295faed38"
< Cache-Control: max-age=0, private, must-revalidate
< Set-Cookie: ["request_method=PUT; path=/", "_session_id=b8f57f23aeed1f8789cf890813e6805c; path=/; HttpOnly"]
< X-Request-Id: a8569a929868290a1c713285ebe1731a
< X-Runtime: 0.108229
< Connection: close
< Server: thin
{
"success": true,
"data": {
"bounce_email_domain_id": null,
"bounce_email_user_id": null,
"delay": "immediately",
"delay_amount": 0,
"delay_time": 0,
"delay_unit": null,
"from_email": null,
"from_name": null,
"id": 1,
"mailing_list_id": 1,
"name": "Subscription Autoresponder #1",
"paused": true,
"paused_at": null,
"reply_to": null,
"segmentation_criteria_id": 1,
"track_links": true,
"track_opens": true,
"trigger": "subscription",
"trigger_autoresponder_to_open_id": null,
"trigger_campaign_to_open_id": null,
"trigger_include_subscribers_from_import": true,
"trigger_run_on_api": true,
"triggered_on": null,
"url_domain_id": null,
"use_external_delivery_setting": true,
"virtual_mta_id": null,
"special_sending_rule_id": null,
"special_sending_rule_name": null,
"content_subject": "Welcome to my list!",
"content_format": "both",
"content_html": "<!DOCTYPE html>\r\n<html>\r\n<head>\r\n</head>\r\n<body>\r\n<p>I'm so pleased you could join us.</p>\r\n</body>\r\n</html>",
"content_text": "foo bar",
"segmentation_criteria_name": "Named Segment #1"
},
"error_code": null,
"error_message": null
}
Get statistics for an autoresponder
URL
GET /ga/api/v2/mailing_lists/:mailing_list_id/autoresponders/:id/statistics
GET /ga/api/v2/mailing_lists/:mailing_list_id/autoresponders/:id/statistics?start_date=20140302&end_date=20140401
Request Parameters
mailing_list_id
integer |
The |
id
integer |
The |
start_date
integer |
The earliest date (as an integer) that email was sent for the requested statistics. The result will include statistics for emails sent on this date. This can be blank. |
end_date
integer |
The latest date (as an integer) that email was sent for the requested statistics. The result will include statistics for emails sent on this date. This can be blank. |
Response
sent_text
integer |
Number of recipients that were sent a text-only message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
sent_html
integer |
Number of recipients that were sent a html-only message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
sent_multipart
integer |
Number of recipients that were sent a multipart message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
messages_sent
integer |
Total number of recipients. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
messages_html
integer |
Number of recipients that received either an HTML or multipart message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
messages_text
integer |
Number of recipients that received a text-only message. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_total
integer |
Total number of bounces received. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique
integer |
Unique (by subscriber) bounces received. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_hard
integer |
Number of unique (by subscriber) bounces where bounce_type is hard. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_soft
integer |
Number of unique (by subscriber) bounces where bounce_type is soft. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_other
integer |
Number of unique (by subscriber) bounces where bounce_type is other. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_local
integer |
Number of unique (by subscriber) bounces that were local. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_remote
integer |
Number of unique (by subscriber) bounces that were remote. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_status_updated
integer |
Number of recipients where status was updated to status
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounces_unique_by_code
hash |
Number of unique (by subscriber) bounces for each bounce code. The keys in the included hash are the bounce code. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounced
integer |
Deprecated: Unique (by subscriber) bounces received.
This is just another name for |
||||||||||||||||||||||||||||||||||||||||||||||||||||
duplicate_bounces
integer |
Number of non-unique bounces. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unbounced
integer |
Number of messages that were sent that have not bounced. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounce_rate
float |
Floating point value indicating the unique bounce rate for this autoresponder.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounce_rate_hard
float |
The ratio of the unique bounces that were hard bounces.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounce_rate_soft
float |
The ratio of the unique bounces that were soft bounces.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounce_rate_other
float |
The ratio of the unique bounces that were other bounces.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
bounce_local_rate
float |
The ratio of the unique bounces that were local bounces.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
clicks_total
integer |
Number of total clicks. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
clicks_unique
integer |
Number of unique clicks (unique by subscriber). |
||||||||||||||||||||||||||||||||||||||||||||||||||||
clicks_unique_by_link
integer |
Deprecated: Number of unique clicks (unique by subscriber/link) – this value does not carry much meaning. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
duplicate_clicks
integer |
Number of non-unique clicks. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
click_rate
float |
The ratio of messages that were accepted and have been clicked.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
click_to_open_rate
float |
The ratio of messages that were opened that have been clicked.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unclicked
integer |
Number of messages that were accepted by the remote server but have not been clicked. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
opens_total
integer |
Number of total opens |
||||||||||||||||||||||||||||||||||||||||||||||||||||
opens_unique
integer |
Number of unique opens (unique by subscriber) |
||||||||||||||||||||||||||||||||||||||||||||||||||||
open_rate
float |
Ratio of messages that were accepted that have been opened.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
open_ratio
float |
Average number of times each opened message has been opened ( |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unopened
integer |
Number of messages that were accepted and have not been opened. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
duplicate_opens
integer |
Number of non-unique opens. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
scomps_total
integer |
Number of spam complaints |
||||||||||||||||||||||||||||||||||||||||||||||||||||
scomps_unique
integer |
Number of unique spam complaints (unique by subscriber). |
||||||||||||||||||||||||||||||||||||||||||||||||||||
scomps_status_updated
integer |
Number of recipients where the status was updated to status
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
duplicate_scomps
integer |
Number of non-unique spam complaints. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
scomp_rate
float |
The ratio of messages that were accepted and complained.
This value ranges from We recommend using this statistic with great caution. Please read this article on why using a per-ISP complaint ratio is often better: https://www.greenarrowemail.com/blog/the-most-misunderstood-statistic-in-email-delivery |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unsubs_total
integer |
Number of total unsubscribes |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unsubs_unique
integer |
Number of unique unsubscribes (unique by subscriber) |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unsubs_status_updated
integer |
Number of recipients where the status was updated to status
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
duplicate_unsubs
integer |
Number of non-unique unsubscribes. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
unsub_rate
float |
The ratio of messages that were accepted and unsubscribed.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
skips_error
integer |
Number of messages that were skipped due to a Special Sending Rule error. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
skips_request
integer |
Number of messages that were skipped due to a Special Sending Rule request. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
total_messages
integer |
Total number of messages injected for this autoresponder. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
total_success
integer |
Number of messages that were successfully delivered to the remote server. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
total_failure
integer |
Number of messages ended due to SMTP conversation failures. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
total_failure_toolong
integer |
Number of messages ended due to being in the queue too long. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
accepted
integer |
Total number of messages that were accepted by the remote server. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
accepted_rate
float |
Ratio of messages that were attempted and accepted ( |
||||||||||||||||||||||||||||||||||||||||||||||||||||
in_queue
integer |
Number of messages that are currently in GreenArrow Engine’s delivery queue. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
in_queue_rate
float |
Ratio of the total number of messages that have been handed off to GreenArrow Engine and are still in queue.
This value ranges from |
||||||||||||||||||||||||||||||||||||||||||||||||||||
max_unique_activities
integer |
The max value of |
||||||||||||||||||||||||||||||||||||||||||||||||||||
privacy_protection
These are statistics broken down between subscribers that used privacy protection features (such as iCloud+ Private Relay or Mail Privacy Protection) and those that did not.
|
Example
> GET /ga/api/v2/mailing_lists/1/autoresponders/1/statistics HTTP/1.1
> Authorization: Basic MTo1ZTk2NDY1Yzg4M2YzMzA5ZjAxMDVhMmUxMDc2NjMyYjY4N2U2MWQy
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
> Host: greenarrow-studio.dev
> Accept: */*
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: Fri, 01 Jan 1990 00:00:00 GMT
< Content-Type: application/json; charset=utf-8
< X-UA-Compatible: IE=Edge
< Set-Cookie: _session_id=458055a23f26f844e74f8cd7300f6445; path=/; HttpOnly
< X-Request-Id: f6e40d578ed1d9c418cca45e1b7fe532
< X-Runtime: 0.025540
< Connection: close
{
"success": true,
"data": {
"sent_text": 0,
"sent_html": 1,
"sent_multipart": 0,
"bounces_total": 0,
"bounces_unique": 0,
"bounces_unique_hard": 0,
"bounces_unique_soft": 0,
"bounces_unique_other": 0,
"bounces_unique_local": 0,
"bounces_unique_remote": 0,
"clicks_total": 0,
"clicks_unique": 0,
"clicks_unique_by_link": 0,
"opens_total": 1,
"opens_unique": 1,
"scomps_total": 0,
"scomps_unique": 0,
"scomps_status_updated": 0,
"unsubs_total": 0,
"unsubs_unique": 0,
"unsubs_status_updated": 0,
"bounces_status_updated": 0,
"total_messages": 1,
"total_success": 1,
"total_failure": 0,
"total_failure_toolong": 0,
"skips_error": 0,
"skips_request": 0,
"bounces_unique_by_code": {
},
"messages_sent": 1,
"messages_html": 1,
"messages_text": 0,
"accepted": 1,
"accepted_rate": 1.0,
"in_queue": 0,
"in_queue_rate": 0.0,
"max_unique_activities": 1,
"open_rate": 1.0,
"open_ratio": 1.0,
"unopened": 0,
"duplicate_opens": 0,
"duplicate_clicks": 0,
"click_rate": 0.0,
"click_to_open_rate": 0.0,
"unclicked": 1,
"bounced": 0,
"duplicate_bounces": 0,
"unbounced": 1,
"bounce_rate": 0.0,
"bounce_rate_hard": 0.0,
"bounce_rate_soft": 0.0,
"bounce_rate_other": 0.0,
"bounce_local_rate": 0.0,
"duplicate_scomps": 0,
"scomp_rate": 0.0,
"duplicate_unsubs": 0,
"unsub_rate": 0.0,
"privacy_protection": {
"all_subscribers": {
"opens_unique": 1,
"opens_unique_rate": 1.0,
"opens_total": 1,
"privacy_opens_unique": 0,
"privacy_opens_unique_rate": 0.0,
"privacy_opens_total": 0,
"nonprivacy_opens_unique": 1,
"nonprivacy_opens_unique_rate": 1.0,
"nonprivacy_opens_total": 1,
"subscriber_count": 1
},
"privacy_subscribers": {
"opens_unique": 0,
"privacy_opens_unique": 0,
"privacy_opens_unique_rate": 0,
"privacy_opens_total": 0,
"nonprivacy_opens_unique": 0,
"nonprivacy_opens_unique_rate": 0,
"nonprivacy_opens_total": 0,
"subscriber_count": 0
},
"nonprivacy_subscribers": {
"opens_unique": 1,
"nonprivacy_opens_unique": 1,
"nonprivacy_opens_unique_rate": 1.0,
"nonprivacy_opens_total": 1,
"subscriber_count": 1
}
}
},
"error_code": null,
"error_message": null
}