Black Friday25% off all plans and credit packsSee prices
BounceLayer

API Documentation & Agent Reference

AI Discovery & Agent Manifests

Full AI Discovery Page

BounceLayer is built from the ground up to be autonomous agent-discoverable. Autonomous systems like Claude, Cursor, ChatGPT, and Windsurf can inspect our endpoints and tool specifications without human configuration.

Model Context Protocol (MCP)Cursor • Claude • Windsurf
npm @bouncelayer/mcp

1-Command MCP Server for Cursor, Claude & Autonomous Agents

Connect your IDE or conversational prompt directly to our verification socket with zero local backend code:

npx -y @bouncelayer/mcp
Configuration in .cursor/mcp.json:
{
  "mcpServers": {
    "bouncelayer": {
      "command": "npx",
      "args": ["-y", "@bouncelayer/mcp"],
      "env": {
        "BOUNCELAYER_API_KEY": "bl_live_your_api_key_here"
      }
    }
  }
}

AI Agent Tool Schemas

When using the BounceLayer MCP server, AI assistants have direct access to these deterministic tools:

verify_emailTool

Check one address: format, domain, mailbox (SMTP), throwaway, role and catch-all, with a plain-English reason. Needs an API key. 1 credit; unknown results are free.

Parameters:
email: string *The email address to check
submit_bulk_verificationTool

Queue a list for checking in the background. Needs an API key. Reserves credits.

Parameters:
emails: string[] *Email addresses, up to your plan's job limit (300 on Free, up to 250,000 on Scale)
webhook_url: string Optional URL to call when the job finishes
get_bulk_jobTool

Get a list job's progress and, when it's done, the results. Needs an API key. Free.

Parameters:
job_id: string *The job_id from submit_bulk_verification
list_bulk_jobsTool

List your recent list jobs, newest first. Needs an API key. Free.

Parameters:
page: integer Page number (default 1)
page_size: integer Jobs per page
status: string Only jobs with this status
cancel_bulk_jobTool

Stop a list job that's still running and release its reserved credits. Needs an API key. Free.

Parameters:
job_id: string *The job to cancel
get_credit_balanceTool

See your credit balance and lifetime usage. Needs an API key. Free.

Parameters:None
verify_email_demoTool

No key needed. Checks format, typos, throwaway domains and whether the domain has mail servers. It never checks the mailbox, so a good address comes back unknown.

Parameters:
email: string *The email address to check
create_agent_accountTool

No key needed. Gets the agent its own API key with 25 free credits and a claim link. A person opens the link to take over the account and get 300 free checks a month.

Parameters:
label: string A name for the agent, shown in the dashboard
get_api_discoveryTool

No key needed. Links to the MCP server, REST API, sign-up, docs and OpenAPI spec.

Parameters:None

Quickstart & Authentication

All production requests require an API key generated from your Dashboard API Keys. Include it on every request via the X-API-Key or Authorization: Bearer header.

Production Base URL: https://api.bouncelayer.com/v1
Header: X-API-Key: bl_live_your_api_key_here
Every account receives 300 free verification credits every month. Purchased credits never expire.
curl -X POST https://api.bouncelayer.com/v1/verify/single \
  -H "X-API-Key: bl_live_9a8b7c6d5e4f3a2b1c0d" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "alex@company.com"
  }'
Live Response Simulator
{
  "success": true,
  "credits_used": 1,
  "result": {
    "email": "alex@company.com",
    "status": "valid",
    "is_valid": true,
    "syntax_valid": true,
    "domain": "company.com",
    "domain_valid": true,
    "has_mx": true,
    "mx_records": [
      {
        "priority": 10,
        "host": "aspmx.l.google.com"
      }
    ],
    "smtp_checked": true,
    "smtp_response_code": 250,
    "is_disposable": false,
    "is_role_based": false,
    "is_catch_all": false,
    "is_free_provider": false,
    "confidence_score": 98,
    "status_reason": "mailbox_confirmed",
    "provider": "google",
    "verification_time_ms": 118,
    "cached": false
  }
}

Single Verification Endpoint

POST /api/v1/verify/single

Runs a live 7-layer verification, usually in a few seconds. Performs syntax check, authoritative MX resolution, disposable domain firewall lookup, and raw TCP port 25 socket handshake without sending an email.

FieldTypeRequiredDescription
emailstringRequiredThe email address to verify
timeout_msnumberOptionalSocket timeout in ms (default: 4500ms)

Bulk Verification Endpoint

POST /api/v1/verify/bulk

Asynchronously cleans lists of up to 100,000 email addresses. Supply a webhook_url for instant signed callbacks, or poll the job endpoint:

Poll Status: GET /api/v1/verify/bulk/{job_id} (0 Credits / Free)
Export Clean CSV: GET /api/v1/verify/bulk/{job_id}/download?format=csv

Credits & Telemetry Endpoint

GET /api/v1/credits

Returns your active balance, consumed monthly quota, and next billing cycle renewal. Always 100% free to call.

Transparent Credit & Plan EconomicsView Interactive Calculator →

Monthly Subscription Tiers (Cancel Anytime):

  • • Starter: 5,000 checks — $12/mo ($0.0024/check)
  • • Growth: 25,000 checks — $29/mo ($0.00116/check)
  • • Pro: 100,000 checks — $79/mo ($0.00079/check)
  • • Business: 500,000 checks — $249/mo ($0.000498/check)
  • • Scale: 2,000,000 checks — $699/mo ($0.00035/check)

Pay-As-You-Go Packs (Credits Never Expire):

  • • Mini Pack: 2,000 credits — $6.99 (Entry starter)
  • • Starter Pack: 5,000 credits — $14.99
  • • Growth Pack: 25,000 credits — $34.99
  • • Pro Pack: 100,000 credits — $99.00 ($0.99/1k emails)
  • • Business Pack: 500,000 credits — $299.00
  • • Scale Pack: 1,000,000 credits — $549.00

The 7-Layer RFC 5321 Verification Stack

L1 • RFC 5322 Syntax Standard

Grammar checks across quotes, unquoted spaces, punycode, and length standards.

L2 • DNS & TLD Viability Check

Asynchronous lookup of root nameservers, SOA, and A/AAAA records.

L3 • Authoritative MX Routing

Discovers Mail Exchanger nodes and tests RFC 7505 Null MX dead domain entries.

L4 • Direct Port 25 SMTP Ping

Raw TCP socket handshake testing HELO, MAIL FROM, and RCPT TO without sending mail.

L5 • 100K+ Burner Disposable Firewall

Instant memory Trie match against throwaway, temp-mail, and 10-minute inboxes.

L6 • Catch-All Detection

Probes randomized aliases to detect accept-all policies and rate deliverability.

Status Reasons & 0-Credit Policy

BounceLayer only charges when we provide a definitive verdict. If a target mail server times out or triggers aggressive anti-spam challenge (unknown), **0 credits are deducted**.

status_reasonVerdictDescriptionCost
mailbox_confirmedvalidRemote mail server confirmed mailbox exists with 250 OK1 Credit
mailbox_not_foundinvalidRemote mail server returned 550 User Unknown1 Credit
failed_syntax_checkinvalidMalformed address failing RFC 5322 structure1 Credit
no_dns_entriesinvalidTarget domain does not exist in public authoritative DNS1 Credit
no_mx_recordsinvalidDomain has no valid Mail Exchanger (MX) records1 Credit
disposabledisposableMatches 100,000+ temporary burner domains firewall (Disposable)1 Credit
role_baseddo_not_mailGeneric departmental account (e.g. info@, support@)1 Credit
accept_allcatch_allDomain accepts all addresses; specific mailbox cannot be isolated1 Credit
antispam_systemunknownRemote MTA blocked probe or requires human challenge0 Credits (Free)
failed_smtp_connectionunknownTCP port 25 connection timed out or dropped0 Credits (Free)
greylistingunknownRemote MTA deferred connection per greylisting policy0 Credits (Free)

Webhooks & Cryptographic Signatures

Every webhook delivery includes an X-BounceLayer-Signature header generated using HMAC-SHA256 over the raw JSON payload. Verify it to prevent spoofing. Read the dedicated Webhooks Guide for code samples in Node.js, Python, and Go.

Error Codes & Rate Limits

Full HTTP & SMTP Codes