{
  "openapi": "3.1.1",
  "info": {
    "title": "Off-Trail Financial Public Discovery API",
    "version": "1.0.0",
    "description": "A read-only public discovery interface for agents. It intentionally does not expose client data, authenticated portal operations, or individualized financial advice.",
    "termsOfService": "https://offtrailfinancial.com/terms",
    "license": { "name": "Proprietary", "url": "https://offtrailfinancial.com/terms" }
  },
  "security": [],
  "servers": [
    { "url": "https://offtrailfinancial.com", "description": "Production" }
  ],
  "paths": {
    "/api/agentic.json": {
      "get": {
        "operationId": "getPublicAgentDiscovery",
        "summary": "Get public agent discovery resources",
        "responses": {
          "200": {
            "description": "Public machine-readable discovery document",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/AgentDiscovery" }
              }
            }
          },
          "405": {
            "description": "The endpoint accepts only GET and HEAD",
            "headers": {
              "Allow": {
                "schema": { "type": "string", "example": "GET, HEAD" }
              }
            },
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/Error" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AgentDiscovery": {
        "type": "object",
        "required": ["version", "name", "description", "resources", "errors"],
        "properties": {
          "version": { "type": "string" },
          "name": { "type": "string" },
          "description": { "type": "string" },
          "resources": { "type": "object" },
          "errors": { "type": "object" }
        }
      },
      "Error": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message", "resolution"],
            "properties": {
              "code": { "type": "string", "example": "API_NOT_FOUND" },
              "message": { "type": "string" },
              "resolution": { "type": "string" }
            }
          }
        }
      }
    }
  }
}
