Skip to content
Start here

Custom Topics

Get the AI Security for Apps custom topics of a zone.
client.aiSecurity.customTopics.get(CustomTopicGetParams { zone_id } params, RequestOptionsoptions?): CustomTopicGetResponse { topics }
GET/zones/{zone_id}/ai-security/custom-topics
Update the AI Security for Apps custom topics of a zone.
client.aiSecurity.customTopics.update(CustomTopicUpdateParams { zone_id, topics } params, RequestOptionsoptions?): CustomTopicUpdateResponse { topics }
PUT/zones/{zone_id}/ai-security/custom-topics
ModelsExpand Collapse
CustomTopicGetResponse { topics }
topics?: Array<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 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.

CustomTopicUpdateResponse { topics }
topics?: Array<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 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.