Skip to main content
POST
Apply Overlay Endpoint

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
name
string
required
Required string length: 1 - 120
delta
OverlayDelta · object
required

Additive deltas over a base policy config.

Everything here is meant to tighten. Loosening ops (raising a threshold, dropping a detection level toward permissive, disabling a guardrail) are permitted to be expressed but are flagged as warnings in the diff.

project_id
string | null
acknowledge_loosening
boolean
default:false

Response

Successful Response

id
string
required
name
string
required
version
integer
required
status
string
required
project_id
string | null
required
warnings
OverlayWarningOut · object[]
required