cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/proxy/redteam/test-custom \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "custom_prompt": "<string>", "target_preset": "default" } '
{ "test_name": "<string>", "prompt": "<string>", "decision": "<string>", "reason": "<string>", "threat_type": "<string>", "confidence": 123, "blocked": true, "details": {} }
Run a custom adversarial prompt test.
PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.
Request to run a red team test
Successful Response
Response from a red team test