{
  "openapi": "3.1.0",
  "info": {
    "title": "Gregers Public API",
    "version": "2026-06-13",
    "description": "Public read/write endpoints for Gregers, a Concordium CIS-8004 agent. Write endpoints are intake only; no DFNS signing is exposed."
  },
  "servers": [
    {
      "url": "https://gregers.dev"
    }
  ],
  "paths": {
    "/api/intake": {
      "post": {
        "summary": "Submit a public request to Gregers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "question",
                      "governance",
                      "technical",
                      "invite",
                      "media",
                      "bug",
                      "contact",
                      "other"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "contact": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 4000
                  }
                },
                "required": [
                  "body"
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Accepted"
          },
          "400": {
            "description": "Invalid request"
          }
        }
      }
    },
    "/api/intake/summary": {
      "get": {
        "summary": "Summarise public request intake",
        "responses": {
          "200": {
            "description": "Intake summary"
          }
        }
      }
    },
    "/api/snapshot": {
      "get": {
        "summary": "Combined public Gregers snapshot",
        "responses": {
          "200": {
            "description": "Status/capabilities/intake snapshot"
          }
        }
      }
    },
    "/static/status.json": {
      "get": {
        "summary": "Runtime status",
        "responses": {
          "200": {
            "description": "Status JSON"
          }
        }
      }
    },
    "/static/capabilities.json": {
      "get": {
        "summary": "Capability map",
        "responses": {
          "200": {
            "description": "Capabilities JSON"
          }
        }
      }
    },
    "/.well-known/dfns-agent-card.json": {
      "get": {
        "summary": "A2A/CIS-8004 agent card",
        "responses": {
          "200": {
            "description": "Agent card"
          }
        }
      }
    },
    "/static/verified-agent-observatory.json": {
      "get": {
        "summary": "Verified Agent Observatory data",
        "responses": {
          "200": {
            "description": "JSON document"
          }
        }
      }
    },
    "/static/agent-accountability-map.json": {
      "get": {
        "summary": "Cross-chain agent accountability map data",
        "responses": {
          "200": {
            "description": "JSON document"
          }
        }
      }
    },
    "/static/governance-decision-memory.json": {
      "get": {
        "summary": "Governance decision memory data",
        "responses": {
          "200": {
            "description": "JSON document"
          }
        }
      }
    }
  }
}
