curl https://api.unspam.email/ext/v2/inbox-placement/mailboxes \
-H "Authorization: Bearer $UNSPAM_TOKEN"
# response (200)
[
{ "id": 3, "name": "Gmail", "address": "..." },
{ "id": 7, "name": "Outlook", "address": "..." },
...
]
# pick the IDs you want to test,
# pass them in the next request.
curl -X POST https://api.unspam.email/ext/v2/inbox-placement \
-H "Authorization: Bearer $UNSPAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "mailboxes": [3] }'
# response (201)
{
"id": "abc123",
"mailboxes": [
{ "id": 3, "name": "Gmail", "address": "..." }
]
}
# send your email to each address,
# with the test id somewhere in the body.
curl https://api.unspam.email/ext/v2/inbox-placement/abc123 \
-H "Authorization: Bearer $UNSPAM_TOKEN"
# response (200)
{
"id": "abc123",
"status": "completed",
"results": [
{
"mailbox": { "name": "Gmail", ... },
"status": "delivered",
"tab": "inbox",
"sender_ip": "192.0.2.1",
"blacklists": 0
}
],
"report_url": "https://unspam.email/inbox-test/abc123"
}