Reference · Account
Report emails that bounced
POST /api/v1/bounces
Tell us which emails bounced. We check each address again ourselves, usually within minutes, and if it is dead now you get back what you were charged for it, once. Charges of the last 30 days count. An address that still accepts mail, or that we cannot confirm, gets no credit back. See Credits. The answer says what happens to each address; ask the list of reports for the result.
Credits: Free.
Body (JSON)
| Name | Type | Required | What it is |
|---|---|---|---|
emails | array of string | yes | The addresses that bounced. Up to 1,000 per call. up to 1,000 |
Example request
curl -X POST "https://moleman.io/api/v1/bounces" \
-H "Authorization: Bearer $MOLEMAN_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"emails":["office@example.com"]}'Example answer
{
"checking": 1,
"leftToday": 999,
"reports": [
{
"email": "office@example.com",
"status": "checking",
"word": "Checking it again"
}
]
}Errors
| Status | Code | When |
|---|---|---|
| 401 | missing_api_key | The request has no API key. |
| 401 | invalid_api_key | The API key is not one of ours (a typo, a cut-off copy, or a key from another account that was deleted). |
| 401 | revoked_api_key | The API key was revoked on the API page (at once), or it was rotated and its 24 hours are over. Old test keys (mm_test_) are revoked too. |
| 401 | expired_api_key | The API key reached the expiry date set when it was created. |
| 429 | rate_limited | More than 120 requests in one minute with this key. |
| 500 | server_error | Something broke on our side. Nothing was charged for it. |
| 400 | invalid_request | A parameter is missing, has the wrong type or is out of range. details lists every problem with its path. |
| 400 | invalid_json | The body is not valid JSON. |
| 409 | idempotency_in_progress | A request with the same Idempotency-Key is still running. |
| 422 | idempotency_key_reused | The Idempotency-Key was already used in the last 24 hours with a different request. |