API Reference
The Mailbeam REST API allows you to verify email addresses, run batch jobs, and monitor your account usage.
Base URL
https://api.mailbeam.dev
All endpoints are under /v1/. Breaking changes will be introduced in new versions (/v2/, etc.).
Authentication
All requests require a Bearer token in the Authorization header:
Authorization: Bearer mb_live_xxxxxxxxxxxxxxxxxxxxSee Authentication for key types, rotation, and test mode.
Content type
Requests with a body must send Content-Type: application/json. All responses return Content-Type: application/json.
Versioning
The current API version is v1. We maintain backwards compatibility within a version. When breaking changes are necessary, we introduce a new version and deprecate the old one with at least 12 months notice.
Idempotency
The POST /v1/verify endpoint is safe to retry — it has no side effects. Calling it twice for the same email returns the same result (plus or minus timing/network variance).
For POST /v1/verify/batch, use the Idempotency-Key header to safely retry submissions without creating duplicate jobs:
Idempotency-Key: your-unique-job-idResponse envelope
All successful responses return the result directly (no envelope wrapper). Errors return:
{
"error": "error_code",
"message": "Human-readable description.",
"request_id": "req_01hx9abc123"
}Endpoints
| Method | Path | Description |
|---|---|---|
POST | /v1/verify | Verify a single email |
POST | /v1/verify/batch | Submit a batch of emails |
GET | /v1/jobs/:id | Poll a batch job status |
GET | /v1/account/usage | Get current quota usage |