Skip to main content
Pro Feature: The blocklist functionality requires a Pro account. Upgrade now to unlock this feature.

Overview

The blocklist feature allows you to maintain a custom list of domains that should be blocked in your application. This is useful for:
  • Enforcing company-specific email policies
  • Blocking competitors or specific organizations
  • Maintaining a custom deny list beyond disposable email detection
  • Implementing organization-specific compliance rules
Environment-Specific: Blocklists are environment-specific. Domains blocklisted in your test environment will not affect your production environment and vice versa.

List Blocklisted Domains

Retrieves a paginated list of all domains in your blocklist.

Query Parameters

integer
default:"25"
Number of results per page (1-100)

Request Example

Response Example


Add Single Domain

Adds a single domain to your blocklist.

Request Body

string
required
The domain to add to the blocklist (e.g., example.com)

Request Example

Response Example

Error Responses

Domain Already Blocklisted (422)

Add Multiple Domains (Bulk)

Adds up to 1,000 domains to your blocklist in a single request. Automatically handles duplicates.

Request Body

array
required
Array of domain strings to add (maximum 1,000 domains per request)

Request Example

Response Example

Bulk operations automatically deduplicate entries. If a domain is already in your blocklist, it will be marked as failed but won’t cause the entire request to fail.

Check Domain Status

Checks if a specific domain is in your blocklist.

Request Example

Response Example

Error Response (Not Found)


Remove Domain

Removes a domain from your blocklist.

Request Example

Response Example


Common Error Responses

Unauthorized (401)

Pro Feature Required (403)

Upgrade to Pro

Unlock blocklist management and other Pro features

Best Practices

Always test blocklist changes in your development environment before applying them to production to avoid accidentally blocking legitimate users.
When adding multiple domains, use the bulk endpoint to reduce API calls and improve performance.
Keep an internal record of why domains are blocklisted to help with future audits and policy reviews.
Periodically audit your blocklist to remove outdated entries and ensure it aligns with current policies.
Use blocklists in addition to disposable email detection for comprehensive fraud prevention.

Integration Example