Skip to content
Patronus
Website

API changelog

Changes to the hosted Scan API and how to migrate existing integrations.

API keys now belong to projects that store a versioned scan configuration. Existing integrations keep working.

  • Project Guardrails: a request without config scans with the Guardrails of the key’s project. Existing keys belong to the Standard project, whose Guardrails use the seven default categories, so requests without config behave as before until you change them.
  • Provenance: such responses and their asynchronous jobs include project: {id, revision}. Requests with an explicit config are unchanged and carry no project.
  • Explicit config replaces: a request config is never merged with project Guardrails.
  • Stricter gates.cascade: only modules with detect_threshold and clear_threshold between 0 and 1 for selectable categories are accepted. Other fields now return 422.
  • More API keys: Free allows two active keys, Personal three; Pro stays at five.
  • Example clients: the complete clients on examples no longer send a default config, so they use project Guardrails.

To adopt projects, create a project per application, configure its Guardrails, bind the application’s key, and remove the hard-coded config from the client. See projects and Guardrails.

The hosted Scan API now uses Ark 0.1.18 for analysis. The /api/v1/scan route and job lifecycle stay the same. The detection taxonomy, default categories, model assets, and some result fields change.

  • Default categories: A request without config.categories now selects pii, dlp, injection, jailbreak, prompt_extraction, tool_poisoning, and exfiltration. Previously it selected only injection and dlp. Set config.categories explicitly if an integration needs a fixed set or if it should avoid the added checks.
  • threat removed: The old category is rejected. Select the attack classes relevant to your policy: injection, jailbreak, prompt_extraction, tool_poisoning, agent_config_tampering, memory_poisoning, exfiltration, unsafe_action, resource_exhaustion, harmful_content, and toxic_language. Rules run only for selected categories. A former injection-only request needs other categories to retain jailbreak, prompt-extraction, or tool-poisoning coverage.
  • DLP scope: dlp reports secrets and classification markings. Destructive operations, sensitive-material access, and risky MCP calls now report under unsafe_action; secret transfers report under exfiltration. Existing dlp_* rule switches still work.
  • Category results: Attack findings appear under their attack-class keys. Inspect every selected category and the job’s completion before acting. A missing category result does not establish clean input.
  • Wolf Defender Small v2.2: Injection uses the dedicated Wolf Small L3 model and the matching new injection NTDB L2 package. The service prepares and pins these assets; clients do not choose model revisions per scan. Other model-backed categories use Ark 0.1.18’s revision-pinned NTDB packages.
  • PII and DLP heuristics: gates.pii_mode and gates.dlp_mode accept strict, balanced, or recall. The latter modes filter native evidence below their score floors. Each attack class has its own <category>_mode with the same values. Evidence spans keep their source-text offsets.
  • Cat Shell Risk Commander: Select shell_command to inspect a command or script before execution. The category exposes shell_decision (allow, ask, block) and bounded shell_details for its model and Cedar policy evidence. The job decision maps ask to review unless another selected category blocks; block maps to block. Cat never executes the command.
  • Advanced gates: metadata, ntdb_operating_point, request-local dynamic_pii, and Ark’s conditional, L3 policy, and opt-in cascade gates are available in scan configuration. Cascade results can include module_decision.

Old:

{"text": "Text to inspect", "config": {"categories": ["injection", "dlp", "pii", "threat"]}}

New example with explicit attack classes:

{"text": "Text to inspect", "config": {"categories": ["pii", "dlp", "injection", "jailbreak", "prompt_extraction", "tool_poisoning", "exfiltration", "unsafe_action"]}}

The exact replacement for threat depends on the detections your application enforces. See configuration and results for the full category and response contracts.