Skip to content
Patronus
Website

API Reference

Scan text, URLs, PDF, DOCX, HTML, and Markdown for personal information, secrets, prompt attacks, risky actions, and shell command risks with the Patronus API.

Scan content for personal information, secrets, prompt attacks, risky actions, and shell command risks before passing it to a model, tool, or user. Ark 0.1.18 uses separate categories for eleven attack classes. The default scan checks PII, DLP, injection, jailbreak, prompt extraction, tool poisoning, and exfiltration; configuration controls categories and rules.

The API returns analysis results. Your application decides whether to allow, block, redact, or request review.

Service URL:

https://control.patronus.studio
  1. Send text, documents, a public URL, or public MCP metadata to POST /api/v1/scan with an account API key.
  2. Text without Prefer returns completed jobs with HTTP 200. URL, file, and MCP server inputs return asynchronous jobs with HTTP 202 by default. For asynchronous text, send Prefer: respond-async. Poll every accepted job. Prefer: wait=1 briefly waits for one asynchronous job before returning 200 or 202.
  3. Check both job status and completion, then apply your policy to the category results.

This reference covers authenticated scans. Website and playground scans use the same endpoint with different authentication and input limits. Account administration and device management are separate.

Download the OpenAPI 3.1 specification for request and response schemas or client generation. The endpoint and schema tables use the same specification.

See the API changelog for the Ark 0.1.18 category and result migration.