cURL
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>" ] }
Get a specific policy preset
API Key authentication for developer endpoints (/api/v1/*). Use format: 'Bearer pg_api_your_key_here'
Successful Response