Skip to main content
POST
Run Named Test

Authorizations

X-API-Key
string
header
required

PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.

Path Parameters

test_name
string
required

Body

application/json

Body for run-all (where custom_prompt is ignored) and run-custom.

custom_prompt
string | null
target_preset
string
default:default

Response

Successful Response

One attack prompt and what the policy engine decided about it.

test_name
string
required
prompt
string
required
decision
string
required
reason
string
required
threat_type
string | null
required
confidence
number | null
required
blocked
boolean
required