Overview
This endpoint allows you to enable or disable catch-all email forwarding for a domain. When enabled, all emails sent to any address on the domain (including non-existent ones) will be forwarded to the specified endpoint.This endpoint can only be used with verified domains. Domains in
pending
or failed
status cannot have catch-all enabled.Authentication
Bearer token for API authentication. Format:
Bearer YOUR_API_KEY
Parameters
The unique identifier of the domain to update.
Whether to enable or disable catch-all email forwarding for this domain.
The ID of the endpoint to use for catch-all email forwarding. Required when
isCatchAllEnabled
is true
. Set to null
when disabling catch-all.Response
Unique identifier for the domain.
The domain name (e.g., “example.com”).
Current verification status:
pending
, verified
, or failed
.Whether catch-all email forwarding is enabled for this domain.
ID of the endpoint used for catch-all email forwarding.
Information about the catch-all endpoint (if configured).
Name of the AWS SES receipt rule created for this catch-all configuration.
Warning message if there were issues with AWS SES configuration.
ISO 8601 timestamp when the domain was last updated.
Examples
Enable Catch-All
Disable Catch-All
Success Response
Error Responses
Important Notes
When catch-all is enabled, it configures AWS SES receipt rules to forward all emails to the specified endpoint. This includes emails to non-existent addresses on your domain.
Enabling catch-all will remove any existing individual email receipt rules for this domain to prevent conflicts. When disabling catch-all, individual email rules will be restored automatically.
The endpoint you specify must be active and belong to your account. We recommend using webhook endpoints for catch-all forwarding as they provide the most flexibility.
Behavior Details
When Enabling Catch-All:
- The system validates that the domain is verified
- The specified endpoint is validated to ensure it exists and is active
- AWS SES receipt rules are configured to forward all emails to the endpoint
- Any existing individual email rules for this domain are removed to prevent conflicts
- The domain’s catch-all configuration is updated in the database
When Disabling Catch-All:
- AWS SES catch-all receipt rules are removed
- Individual email rules for existing email addresses are restored
- The domain’s catch-all configuration is cleared in the database
AWS SES Integration:
- Receipt rules are created using the domain name (e.g.,
example.com-catchall-rule
) - AWS SES uses the domain name pattern to catch all emails to that domain
- If AWS configuration is incomplete, the database will still be updated but no receipt rules will be created
1.0 - ✅