Skip to main content
POST
Create Project

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
name
string
required
description
string | null
fail_mode
enum<string>
default:open

Behaviour when the detection engine errors: 'open' forwards the request, 'closed' rejects it with 503.

Available options:
open,
closed
use_case
string
default:default
strictness_level
string
default:moderate

Response

Successful Response

id
string
required
name
string
required
description
string | null
required
fail_mode
string
required
use_case
string
required
strictness_level
string
required
created_at
string
required
zero_retention
boolean
default:false