Block list and usage
Your block list stops email from being sent to addresses that cannot or do not want to receive it. Addresses that bounce permanently or mark your email as spam are added automatically.
List blocked addresses #
GET
/v1/blocklist Returns your blocked addresses and why each was added: bounce, complaint or manual.
Query parameters
-
limitinteger - Results per page, 1–100. Default 20.
-
cursorstring - The
next_cursorfrom the previous page.
curl "$MAILA_API_URL/v1/blocklist" \
-H "Authorization: Bearer $MAILA_API_KEY" {
"object": "list",
"data": [
{
"object": "blocked_address",
"address": "old-address@example.com",
"reason": "bounce",
"source_item_id": "msg_mvdliiuwzfsa7ngv",
"created_at": 1792335462
}
],
"next_cursor": null
} Block an address #
POST
/v1/blocklist Adds an address. Email to it is refused until you remove it.
Body
-
addressstring required - The email address to block.
curl -X POST "$MAILA_API_URL/v1/blocklist" \
-H "Authorization: Bearer $MAILA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "address": "jane@example.com" }' Remove a blocked address #
DELETE
/v1/blocklist/{address} Removes an address so you can email it again. Write the @ as %40.
Path parameters
-
addressstring required - The blocked address.
curl -X DELETE "$MAILA_API_URL/v1/blocklist/jane%40example.com" \
-H "Authorization: Bearer $MAILA_API_KEY" Get usage #
GET
/v1/usage Returns how many emails you have sent this month and your monthly limit. The count resets on the first day of each month (UTC).
curl "$MAILA_API_URL/v1/usage" \
-H "Authorization: Bearer $MAILA_API_KEY" {
"object": "usage",
"month": "2026-10",
"sent_count": 12,
"send_limit": 100,
"tier": "Starter"
}