---
title: SYN 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**

# SYN Protection

#### SYN ProtectionFilters

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

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

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

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

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

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

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

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

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

#### SYN ProtectionFiltersItems

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

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

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

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

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

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

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

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

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

#### SYN ProtectionRules

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

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

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

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

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

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

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

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

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

#### SYN ProtectionRulesItems

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

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

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

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

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

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

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

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

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