Skip to main content
GET
/
api
/
v1
/
presets
/
{preset_name}
Get Policy Preset
curl --request GET \
  --url https://api.promptguard.dev/api/v1/presets/{preset_name} \
  --header 'Authorization: Bearer <token>'
{
  "key": "<string>",
  "name": "<string>",
  "description": "<string>",
  "pii_detection": "<string>",
  "injection_detection": "<string>",
  "exfiltration_detection": "<string>",
  "output_safety": "<string>",
  "custom_patterns": [
    "<string>"
  ],
  "allowed_domains": [
    "<string>"
  ],
  "blocked_domains": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'

Path Parameters

preset_name
string
required

Response

Successful Response

key
string
required
name
string
required
description
string
required
pii_detection
string
required
injection_detection
string
required
exfiltration_detection
string
required
output_safety
string
required
custom_patterns
string[]
required
allowed_domains
string[]
required
blocked_domains
string[]
required