Make your first verification request
The official API quickstart starts with a key from Settings → API keys and an address you are authorized to test. Set the key in your current environment. The curl request below is copied from that quickstart; the Node.js and Python examples are adaptations of the same HTTP request, not separate SDKs.
Send a POST to https://api.bounceless.io/v1/verify with JSON input, your X-Api-Key and an Idempotency-Key. Use a fresh idempotency key for a new check. The fixed value below is an example for this one request, not a value to share across unrelated addresses or operations.
curl
curl --request POST https://api.bounceless.io/v1/verify \
--silent --show-error \
--header "X-Api-Key: $BOUNCELESS_API_KEY" \
--header "Idempotency-Key: 1c7c7e4e-172c-49d1-adf4-d9f97b801e41" \
--header "Content-Type: application/json" \
--data '{"email":"controlled@example.com"}'
Node.js: the same request with fetch
const response = await fetch("https://api.bounceless.io/v1/verify", {
method: "POST",
headers: {
"X-Api-Key": process.env.BOUNCELESS_API_KEY,
"Idempotency-Key": "1c7c7e4e-172c-49d1-adf4-d9f97b801e41",
"Content-Type": "application/json",
},
body: JSON.stringify({ email: "controlled@example.com" }),
});
console.log(response.status, await response.json());
Python: the same request with urllib
import json
import os
import urllib.request
request = urllib.request.Request(
"https://api.bounceless.io/v1/verify",
data=json.dumps({"email": "controlled@example.com"}).encode(),
headers={
"X-Api-Key": os.environ["BOUNCELESS_API_KEY"],
"Idempotency-Key": "1c7c7e4e-172c-49d1-adf4-d9f97b801e41",
"Content-Type": "application/json",
},
method="POST",
)
with urllib.request.urlopen(request) as response:
print(response.status, json.load(response))
These minimal examples show the request and expose the HTTP status and response. Before production use, connect status handling to your application's own error and review paths. Keep secrets out of browser code, URLs and diagnostic output. The authentication guide covers key handling.
Handle completion and acceptance differently
A completed single verification returns HTTP 200. Read the additive presend object for new integrations: status tells you whether a decision is ready, verdict describes the observation, decision recommends an action, reasons explain the evidence and billing reports the credits for that response. Older sibling fields remain during the compatibility window; use the documented envelope rather than mixing fields from different contracts.
HTTP 202 has a different meaning. The synchronous wait ended before the engine completed, so the response includes engineJobId, requestId and a presend object without a decision. It bills zero credits. Record those identifiers instead of automatically submitting the address again. There is no single-result polling route in the documented four-route API.
This distinction affects the integration you choose. If your application must eventually retrieve a final result, start with the batch flow even for a small amount of work. Do not build a polling URL by guessing from the single request's job identifier. Follow the single verification reference for the complete response contract.
Create a batch, check status, retrieve results
Submit a batch through POST /v1/requests. The create-batch reference accepts exactly one source: an inline emails array or a listId for a ready list already stored in the account. Creation returns 202; an identical idempotent replay returns 200 with the same request ID. Retain request.id for subsequent calls.
Use the request status endpoint to inspect the batch, then the request results endpoint to retrieve its output. Check the finalization information before treating a result set as complete. A submitted batch and a finalized batch are different states in your application's workflow.
Keep batch identifiers alongside the work that created them, so your process can resume checking status without creating another job. Preserve per-address results when applying your own campaign policy. A list summary is useful for progress, but the reason to exclude or review a particular address belongs with that address.
Build around decisions and reasons
The decision and reason code dictionary separates an observation from an action. A DELIVERABLE verdict normally maps to send, while a missing mailbox maps to suppress. A CATCH_ALL verdict maps to enrich_first because a catch-all response does not establish individual mailbox existence. That is a reason to gather authorized context or recheck, not to assume delivery.
Other documented actions include send_with_caution, recheck_later and manual_review. A do_not_decide value stops automated decision-making, and a null decision is not actionable. Route these cases explicitly in your application. In particular, avoid a fallback that treats every unfamiliar value as send simply because a request succeeded at the HTTP layer.
Preserve reasons as machine-readable evidence, including future codes your application does not yet recognize. Branch on the decision rather than parsing human explanations. Read presend.billing.disposition and presend.billing.credits for the reported credit handling. Unknown outcomes are not billed, and confidence is confidence in the verification decision rather than an inbox placement prediction.
Use the CLI or MCP for other developer workflows
The Bounceless CLI guide documents single verification and batch submit, status and results commands. Use the status command to check finalization before treating a batch export as complete. The CLI offers a shell workflow for the same verification task without requiring you to write an HTTP client first.
The verification MCP server guide documents a local stdio server, with an API key in the client environment and tools for verification, batches, job status and results. This verification server is separate from a documentation search connection. Choose the interface that fits your workflow while keeping the same care around secrets, incomplete results and sending decisions.