Email Routing

EmailRouting

Methods

get(, ):
get/zones/{zone_id}/email/routing

Get information about the settings for your Email Routing zone.

disable(, ):
Deprecated
post/zones/{zone_id}/email/routing/disable

Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.

enable(, ):
Deprecated
post/zones/{zone_id}/email/routing/enable

Enable you Email Routing zone. Add and lock the necessary MX and SPF records.

Domain types

Settings{…}
Email Routing

Addresses

EmailRouting.Addresses

Methods

list(, ): <>
get/accounts/{account_id}/email/routing/addresses

Lists existing destination addresses.

get(, , ):
get/accounts/{account_id}/email/routing/addresses/{destination_address_identifier}

Gets information for a specific destination email already created.

create(, ):
post/accounts/{account_id}/email/routing/addresses

Create a destination address to forward your emails to. Destination addresses need to be verified before they can be used.

delete(, , ):
delete/accounts/{account_id}/email/routing/addresses/{destination_address_identifier}

Deletes a specific destination address.

Domain types

Address{…}

EmailRouting.DNS

Methods

get(, ):
get/zones/{zone_id}/email/routing/dns

Show the DNS records needed to configure your Email Routing zone.

create(, ):
post/zones/{zone_id}/email/routing/dns

Enable you Email Routing zone. Add and lock the necessary MX and SPF records.

edit(, ):
patch/zones/{zone_id}/email/routing/dns

Unlock MX Records previously locked by Email Routing.

delete(, ): <>
delete/zones/{zone_id}/email/routing/dns

Disable your Email Routing zone. Also removes additional MX records previously required for Email Routing to work.

Domain types

DNSRecord{…}

List of records needed to enable an Email Routing zone.

EmailRouting.Rules

Methods

list(, ): <>
get/zones/{zone_id}/email/routing/rules

Lists existing routing rules.

get(, , ):
get/zones/{zone_id}/email/routing/rules/{rule_identifier}

Get information for a specific routing rule already created.

create(, ):
post/zones/{zone_id}/email/routing/rules

Rules consist of a set of criteria for matching emails (such as an email being sent to a specific custom email address) plus a set of actions to take on the email (like forwarding it to a specific destination address).

update(, , ):
put/zones/{zone_id}/email/routing/rules/{rule_identifier}

Update actions and matches, or enable/disable specific routing rules.

delete(, , ):
delete/zones/{zone_id}/email/routing/rules/{rule_identifier}

Delete a specific routing rule.

Domain types

Action{…}

Actions pattern.

EmailRoutingRule{…}
Matcher{…}

Matching pattern to forward your actions.

EmailRouting.Rules.CatchAlls

Methods

get(, ):
get/zones/{zone_id}/email/routing/rules/catch_all

Get information on the default catch-all routing rule.

update(, ):
put/zones/{zone_id}/email/routing/rules/catch_all

Enable or disable catch-all routing rule, or change action to forward to specific destination address.

Domain types

CatchAllAction{…}

Action for the catch-all routing rule.

CatchAllMatcher{…}

Matcher for catch-all routing rule.