Returns a list of all message UIDs within your project.

URL: https://api.postageapp.com/v.1.0/get_messages.json

Request

{
   "api_key" : "PROJECT_API_KEY"
}

Response 200 OK

{
    "response": {
        "status": "ok",
        "uid": null
    },
    "data": {
        "MESSAGE_UID": {
            "project_id": "PROJECT_ID",
            "template": "TEMPLATE_ID",
            "transmissions_total": "TRANS_COUNT",
            "transmissions_failed": "TRANS_FAIL",
            "transmissions_completed": "TRANS_COMPLETE",
            "created_at": "UTC_DATE_CREATED",
            "will_purge_at": "UTC_DATE_TO_PURGE"
        }
    }
}

If there were no messages sent within the last 14-28 days (depending on plan), you will receive the following:

{
    "response": {
        "status": "ok",
        "uid": null
    }
}
comments powered by Disqus