Headless
POST /api/audit/run
Run an audit without Claude Desktop. Streams the same Server-Sent Events the dashboard consumes — perfect for CI checks, batch evaluations, or embedding inside another product.
Authenticate as a dashboard user with a Bearer JWT from inite-auth (auth.inite.ai). This endpoint is not on the MCP API-key surface — it sits behind the same auth as the rest of the dashboard. The body bundles the user prompt, the Anthropic API key Claude should spend, and the user's own INITE Studio MCP key so the orchestrator can persist results.
bash
curl -N https://api.inite.studio/api/audit/run \
-H "Authorization: Bearer $INITE_JWT" \
-H "Content-Type: application/json" \
-d '{
"prompt": "audit this idea: an AI note-taking app for lawyers",
"anthropicKey": "sk-ant-...",
"ideauditKey": "ideaudit_...",
"model": "claude-sonnet-5"
}'Stream events
event: text— Claude's incremental tokens.event: tool— when an MCP tool fires ({ toolName, input }).event: done— terminal event; payload includes theauditIdif the orchestrator calledsave_audit. Look up the full report atGET /api/audits/<id>.event: error— anything thrown server-side. Includes arequestIdoutside production.