Overview
This endpoint updates an email address’s routing configuration and status. It automatically updates AWS SES receipt rules to reflect the changes and ensures proper email forwarding.Authentication
Bearer token for API authentication. Format:
Bearer YOUR_API_KEY
Parameters
The unique identifier of the email address to update.
Request Body
ID of the endpoint to route emails to. Set to
null
to remove endpoint routing. Cannot be used together with webhookId
.ID of the webhook to route emails to. Set to
null
to remove webhook routing. Cannot be used together with endpointId
.Whether the email address should be active and able to receive emails.
Response
Unique identifier for the email address.
The email address (e.g., “hello@example.com”).
ID of the domain this email address belongs to.
ID of the webhook endpoint for routing emails (if using webhook routing).
ID of the endpoint for routing emails (if using endpoint routing).
Whether this email address is active and can receive emails.
Whether AWS SES receipt rule is configured for this email address.
Name of the AWS SES receipt rule for this email address.
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 information for this email address.
Updated email routing configuration.
Warning message if there were issues with AWS SES configuration updates.
Examples
Update Routing to Endpoint
Update Routing to Webhook
Disable Email Address
Remove All Routing
Response
Error Responses
Update Behavior
Routing Changes
When updating routing configuration:1
Validation
The system validates that the new endpoint or webhook exists and belongs to your account.
Setting both
endpointId
and webhookId
in the same request will result in an error.2
Automatic Clearing
Setting an
endpointId
automatically clears any existing webhookId
, and vice versa.This ensures only one routing method is active at a time.
3
SES Rule Updates
AWS SES receipt rules are automatically updated to reflect the new routing configuration.
This ensures emails are properly routed without manual intervention.
Status Changes
- Setting
isActive: false
disables email receiving but preserves routing configuration - Setting
isActive: true
re-enables email receiving with existing routing - SES receipt rules are updated based on the new active status
Important Notes
AWS SES receipt rules are automatically updated when you change routing configuration. This ensures emails are properly forwarded to the new destination.
You cannot specify both
endpointId
and webhookId
in the same request. The system will automatically clear the conflicting routing method.Set routing IDs to
null
to remove that routing method. This is useful when switching from endpoint to webhook routing or removing all routing.Related Endpoints
- Get email address:
GET /api/v2/email-addresses/{id}
- Delete email address:
DELETE /api/v2/email-addresses/{id}
- List all email addresses:
GET /api/v2/email-addresses
- Manage endpoints:
GET /api/v2/endpoints
- Manage webhooks:
GET /api/v2/webhooks
Notes
- Only specify the fields you want to update - omitted fields remain unchanged
- Routing configuration changes are immediately reflected in AWS SES receipt rules
- Email addresses can function without routing (emails received but not forwarded)
- The domain must remain verified for the email address to receive emails
- Both endpoint and webhook routing provide reliable email delivery