Credits & Billing
The Email Validation API uses a credit-based billing system.
Each email validation consumes credits, whether processed individually or in bulk.
You can check your current balance, track usage, and handle low-credit scenarios using the Credits API.
This section explains how credits work, how they are consumed, and how to retrieve credit information programmatically.
1. Endpoint
GET /api/v1/credits/balance
Returns a detailed breakdown of your remaining credits and usage.
Authentication (Required)
2. Example Request
3. Success Response
Example (200 OK)
4. Credit Breakdown (Explained)
Field | Description |
|---|---|
available_credits | Total credits you currently have available |
used_credits | Credits consumed so far |
free_credits | Free or trial credits |
subscription_credits | Credits allocated from monthly subscription |
purchased_credits | Pay-as-you-go credits you bought |
bonus_credits | Promotional credits (expire sooner) |
reserved_credits | Credits reserved for running bulk jobs |
5. Credit Consumption Rules
Single Email Validation
Consumes:
1 credit / email
Bulk Validation
Consumes:
1 credit / email submitted
Failed or Invalid Emails
Still consume credits
Exception: Certain internal system errors may auto-refund (rare)
Job Failure
Credits for already processed emails remain consumed
Remaining unprocessed emails may not consume credits (depends on failure type)
6. Low Credits & Out-of-Credits Behavior
When credits run out, the API returns:
402 — Insufficient Credits
Clients should:
Halt large jobs
Notify the user
Prompt for purchasing more credits
7. Billing Models Supported
Your platform currently supports:
1. Subscription (Upcoming)
Credits added at the start of each billing cycle
Expire at the end of cycle (plan-specific)
2. Pay-As-You-Go (One-Time Credit Packs)
Credits never expire (unless marked as promotional)
Purchased through Stripe or other payment gateway
3. Bonus / Promo Credits
Expire in 30 days (if specified)
Used only after subscription & purchased credits are exhausted
8. Credit Best Practices
Fetch credit balance periodically to avoid job interruptions
Display credit warnings at thresholds (e.g., <50 credits)
Add "auto-recharge" option for users with recurring workloads
Reserve credits for large bulk jobs so they cannot be accidentally overspent
Track usage per user (in multi-tenant systems)
9. Error Responses
401 — Unauthorized
Missing/invalid API key:
429 — Rate Limit Exceeded