Create Email Address
POST /api/e2/email-addresses
Create a new email address for an authenticated user’s domain, optionally routing to a webhook or endpoint.
Request Parameters
Complete email address (e.g.,
[email protected]).Must match valid email format and belong to the specified domain.ID of the verified domain this email address belongs to.
ID of the endpoint to route emails to. Mutually exclusive with
webhookId.ID of the webhook to route emails to. Mutually exclusive with
endpointId.Whether the email address is active and should receive emails.
Response
Unique identifier for the email address.
The email address.
ID of the parent domain.
ID of the configured webhook (if any).
ID of the configured endpoint (if any).
Whether the email address is active.
Whether AWS SES receipt rule is configured for this address.
Name of the AWS SES receipt rule.
ISO 8601 timestamp when the email address was created.
ISO 8601 timestamp when the email address was last updated.
ID of the user who owns this email address.
Domain reference object.
Routing configuration.
Warning message if AWS configuration is incomplete.
List Email Addresses
GET /api/e2/email-addresses
Get paginated list of email addresses for authenticated user with optional filtering by domain, active status, and receipt rule configuration.
Query Parameters
Maximum number of email addresses to return (1-100).
Number of email addresses to skip for pagination.
Filter by domain ID.
Filter by active status:
true or false.Filter by receipt rule configuration:
true or false.Response
Array of email address objects (same structure as Create Email Address response).
Pagination metadata.
Get Email Address
GET /api/e2/email-addresses/:id
Get a specific email address by ID with detailed information including routing configuration.
Response
Same structure as Create Email Address response.Update Email Address
PATCH /api/e2/email-addresses/:id
Update an email address’s routing configuration and active status.
Request Parameters
ID of the endpoint to route emails to. Set to
null to remove endpoint routing.ID of the webhook to route emails to. Set to
null to remove webhook routing.Whether the email address should be active and receive emails.
Response
Same structure as Create Email Address response.Delete Email Address
DELETE /api/e2/email-addresses/:id
Delete an email address. The address will no longer receive emails.
Response
Whether the deletion was successful.
Human-readable message about the deletion result.
ID of the deleted email address.
Validation Rules
Email Address Format
- Must be a valid email format:
[email protected] - Domain must match the specified
domainId - Must be unique across the platform
Routing Configuration
- Only one routing method can be active: either
endpointIdORwebhookId - The specified endpoint or webhook must:
- Belong to the same user
- Be active
- Exist in the system
Domain Requirements
- Parent domain must be:
- Owned by the user
- In
verifiedstatus - Have DNS records properly configured