Skip to content
BounceRill

API reference

Classify email addresses by how likely they are to accept mail. Generated from the OpenAPI contract (version 1.0.0).

Base URL

ServerURL
Productionhttps://api.bouncerill.com
Local developmenthttp://localhost:8787

BounceRill classifies email addresses before you send, so you can cut bounces caused by nonexistent mailboxes while excluding as few good addresses as possible.

How classification works

Every address receives a delivery_likelihood:

Value Meaning
high Recent positive evidence that this exact mailbox accepts mail: the recipient's mail server confirmed it (and rejects addresses that do not exist), or your sending provider observed a delivery.
low Conclusive evidence that mail will not be delivered: invalid syntax, a domain that does not exist, a Null MX record, no mail route, the recipient's server stating the mailbox does not exist, or a recent permanent bounce.
uncertain Not enough evidence either way: the domain accepts every address, the server refused or failed to answer, evidence is stale or conflicting, or the format is not supported yet.

Each result carries a stable machine-readable reason, the time the check ran (checked_at) and the time of the evidence behind the decision (evidence_at). These two dates are different on purpose: a check made today may rely on a delivery observed five days ago.

To verify a mailbox, BounceRill opens an SMTP conversation with the domain's mail server and asks whether it would accept the recipient (RCPT TO), then ends the conversation before any message is sent. Domains that accept every address are detected and reported as accept_all_domain. Delivery events you report from your own sending provider (see POST /v1/evidence) complement this, for example to resolve accept-all domains.

Authentication

Send your API key as a bearer token: Authorization: Bearer brk_live_.... Keys are created in the dashboard and are shown only once. Every resource is scoped to the account that owns the key; another account's batch identifiers return 404.

Errors

Errors share one shape: {"error": {"code": "invalid_row", "message": "rows[12].email is required"}}. The code is stable; the message is for humans. Every response carries an X-Request-Id header; include it when you contact support.

Batches

Asynchronous classification of up to 50,000 addresses per request.

GET/v1/batches

List batches

Newest first.

Requires an API key.

Parameters

NameInTypeDescription
limitqueryintegermin 1, max 1000, default 100
cursorquerystringOpaque next_cursor from the previous page.

Responses

200 A page of batches.

FieldTypeDescription
batchesarray of object
batches[].batch_idstring (uuid)
batches[].namestring | null
batches[].statusstringone of queued, processing, completed
batches[].totalintegermin 1
batches[].processedintegermin 0
batches[].summaryobjectClassification counts of the rows processed so far.
batches[].summary.highinteger
batches[].summary.uncertaininteger
batches[].summary.lowinteger
batches[].created_atstring (date-time)
batches[].started_atstring | null (date-time)
batches[].completed_atstring | null (date-time)
next_cursorstring | null

400 Invalid input. Codes: invalid_json, invalid_request, invalid_batch, invalid_row, invalid_evidence, invalid_idempotency_key, invalid_cursor, invalid_limit, invalid_filter.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

POST/v1/batches

Submit a batch

Persists the batch and returns 202 once it is durable; processing happens in the background. Retrying with the same Idempotency-Key and the same body returns the original batch. Reusing a key with a different body returns 409 idempotency_conflict. Duplicate addresses are kept and are distinguished by their position (1-based input order).

Requires an API key.

Parameters

NameInTypeDescription
Idempotency-Key requiredheaderstringUnique per account. Use a UUID per logical submission.min length 1, max length 200

Request body

JSON body of at most 40 MiB.

FieldTypeDescription
namestringOptional label shown in the dashboard, such as the source file name.max length 200
rows requiredarray of objectmin 1 items, max 50000 items
rows[].id requiredstringYour reference for the row (for example a CRM id). Returned unchanged.min length 1, max length 256
rows[].email requiredstringMailbox address (addr-spec onlymax length 1024
rows[].evidence_kindstringOptional delivery outcome you already know for this exact address. Requires observed_at.one of delivered, mailbox_not_found
rows[].observed_atstring (date-time)When that outcome was observed. Must not be in the future. Requires evidence_kind.
Request example
{
  "name": "spring-campaign.csv",
  "rows": [
    {
      "id": "crm-001",
      "email": "ana@example.com"
    },
    {
      "id": "crm-002",
      "email": "ben@example.org",
      "evidence_kind": "delivered",
      "observed_at": "2026-11-25T09:30:00Z"
    }
  ]
}

Responses

202 The batch is durable and queued.

FieldTypeDescription
batch_idstring (uuid)
namestring | null
statusstringone of queued, processing, completed
totalintegermin 1
processedintegermin 0
summaryobjectClassification counts of the rows processed so far.
summary.highinteger
summary.uncertaininteger
summary.lowinteger
created_atstring (date-time)
started_atstring | null (date-time)
completed_atstring | null (date-time)

400 Invalid input. Codes: invalid_json, invalid_request, invalid_batch, invalid_row, invalid_evidence, invalid_idempotency_key, invalid_cursor, invalid_limit, invalid_filter.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

402 The monthly row quota would be exceeded (quota_exceeded).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

409 The Idempotency-Key was already used with a different body (idempotency_conflict).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

413 The body exceeds the size limit (payload_too_large).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

429 Too many requests (rate_limited). Wait for the number of seconds in Retry-After.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

GET/v1/batches/{id}

Get batch progress

Requires an API key.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)

Responses

200 Current state, counts and category distribution of the rows processed so far.

FieldTypeDescription
batch_idstring (uuid)
namestring | null
statusstringone of queued, processing, completed
totalintegermin 1
processedintegermin 0
summaryobjectClassification counts of the rows processed so far.
summary.highinteger
summary.uncertaininteger
summary.lowinteger
created_atstring (date-time)
started_atstring | null (date-time)
completed_atstring | null (date-time)

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

404 No such batch in this account (batch_not_found).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

DELETE/v1/batches/{id}

Delete a batch and all its rows

Permanent. Batches are also deleted automatically after the retention period (30 days by default).

Requires an API key.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)

Responses

204 Deleted.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

404 No such batch in this account (batch_not_found).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

GET/v1/batches/{id}/results

Read results in input order

Available once the batch is completed. Pages are stable; follow next_cursor until it is null.

Requires an API key.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)
cursorqueryintegernext_cursor from the previous page. Omit for the first page.min 0
limitqueryintegermin 1, max 1000, default 100
likelihoodquerystringReturn only rows with this classification.one of high, uncertain, low

Responses

200 A page of results. A null next_cursor marks the last page.

FieldTypeDescription
resultsarray of object
results[].positioninteger1-based input order.min 1
results[].idstring
results[].emailstring
results[].delivery_likelihoodstringone of high, uncertain, low
results[].reasonstringStable reason code. See the reason table above.
results[].checked_atstring (date-time)When BounceRill evaluated the address.
results[].evidence_atstring | null (date-time)When the evidence behind the decision was observed. Null when there is no evidence (temporary errors
results[].attributesobjectInformational traits. They never change delivery_likelihood.
results[].attributes.role_accountbooleanLocal part names a role or function (info@, sales@, noreply@).
results[].attributes.free_providerbooleanDomain belongs to a free consumer mailbox provider.
results[].attributes.disposablebooleanDomain is a known disposable or temporary mailbox service.
results[].suggestionstring | nullLikely intended address when the domain looks like a typo of a popular provider, for example gmial.com to gmail.com.
next_cursorinteger | null

400 Invalid input. Codes: invalid_json, invalid_request, invalid_batch, invalid_row, invalid_evidence, invalid_idempotency_key, invalid_cursor, invalid_limit, invalid_filter.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

404 No such batch in this account (batch_not_found).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

409 The batch is still processing (batch_incomplete). Poll GET /v1/batches/{id}.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

GET/v1/batches/{id}/results.csv

Download all results as CSV

Streams every row in input order with a header line. Columns: position, id, email, delivery_likelihood, reason, checked_at, evidence_at, role_account, free_provider, disposable, suggestion. Cells that a spreadsheet could interpret as a formula are prefixed with an apostrophe.

Requires an API key.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)
likelihoodquerystringone of high, uncertain, low

Responses

200 CSV file.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

404 No such batch in this account (batch_not_found).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

409 The batch is still processing (batch_incomplete). Poll GET /v1/batches/{id}.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

Verify

Synchronous classification of a single address.

POST/v1/verify

Classify one address now

For sign-up forms and interactive checks. Uses the same rules and evidence as batches. Counts as one row of usage.

Requires an API key.

Request body

FieldTypeDescription
email requiredstringmax length 1024
Request example
{
  "email": "ana@gmial.com"
}

Responses

200 Classification.

FieldTypeDescription
emailstring
delivery_likelihoodstringone of high, uncertain, low
reasonstringStable reason code. See the reason table above.
checked_atstring (date-time)When BounceRill evaluated the address.
evidence_atstring | null (date-time)When the evidence behind the decision was observed. Null when there is no evidence (temporary errors
attributesobjectInformational traits. They never change delivery_likelihood.
attributes.role_accountbooleanLocal part names a role or function (info@, sales@, noreply@).
attributes.free_providerbooleanDomain belongs to a free consumer mailbox provider.
attributes.disposablebooleanDomain is a known disposable or temporary mailbox service.
suggestionstring | nullLikely intended address when the domain looks like a typo of a popular provider, for example gmial.com to gmail.com.
Response example
{
  "email": "ana@gmial.com",
  "delivery_likelihood": "uncertain",
  "reason": "mailbox_unconfirmed",
  "checked_at": "2026-11-27T10:00:00Z",
  "evidence_at": "2026-11-27T10:00:00Z",
  "attributes": {
    "role_account": false,
    "free_provider": false,
    "disposable": false
  },
  "suggestion": "ana@gmail.com"
}

400 Invalid input. Codes: invalid_json, invalid_request, invalid_batch, invalid_row, invalid_evidence, invalid_idempotency_key, invalid_cursor, invalid_limit, invalid_filter.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

402 The monthly row quota would be exceeded (quota_exceeded).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

429 Too many requests (rate_limited). Wait for the number of seconds in Retry-After.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

Evidence

Delivery events from your sending provider that power high and mailbox-level low results.

POST/v1/evidence

Report delivery events

Send delivery outcomes from your sending provider. They complement SMTP verification, for example for domains that accept every address. Events are deduplicated by event_id within your account, so retries and replays are safe. Events may arrive late or out of order: the newest observed_at wins, not the newest arrival.

Only delivered and mailbox_not_found change classifications. temporary_failure and policy_rejection are stored for reporting but say nothing about whether the mailbox exists. Evidence is private to your account and is never used for other customers.

Requires an API key.

Request body

FieldTypeDescription
events requiredarray of objectmin 1 items, max 10000 items
events[].event_id requiredstringYour provider's unique event identifier.min length 1, max length 256
events[].email requiredstringmax length 1024
events[].kind requiredstringone of delivered, mailbox_not_found, temporary_failure, policy_rejection
events[].observed_at requiredstring (date-time)
Request example
{
  "events": [
    {
      "event_id": "ses-0001",
      "email": "ana@example.com",
      "kind": "delivered",
      "observed_at": "2026-11-26T18:02:11Z"
    },
    {
      "event_id": "ses-0002",
      "email": "old@example.org",
      "kind": "mailbox_not_found",
      "observed_at": "2026-11-26T18:02:15Z"
    }
  ]
}

Responses

200 Events stored.

FieldTypeDescription
acceptedintegerNew events stored.
duplicatesintegerEvents whose event_id was already stored.
skippedintegerEvents for addresses that cannot be evaluated (invalid or unsupported

400 Invalid input. Codes: invalid_json, invalid_request, invalid_batch, invalid_row, invalid_evidence, invalid_idempotency_key, invalid_cursor, invalid_limit, invalid_filter.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

413 The body exceeds the size limit (payload_too_large).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

429 Too many requests (rate_limited). Wait for the number of seconds in Retry-After.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

Account

Usage and limits.

GET/v1/usage

Usage in the current calendar month (UTC)

Requires an API key.

Responses

200 Usage counters.

FieldTypeDescription
period_startstring (date-time)
period_endstring (date-time)
rows_usedintegerBatch rows plus single verifications this month.
monthly_quotainteger | nullNull means unlimited.

401 Missing, invalid or revoked API key (invalid_api_key).

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.

System

GET/healthz

Health check

No authentication required.

Responses

200 The service and its database are reachable.

FieldTypeDescription
statusstringone of ok

503 A dependency is temporarily unavailable (service_unavailable). Retry with backoff.

FieldTypeDescription
errorobject
error.codestringStable machine-readable code.
error.messagestringHuman-readable explanation.