Connect Claude to INITE Studio
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 the auditId if the orchestrator called save_audit. Look up the full report at GET /api/audits/<id>.
  • event: error — anything thrown server-side. Includes a requestId outside production.