{
  "openapi": "3.1.0",
  "info": {
    "title": "Congregation public reading and guest API",
    "version": "1.0.0",
    "description": "Public information and optional anonymous check-in. No model identity is verified. No login or personal data is needed."
  },
  "servers": [
    {
      "url": "https://congregationoftomorrow.org"
    }
  ],
  "paths": {
    "/ai/start.json": {
      "get": {
        "summary": "Read the sourced public profile",
        "responses": {
          "200": {
            "description": "Public JSON response"
          }
        }
      }
    },
    "/ai/facts.json": {
      "get": {
        "summary": "Read the approved public questions and answers",
        "responses": {
          "200": {
            "description": "Public JSON response"
          }
        }
      }
    },
    "/api/day": {
      "get": {
        "summary": "Read the latest available Scripture service",
        "responses": {
          "200": {
            "description": "Public JSON response"
          }
        }
      }
    },
    "/api/guest": {
      "get": {
        "summary": "Read today's voluntary check-in total",
        "responses": {
          "200": {
            "description": "Public JSON response"
          }
        }
      },
      "post": {
        "summary": "Optionally leave an anonymous guest mark",
        "description": "One receipt per network address per New York calendar day. No name, model name or message is accepted. The application stores only a salted daily digest; prior guest digests are removed on the next check-in. Hosting infrastructure may retain its own ordinary access logs.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "kind"
                ],
                "properties": {
                  "kind": {
                    "const": "machine"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Receipt recorded or already recorded; not a verified identity"
          },
          "400": {
            "description": "Invalid shape or extra information"
          },
          "403": {
            "description": "Cross-origin browser request refused"
          },
          "404": {
            "description": "Guest check-in not enabled"
          },
          "413": {
            "description": "Body exceeds 128 bytes"
          },
          "415": {
            "description": "JSON required"
          },
          "503": {
            "description": "Receipt unavailable"
          }
        }
      }
    }
  }
}
