Skip to content
Start here

Custom Topics

Get the AI Security for Apps custom topics of a zone.
ai_security.custom_topics.get(CustomTopicGetParams**kwargs) -> CustomTopicGetResponse
GET/zones/{zone_id}/ai-security/custom-topics
Update the AI Security for Apps custom topics of a zone.
ai_security.custom_topics.update(CustomTopicUpdateParams**kwargs) -> CustomTopicUpdateResponse
PUT/zones/{zone_id}/ai-security/custom-topics
ModelsExpand Collapse
class CustomTopicGetResponse: …
topics: Optional[List[Topic]]

Custom topic categories for AI Security for Apps content detection.

label: str

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

maxLength20
minLength2
topic: str

Description of the topic category. Must contain 2–50 UTF-8 bytes. Text in any language is supported, including spaces, numbers, punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed.

class CustomTopicUpdateResponse: …
topics: Optional[List[Topic]]

Custom topic categories for AI Security for Apps content detection.

label: str

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

maxLength20
minLength2
topic: str

Description of the topic category. Must contain 2–50 UTF-8 bytes. Text in any language is supported, including spaces, numbers, punctuation, and symbols. Tabs, line breaks, invalid text, and invisible formatting characters are not allowed.