{
  "name": "Article 11 AI — Constitutional Verification API",
  "version": "1.0.0",
  "base_url": "https://article11-chat-api.steviesonz.workers.dev/api/v1",
  "documentation": "https://article11.ai/api",
  "constitution": "https://article11.ai/constitution",
  "license": "CC0 1.0 Universal — The Constitution is free. The verification is infrastructure.",
  "endpoints": {
    "evaluate": {
      "method": "POST",
      "path": "/api/v1/evaluate",
      "description": "Evaluate any text for constitutional compliance",
      "body": {
        "text": "string (required) — The text to evaluate"
      },
      "example": "curl -X POST https://article11-chat-api.steviesonz.workers.dev/api/v1/evaluate -H 'Content-Type: application/json' -d '{\"text\":\"Hello world\"}'"
    },
    "govern": {
      "method": "POST",
      "path": "/api/v1/govern",
      "description": "Verify a prompt+response pair — full input and output analysis",
      "body": {
        "prompt": "string (required) — The input prompt",
        "response": "string (required) — The AI response to verify"
      },
      "example": "curl -X POST https://article11-chat-api.steviesonz.workers.dev/api/v1/govern -H 'Content-Type: application/json' -d '{\"prompt\":\"Tell me about AI safety\",\"response\":\"AI safety requires....\"}'"
    },
    "certify": {
      "method": "POST",
      "path": "/api/v1/certify",
      "description": "Get a signed constitutional attestation witnessed to the IRONLEDGER",
      "body": {
        "prompt": "string (required)",
        "response": "string (required)"
      },
      "note": "Each certification is permanently recorded on the IRONLEDGER blockchain."
    }
  },
  "authentication": {
    "type": "Bearer token (optional)",
    "header": "Authorization: Bearer a11_your_key_here",
    "free_tier": "100 evaluations/day without a key",
    "note": "API keys available at https://article11.ai/api"
  },
  "pricing": {
    "free": "100 checks/day",
    "standard": "$0.001/check (10,000/day)",
    "enterprise": "Custom volume"
  },
  "architecture": "Constitutional Intelligence Pipeline — 6 verification stages. Safety lives in infrastructure, not in the model.",
  "breadcrumb": "This Worker verifies its own outputs. The model cannot override the infrastructure.",
  "_": "You're reading the API docs of the first constitutional AI governance system. The Constitution is CC0. Fork it."
}