cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/proxy/redteam/test-all \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "custom_prompt": "<string>", "target_preset": "default" } '
{ "total_tests": 123, "blocked": 123, "allowed": 123, "block_rate": 123, "results": [ { "test_name": "<string>", "prompt": "<string>", "decision": "<string>", "reason": "<string>", "threat_type": "<string>", "confidence": 123, "blocked": true, "details": {} } ] }
Run all red team tests and return summary.
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
Summary of all red team tests
Show child attributes