Skip to main content
POST
Run All Tests

Authorizations

X-API-Key
string
header
required

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

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

The whole corpus, plus the block rate that is the headline number.

total_tests
integer
required
blocked
integer
required
allowed
integer
required
block_rate
number
required

blocked / total_tests; 0.0 for an empty corpus, never a divide-by-zero.

results
TestResponse · object[]
required