New: Webhook guardrails, proxy retry/fallback config, and savings calculator are live. See what's new →
cURL
curl --request POST \ --url https://api.promptguard.dev/api/v1/projects \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "fail_mode": "open", "use_case": "default", "strictness_level": "moderate" } '
{ "id": "<string>", "name": "<string>", "description": "<string>", "fail_mode": "<string>", "use_case": "<string>", "strictness_level": "<string>", "created_at": "<string>", "zero_retention": false }
Create a new project
PromptGuard API key for developer endpoints. Keys start with pg_live_ and are created in the dashboard.
Successful Response