---
title: Custom Topics
---

[Skip to content](#%5Ftop) 

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

[AI Security](https://developers.cloudflare.com/api/resources/ai%5Fsecurity)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Custom 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