ProtoGuard Config
ProtoGuard config controls prompt-injection filters and alert thresholds.
ProtoGuard Config object
Attributes
object
Stringalert_filter_count_threshold
Numberfilters
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
StringThe unique identifier for the filter
Request Body
enabled
BooleanOptionalalert_confidence_threshold
NumberOptionalNullablePOSThttp://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
NumberNullablePOSThttp://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}'