API Reference
Scan text, URLs, PDF, DOCX, HTML, and Markdown for prompt injection, data leakage, personal information, and threats with the Patronus API.
Scan content for prompt injection, sensitive data (DLP), personal information (PII), and threats before passing it to a model, tool, or user. Scans check injection and DLP by default; 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.