Get DLP Rule
Return a DLP rule, seeded or custom.
Authentication
AuthorizationBearer
A management key (mgmt_...), sent as Authorization: Bearer <key>. Reading /v1/routing-policies also accepts the organization’s gateway API keys; writing there needs a management key.
Path parameters
rule_id
The rule’s id.
Response
The DLP rule
action
log records a match and sends the prompt unchanged, redact replaces each match with a placeholder such as <US_SSN> before the prompt is sent, and block refuses the request with 422.
Allowed values:
category
custom for rules the organization creates; global and usa are seeded.
Allowed values:
created_at
For a seeded rule never changed, the time of the request.
description
What the rule detects.
detection_method
How the rule finds matches, like Pattern match and checksum.
display_name
The name the dashboard shows.
enabled
Whether the rule scans requests.
entity_type
The rule's name. Unique among the organization's custom rules.
id
Stable for seeded rules, even before they are first changed.
is_seeded
Seeded rules can't be created or deleted, only enabled and given an action.
keywords
Words the rule matches, if it has any.
pattern
The rule's regular expression, if it has one.
updated_at
When the rule last changed.
Errors
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error