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.studioHow it works
Section titled “How it works”- Send text, documents, a public URL, or public MCP metadata to
POST /api/v1/scanwith an account API key. - Text without
Preferreturns completed jobs with HTTP200. URL, file, and MCP server inputs return asynchronous jobs with HTTP202by default. For asynchronous text, sendPrefer: respond-async. Poll every accepted job.Prefer: wait=1briefly waits for one asynchronous job before returning200or202. - 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.
OpenAPI
Section titled “OpenAPI”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.