# EmailRouting

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>

Methods:

- <code title="post /zones/{zone_id}/email/routing/disable">client.EmailRouting.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingService.Disable">Disable</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingDisableParams">EmailRoutingDisableParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="post /zones/{zone_id}/email/routing/enable">client.EmailRouting.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingService.Enable">Enable</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingEnableParams">EmailRoutingEnableParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/email/routing">client.EmailRouting.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingGetParams">EmailRoutingGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## DNS

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSRecord">DNSRecord</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSGetResponse">DNSGetResponse</a>

Methods:

- <code title="post /zones/{zone_id}/email/routing/dns">client.EmailRouting.DNS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSNewParams">DNSNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/email/routing/dns">client.EmailRouting.DNS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSDeleteParams">DNSDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#SinglePage">SinglePage</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSRecord">DNSRecord</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="patch /zones/{zone_id}/email/routing/dns">client.EmailRouting.DNS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSService.Edit">Edit</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSEditParams">DNSEditParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Settings">Settings</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/email/routing/dns">client.EmailRouting.DNS.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSGetParams">DNSGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#DNSGetResponse">DNSGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Rules

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#ActionParam">ActionParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#MatcherParam">MatcherParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Action">Action</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Matcher">Matcher</a>

Methods:

- <code title="post /zones/{zone_id}/email/routing/rules">client.EmailRouting.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleNewParams">RuleNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="put /zones/{zone_id}/email/routing/rules/{rule_identifier}">client.EmailRouting.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, ruleIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleUpdateParams">RuleUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/email/routing/rules">client.EmailRouting.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleListParams">RuleListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /zones/{zone_id}/email/routing/rules/{rule_identifier}">client.EmailRouting.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, ruleIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleDeleteParams">RuleDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/email/routing/rules/{rule_identifier}">client.EmailRouting.Rules.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, ruleIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleGetParams">RuleGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#EmailRoutingRule">EmailRoutingRule</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

### CatchAlls

Params Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#CatchAllActionParam">CatchAllActionParam</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#CatchAllMatcherParam">CatchAllMatcherParam</a>

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#CatchAllAction">CatchAllAction</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#CatchAllMatcher">CatchAllMatcher</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllUpdateResponse">RuleCatchAllUpdateResponse</a>
- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllGetResponse">RuleCatchAllGetResponse</a>

Methods:

- <code title="put /zones/{zone_id}/email/routing/rules/catch_all">client.EmailRouting.Rules.CatchAlls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllService.Update">Update</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllUpdateParams">RuleCatchAllUpdateParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllUpdateResponse">RuleCatchAllUpdateResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /zones/{zone_id}/email/routing/rules/catch_all">client.EmailRouting.Rules.CatchAlls.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllGetParams">RuleCatchAllGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#RuleCatchAllGetResponse">RuleCatchAllGetResponse</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>

## Addresses

Response Types:

- <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Address">Address</a>

Methods:

- <code title="post /accounts/{account_id}/email/routing/addresses">client.EmailRouting.Addresses.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressService.New">New</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressNewParams">AddressNewParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Address">Address</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/email/routing/addresses">client.EmailRouting.Addresses.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressService.List">List</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, params <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressListParams">AddressListParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination">pagination</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/packages/pagination#V4PagePaginationArray">V4PagePaginationArray</a>[<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Address">Address</a>], <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="delete /accounts/{account_id}/email/routing/addresses/{destination_address_identifier}">client.EmailRouting.Addresses.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressService.Delete">Delete</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, destinationAddressIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, body <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressDeleteParams">AddressDeleteParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Address">Address</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
- <code title="get /accounts/{account_id}/email/routing/addresses/{destination_address_identifier}">client.EmailRouting.Addresses.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressService.Get">Get</a>(ctx <a href="https://pkg.go.dev/context">context</a>.<a href="https://pkg.go.dev/context#Context">Context</a>, destinationAddressIdentifier <a href="https://pkg.go.dev/builtin#string">string</a>, query <a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#AddressGetParams">AddressGetParams</a>) (\*<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing">email_routing</a>.<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v6/email_routing#Address">Address</a>, <a href="https://pkg.go.dev/builtin#error">error</a>)</code>
