Better API Access to Bounced/Failed Emails

Neal Lambert's Avatar

Neal Lambert

27 Feb, 2013 04:33 AM

We have several clients who have issues with certain emails not coming through. Usually its some kind of configuration error on their end or even and invalid email address. We are looking for a easier method to pull a list of failed email addresses. Currently we are pulling all the messages with get_messages and then using the get_message_transmissions on each failed message. This takes quite a bit of time and could be simplified into a single API call:

e.g.

URL:

https://api.postageapp.com/v.1.0/get_failed_messages.json

POST Parameters:

{ "api_key" : "PROJECT_API_KEY", "start_date" : "MM/DD/YYYY", "end_date" : "MM/DD/YYYY", }

Response:

"data" : { "results" : { "failed" : "25", "bounced" : "15", "failed_messages" : { "UID" : { "[email blocked]": { "status": "failed", "created_at": "2012-07-04 18:58:57", "failed_at": "2012-07-04 18:58:59", "opened_at": null, "result_code": "SMTP_250", "result_message": "2.0.0 FAILED 123456789 abc123" } } } "bounced_messages" : { "UID" : { "[email blocked]": { "status": "failed", "created_at": "2012-07-04 18:58:57", "failed_at": "2012-07-04 18:58:59", "opened_at": null, "result_code": "SMTP_250", "result_message": "2.0.0 BOUNCED 123456789 abc123" } } }

}
  1. 1 Posted by Neal Lambert on 27 Feb, 2013 04:36 AM

    Neal Lambert's Avatar

    Sorry the code bits got mangled:

    POST Parameters:

    { "api_key" : "PROJECT_API_KEY",
      "start_date" : "MM/DD/YYYY",
      "end_date" : "MM/DD/YYYY"
    }
    

    Response:

    "data" : {
        "results" : {
          "failed" : "25",
          "bounced" : "15",
          "failed_messages" : {
            "UID" : {
                "[email blocked]": {
                        "status": "failed",
                        "created_at": "2012-07-04 18:58:57",
                        "failed_at": "2012-07-04 18:58:59",
                        "opened_at": null,
                        "result_code": "SMTP_250",
                        "result_message": "2.0.0 FAILED 123456789 abc123"
                }
            }
          }
          "bounced_messages" : {
            "UID" : {
                "[email blocked]": {
                        "status": "failed",
                        "created_at": "2012-07-04 18:58:57",
                        "failed_at": "2012-07-04 18:58:59",
                        "opened_at": null,
                        "result_code": "SMTP_250",
                        "result_message": "2.0.0 BOUNCED 123456789 abc123"
                }
            }
          }
        }
    
  2. Postage Admin closed this discussion on 07 May, 2013 02:44 PM.

Discussions are closed to public comments.
If you need help with PostageApp please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

10 Mar, 2017 11:34 AM
09 Mar, 2017 01:23 PM
02 Feb, 2017 08:33 PM
10 Jan, 2017 02:28 PM
06 Jan, 2017 09:54 PM