---
title: TCP Flow Protection
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/go)

[DDoS Protection](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection)

[Advanced TCP Protection](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# TCP Flow Protection

#### TCP Flow ProtectionFilters

##### [List all TCP Flow Protection filters.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/methods/list)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionTCPFlowProtectionFilterListResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterListResponse%20%3E%20%28schema%29)\], error)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

##### [Create a TCP Flow Protection filter.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/methods/create)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.New(ctx, params) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterNewResponse%20%3E%20%28schema%29), error)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

##### [Delete all TCP Flow Protection filters.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/methods/bulk%5Fdelete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterBulkDeleteResponse%20%3E%20%28schema%29), error)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters

#### TCP Flow ProtectionFiltersItems

##### [Get TCP Flow Protection filter.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/subresources/items/methods/get)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Get(ctx, filterID, query) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterItemGetResponse%20%3E%20%28schema%29), error)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

##### [Update TCP Flow Protection filter.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/subresources/items/methods/edit)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Edit(ctx, filterID, params) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterItemEditResponse%20%3E%20%28schema%29), error)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

##### [Delete TCP Flow Protection filter.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/filters/subresources/items/methods/delete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Filters.Items.Delete(ctx, filterID, body) (\*[AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.filters.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionFilterItemDeleteResponse%20%3E%20%28schema%29), error)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/filters/{filter\_id}

#### TCP Flow ProtectionRules

##### [List all TCP Flow Protection rules.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/methods/list)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionTCPFlowProtectionRuleListResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleListResponse%20%3E%20%28schema%29)\], error)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

##### [Create TCP Flow Protection rule.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/methods/create)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.New(ctx, params) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleNewResponse%20%3E%20%28schema%29), error)

POST/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

##### [Delete all TCP Flow Protection rules.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/methods/bulk%5Fdelete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleBulkDeleteResponse%20%3E%20%28schema%29), error)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules

#### TCP Flow ProtectionRulesItems

##### [Get TCP Flow Protection rule.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/subresources/items/methods/get)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Get(ctx, ruleID, query) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleItemGetResponse%20%3E%20%28schema%29), error)

GET/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}

##### [Update TCP Flow Protection rule.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/subresources/items/methods/edit)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Edit(ctx, ruleID, params) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleItemEditResponse%20%3E%20%28schema%29), error)

PATCH/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}

##### [Delete TCP Flow Protection rule.](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection/subresources/advanced%5Ftcp%5Fprotection/subresources/tcp%5Fflow%5Fprotection/subresources/rules/subresources/items/methods/delete)

client.DDoSProtection.AdvancedTCPProtection.TCPFlowProtection.Rules.Items.Delete(ctx, ruleID, body) (\*[AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse](https://developers.cloudflare.com/api/go/resources/ddos%5Fprotection#%28resource%29%20ddos%5Fprotection.advanced%5Ftcp%5Fprotection.tcp%5Fflow%5Fprotection.rules.items%20%3E%20%28model%29%20AdvancedTCPProtectionTCPFlowProtectionRuleItemDeleteResponse%20%3E%20%28schema%29), error)

DELETE/accounts/{account\_id}/magic/advanced\_tcp\_protection/configs/tcp\_flow\_protection/rules/{rule\_id}