{
  "info": {
    "name": "AgentFit API",
    "description": "Audit public API documentation against AgentFit's 30-criteria AI-readiness rubric. Import this collection and run the requests against the live API.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://agentfit.dev" },
    { "key": "runId", "value": "019eefa7-fdb7-77ac-8c56-ad184e44ece6" }
  ],
  "item": [
    {
      "name": "Start an audit (async)",
      "request": {
        "method": "POST",
        "header": [{ "key": "Content-Type", "value": "application/json" }],
        "url": { "raw": "{{baseUrl}}/audit?async=true", "host": ["{{baseUrl}}"], "path": ["audit"], "query": [{ "key": "async", "value": "true" }] },
        "body": { "mode": "raw", "raw": "{\n  \"base_url\": \"https://docs.stripe.com\"\n}" },
        "description": "Start an audit. Returns a run_id you poll with the next request."
      }
    },
    {
      "name": "Get an audit",
      "request": {
        "method": "GET",
        "url": { "raw": "{{baseUrl}}/api/public/audit/{{runId}}", "host": ["{{baseUrl}}"], "path": ["api", "public", "audit", "{{runId}}"] },
        "description": "Poll a run until status is done; the report is nested under report."
      }
    },
    {
      "name": "List audit history",
      "request": {
        "method": "GET",
        "url": { "raw": "{{baseUrl}}/api/public/audit/{{runId}}/history?limit=5", "host": ["{{baseUrl}}"], "path": ["api", "public", "audit", "{{runId}}", "history"], "query": [{ "key": "limit", "value": "5" }] }
      }
    },
    {
      "name": "Diff two audits",
      "request": {
        "method": "GET",
        "url": { "raw": "{{baseUrl}}/api/public/audit/{{runId}}/diff", "host": ["{{baseUrl}}"], "path": ["api", "public", "audit", "{{runId}}", "diff"] }
      }
    },
    {
      "name": "Search the corpus",
      "request": {
        "method": "GET",
        "url": { "raw": "{{baseUrl}}/api/public/browse/search?q=stripe", "host": ["{{baseUrl}}"], "path": ["api", "public", "browse", "search"], "query": [{ "key": "q", "value": "stripe" }] }
      }
    }
  ]
}
