---
title: SYN Protection
---

[Skip to content](#_top)

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

[DDoS Protection](https://developers.cloudflare.com/api/go/resources/ddos_protection)

[Advanced TCP Protection](https://developers.cloudflare.com/api/go/resources/ddos_protection/subresources/advanced_tcp_protection)

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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/list)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Filters.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionSynProtectionFilterListResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterListResponse%20%3E%20(schema)>)], 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/create)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Filters.New(ctx, params) (\*[AdvancedTCPProtectionSynProtectionFilterNewResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterNewResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/filters/methods/bulk_delete)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Filters.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterBulkDeleteResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterItemGetResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterItemEditResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.filters.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionFilterItemDeleteResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/list)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Rules.List(ctx, params) (\*V4PagePaginationArray\[[AdvancedTCPProtectionSynProtectionRuleListResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleListResponse%20%3E%20(schema)>)], 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/create)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Rules.New(ctx, params) (\*[AdvancedTCPProtectionSynProtectionRuleNewResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleNewResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/subresources/rules/methods/bulk_delete)

client.DDoSProtection.AdvancedTCPProtection.SynProtection.Rules.BulkDelete(ctx, body) (\*[AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse](<https://developers.cloudflare.com/api/go/resources/ddos_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleBulkDeleteResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleItemGetResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleItemEditResponse%20%3E%20(schema)>), 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_protection/subresources/advanced_tcp_protection/subresources/syn_protection/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_protection#(resource)%20ddos_protection.advanced_tcp_protection.syn_protection.rules.items%20%3E%20(model)%20AdvancedTCPProtectionSynProtectionRuleItemDeleteResponse%20%3E%20(schema)>), error)

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