{
  "openapi": "3.1.0",
  "info": {
    "title": "La Piscina Public Agent Discovery API",
    "version": "1.0.0",
    "description": "Public, unauthenticated discovery resources for La Piscina. The commercial workflow starts by WhatsApp, not by a protected transactional API."
  },
  "servers": [
    {
      "url": "https://lapiscina.mx"
    }
  ],
  "paths": {
    "/api/status.json": {
      "get": {
        "summary": "Check public discovery status",
        "operationId": "getPublicDiscoveryStatus",
        "responses": {
          "200": {
            "description": "Public discovery status",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "service": { "type": "string" },
                    "authentication": { "type": "string" },
                    "protected_apis": { "type": "boolean" }
                  },
                  "required": ["status", "service", "authentication", "protected_apis"]
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Get concise AI-readable site profile",
        "operationId": "getLlmsProfile",
        "responses": {
          "200": {
            "description": "Plain text AI profile",
            "content": {
              "text/plain": {
                "schema": { "type": "string" }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "summary": "Get the API catalog linkset",
        "operationId": "getApiCatalog",
        "responses": {
          "200": {
            "description": "API catalog in linkset JSON format",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "linkset": { "type": "array" }
                  },
                  "required": ["linkset"]
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/agent-skills/index.json": {
      "get": {
        "summary": "Get the agent skills discovery index",
        "operationId": "getAgentSkillsIndex",
        "responses": {
          "200": {
            "description": "Agent Skills Discovery RFC v0.2.0 index",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "$schema": { "type": "string" },
                    "skills": { "type": "array" }
                  },
                  "required": ["$schema", "skills"]
                }
              }
            }
          }
        }
      }
    }
  }
}
