get_messages
URL: https://api.postageapp.com/v.1.0/get_messages.json
If you need to get a list of all message UIDs within your project, for subsequent use in collection statistics or open rates for example, you can supply the following data:
{ "api_key" : "PROJECT_API_KEY" }
If messages are found you'll get this response:
`{
"response": {
"status": "ok",
"uid": null
},
"data": {
"MESSAGE_UID": {
"project_id": PROJECT_ID,
"template": TEMPLATE_ID,
"transmissions_total": INT(TRANS_COUNT),
"transmissions_failed": INT(TRANS_FAIL),
"transmissions_completed": INT(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
}
}`