{
  "openapi": "3.1.0",
  "info": {
    "title": "Boberbot web API",
    "version": "0.1.0",
    "description": "Check any website against Cloudflare's agent-readiness rules (isitagentready.com).",
    "contact": {
      "email": "info@boberbot.com",
      "url": "https://boberbot.com/docs/api/"
    },
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://boberbot.com"
    }
  ],
  "paths": {
    "/api/scan": {
      "post": {
        "operationId": "scanSite",
        "summary": "Check a website's agent readiness",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The website to check, for example example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Cloudflare's report shape: level, levelName, nextLevel, scores, checks, notes, plus agentMarkdown.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "No URL, or not a public website."
          },
          "422": {
            "description": "The site couldn't be reached."
          },
          "429": {
            "description": "Too many checks from this address in a minute."
          }
        }
      }
    }
  }
}
