Skip to main content
POST
Scan Content

Authorizations

X-API-Key
string
header
required

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

Headers

x-api-key
string | null

Body

application/json
content
string
required

Text to scan

Maximum string length: 100000
type
string
default:prompt

Content type: 'prompt' or 'response'

Pattern: ^(prompt|response)$

Response

Successful Response

blocked
boolean
required
decision
string
required
reason
string
required
confidence
number
required
eventId
string
required
processingTimeMs
number
required
threatType
string | null