API docs

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)

NameTypeRequiredWhat it is
emailsarray of stringyesThe addresses that bounced. Up to 1,000 per call. up to 1,000

Example request

Shell
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

JSON
{
  "checking": 1,
  "leftToday": 999,
  "reports": [
    {
      "email": "office@example.com",
      "status": "checking",
      "word": "Checking it again"
    }
  ]
}

Errors

StatusCodeWhen
401missing_api_keyThe request has no API key.
401invalid_api_keyThe API key is not one of ours (a typo, a cut-off copy, or a key from another account that was deleted).
401revoked_api_keyThe 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.
401expired_api_keyThe API key reached the expiry date set when it was created.
429rate_limitedMore than 120 requests in one minute with this key.
500server_errorSomething broke on our side. Nothing was charged for it.
400invalid_requestA parameter is missing, has the wrong type or is out of range. details lists every problem with its path.
400invalid_jsonThe body is not valid JSON.
409idempotency_in_progressA request with the same Idempotency-Key is still running.
422idempotency_key_reusedThe Idempotency-Key was already used in the last 24 hours with a different request.