{
  "openapi": "3.1.0",
  "info": {
    "title": "Digital Foundry Public APIs",
    "version": "2026-11-22",
    "description": "Public intake endpoints, Google A2UI v0.8 AI chat endpoint, and read-only catalogs for agents and LLMs."
  },
  "servers": [{ "url": "https://digitalfoundry.ai" }],
  "paths": {
    "/llms.txt": {
      "get": { "summary": "Human LLM site summary", "responses": { "200": { "description": "Plain text" } } }
    },
    "/llms-full.txt": {
      "get": { "summary": "Machine-readable catalog index", "responses": { "200": { "description": "Plain text" } } }
    },
    "/agents.txt": {
      "get": { "summary": "Agent operating instructions", "responses": { "200": { "description": "Plain text" } } }
    },
    "/agents.md": {
      "get": { "summary": "Markdown twin of agents.txt", "responses": { "200": { "description": "Markdown" } } }
    },
    "/data/featured_catalog.json": {
      "get": { "summary": "Daily featured tools, skills, prompts, integrations", "responses": { "200": { "description": "JSON" } } }
    },
    "/data/knowledge_graph.json": {
      "get": { "summary": "Weekly cloud-built AI News & Ecosystem Knowledge Graph (executive, enterprise, hyper)", "responses": { "200": { "description": "JSON" } } }
    },
    "/api/chat_a2ui.php": {
      "get": { "summary": "Google A2UI v0.8 assistant capability and model status", "responses": { "200": { "description": "JSON capability document" } } },
      "post": {
        "summary": "Ask the Digital Foundry assistant and receive a Google A2UI v0.8 declarative UI response",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["message"],
                "properties": {
                  "message": { "type": "string" },
                  "language": { "type": "string", "enum": ["en", "ar"] }
                }
              }
            }
          }
        },
        "responses": { "200": { "description": "Google A2UI v0.8 surface messages" } }
      }
    },
    "/api/newsletter.php": {
      "post": {
        "summary": "Subscribe an email to the weekly digest",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": { "type": "object", "required": ["email"], "properties": { "email": { "type": "string", "format": "email" } } }
            }
          }
        },
        "responses": { "200": { "description": "Subscription accepted" } }
      }
    },
    "/api/telemetry.php": {
      "post": { "summary": "Book a discovery consultation", "responses": { "200": { "description": "Request recorded" } } }
    },
    "/api/survey.php": {
      "post": { "summary": "Submit AI readiness assessment", "responses": { "200": { "description": "Survey recorded" } } }
    }
  }
}
