Skip to main content
GET
Get Custom Rule
Return the full editable definition for a customer-owned custom rule.

Path Parameters

string
required
Custom rule identifier (typically prefixed with cust_)

Response

string
Rule identifier
string
Human-readable rule name
string
AI_SIGNAL, REGEX, or REQUIRE_NEAR
string
fix or flag
string
do_not_send or send_with_caution
string
Stored suggested replacement or warning guidance when present
string
Always custom
boolean
Whether the rule currently runs during validation
string
Remediation guidance when present
string
AI instruction (AI_SIGNAL only)
array
Keyword gate (AI_SIGNAL only)
string
sentence, paragraph, or document (AI_SIGNAL only)
string
Regex pattern (REGEX only)
string
Anchor regex (REQUIRE_NEAR only)
array
Near-pattern regexes (REQUIRE_NEAR only)
integer
Character distance (REQUIRE_NEAR)
string
before, after, or either (REQUIRE_NEAR)
boolean
Case-insensitive matching (REQUIRE_NEAR)
string
document or page (REQUIRE_NEAR)
integer
Minimum near hits (REQUIRE_NEAR)
string
Source import ID when the rule was created via policy import
string
ISO 8601 creation timestamp
string
ISO 8601 last-update timestamp when present

Errors

Example