ProtoGuard Config

ProtoGuard config controls prompt-injection filters and alert thresholds.

ProtoGuard Config object

Attributes

object

String

alert_filter_count_threshold

Number

filters

Object
{
"object": "protoguard.filter_config",
"alert_filter_count_threshold": 0,
"filters": [
{
"object": "protoguard.filter",
"issue_type": "instruction_override",
"severity": "low"
},
{
"object": "protoguard.filter",
"issue_type": "instruction_override",
"severity": "low"
}
]
}

Get ProtoGuard config

Retrieves ProtoGuard filter configuration for this instance.

No parameters required
GEThttp://api.metorial.com/protoguard-config
curl -X GET "https://api.metorial.com/protoguard-config" \
-H "Authorization: Bearer metorial_sk_..."

Update ProtoGuard filter config

Updates ProtoGuard filter settings for this instance.

URL Parameters

filter_id

String

The unique identifier for the filter

Request Body

enabled

BooleanOptional

alert_confidence_threshold

NumberOptionalNullable
POSThttp://api.metorial.com/protoguard-config/filters/:filter_id
curl -X POST "https://api.metorial.com/protoguard-config/filters/fil_Rm4Mnheq2bfEPhBhP7SY" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"enabled": false,
"alert_confidence_threshold": 0
}'

Set ProtoGuard alert filter count threshold

Sets or clears the number of matching ProtoGuard filters required to create an alert.

Request Body

threshold

NumberNullable
POSThttp://api.metorial.com/protoguard-config/alert-filter-count-threshold
curl -X POST "https://api.metorial.com/protoguard-config/alert-filter-count-threshold" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer metorial_sk_..." \
-d '{
"threshold": 0
}'