Skip to main content

Configure a project

A key can configure a project: its policies, suppressions, settings, webhook and alerts. Guardrails and policy overlays have endpoints of their own.

The key it needs

These endpoints need the configuration scope: configuration:read to read, configuration:write to change too. A key has it only when it is chosen by name. Full access does not include it, and no key made before it gains it. promptguard login --scope configuration:write asks for it in a terminal. A key acts as the person who made it, in the key’s organization: it can configure the projects they own, or any in the organization if they are its admin. Any other project is 404. Their role, your plan and your organization’s policy lock apply as they do in the dashboard. Give an agent a key marked for an agent. Its changes then wait for your approval: An agent writes a policy’s rules, not a sentence: a natural_language rule is refused with natural_language_rule_from_agent. A change too long to show in full is refused with approval_change_too_large: make it in the dashboard. A key that is not marked makes any of them at once. Each is in the audit log.

Policies

A policy is checked as in the dashboard, and the response lists anything worth knowing in warnings. Needs a plan with custom policies. The list is in the order policies are evaluated, up to limit (100, at most 200), without those not in force unless include_inactive=true.

Suppressions

A suppression stops one rule of one detector from deciding until it expires. Name the rule as a finding does:

Settings

Any of name, description, fail_mode, use_case, strictness_level, zero_retention, enforcement_mode, spotlight_mode and agent_policy_enforced. What you leave out stays as it is. Alert channels and spend caps are set in the dashboard.

Webhook

PUT takes a url and, optionally, a provider (generic, slack, pagerduty, datadog or splunk). The URL is often a credential, so no endpoint returns it: GET says only whether one is set and which payload it is sent. One that does not point to a public address is refused with webhook_url_invalid. A new URL is not sent the project’s auth header. Signing secrets and auth headers are set in the dashboard. Deliveries say whether each arrived, not what it carried.

Alerts

Your own alerts on the project, newest first, without their text. PATCH takes {"status": "dismissed"}, or "sent" to acknowledge one and keep it listed.
Last modified on December 2, 2026