HTTP API
The HTTP API in apps/server and packages/api: run URL audits and read the auditor and playbook catalogue. You run it yourself; openaudit.se does not host it, so the server below is a local default. It has no authentication. URL audits are rate limited per client and server-wide, and refuse private, loopback and link-local targets unless the server is started with ALLOW_PRIVATE_TARGETS.
Run it
From a clone of the repository:
bun install
CORS_ORIGIN=http://localhost:3001 bun run dev:server # http://localhost:3000CORS_ORIGIN is required: the browser origin allowed to call the API. PORT changes the port. Behind a reverse proxy, set TRUST_PROXY=true so rate limits see the client address. ALLOW_PRIVATE_TARGETS=true lets URL audits reach private and loopback addresses; enable it only to audit your own internal services.
The API has no authentication. Anyone who can reach the server can use it, so keep it behind your own network controls if it should not be public. openaudit.se does not run this API.
Endpoints
Paths are relative to http://localhost:3000/api-reference. Generated from the router's OpenAPI document when the site is built.
| Endpoint | Description |
|---|---|
GET /healthCheck | |
GET /auditors | List auditors. Built-in, external-tool and agentic auditors with the categories and target kinds they cover. |
GET /playbooks | List playbooks. Judgment-heavy audit procedures that agents execute (via MCP or the agentic auditors). |
GET /playbooks/{id} | Get a playbook. A playbook including its full Markdown instructions. |
POST /audit/url | Audit a URL. Runs the built-in web auditors (security headers, TLS, SEO, accessibility markup, privacy…) against a public URL without a browser. Crawls at most 5 pages and stops after 60s. Private, loopback and link-local targets are refused. Rate limited to 10 requests per minute per client. |
OpenAPI
The OpenAPI 3.1 document is published at /openapi.json for discovery. A running server serves the same document at /api-reference/spec.json and an interactive reference at /api-reference.