---
title: AI Security
---

[Skip to content](#%5Ftop) 

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

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# AI Security

##### [Get the AI Security for Apps status for a zone.](https://developers.cloudflare.com/api/resources/ai%5Fsecurity/methods/get)

GET/zones/{zone\_id}/ai-security/settings

##### [Update the AI Security for Apps status for a zone.](https://developers.cloudflare.com/api/resources/ai%5Fsecurity/methods/update)

PUT/zones/{zone\_id}/ai-security/settings

##### ModelsExpand Collapse 

AISecurityGetResponse object { enabled } 

AI Security for Apps enablement status for a zone.

enabled: optional boolean

Whether AI Security for Apps is enabled on the zone.

AISecurityUpdateResponse object { enabled } 

AI Security for Apps enablement status for a zone.

enabled: optional boolean

Whether AI Security for Apps is enabled on the zone.

#### AI SecurityCustom Topics

##### [Get the AI Security for Apps custom topics of a zone.](https://developers.cloudflare.com/api/resources/ai%5Fsecurity/subresources/custom%5Ftopics/methods/get)

GET/zones/{zone\_id}/ai-security/custom-topics

##### [Update the AI Security for Apps custom topics of a zone.](https://developers.cloudflare.com/api/resources/ai%5Fsecurity/subresources/custom%5Ftopics/methods/update)

PUT/zones/{zone\_id}/ai-security/custom-topics

##### ModelsExpand Collapse 

CustomTopicGetResponse object { topics } 

topics: optional array of object { label, topic } 

Custom topic categories for AI Security for Apps content detection.

label: string

Unique label identifier. Must contain only lowercase letters (a–z), digits (0–9), and hyphens.

maxLength20

minLength2

topic: string

Description of the topic category. Must contain only printable ASCII characters.

maxLength50

minLength2

CustomTopicUpdateResponse object { topics } 

topics: optional array of object { label, topic } 

Custom topic categories for AI Security for Apps content detection.

label: string

Unique label identifier. Must contain only lowercase letters (a–z), digits (0–9), and hyphens.

maxLength20

minLength2

topic: string

Description of the topic category. Must contain only printable ASCII characters.

maxLength50

minLength2