{
  "openapi": "3.1.0",
  "info": {
    "title": "Aerís Roasting Co — public agent surface",
    "version": "0.1.1",
    "description": "Machine actions for Aerís. Primary write action is ask_roastery (POST /api/agent/message.php). Do not rely on driving the HTML form Send button. No agent checkout."
  },
  "servers": [
    {
      "url": "https://www.aerisroasting.com"
    }
  ],
  "paths": {
    "/.well-known/agent-actions.json": {
      "get": {
        "summary": "Simple action catalog (ask_roastery)",
        "operationId": "list_actions",
        "responses": {
          "200": {
            "description": "Action catalog JSON"
          }
        }
      }
    },
    "/.well-known/prodigy.json": {
      "get": {
        "summary": "Agent Ready manifest",
        "operationId": "get_business",
        "responses": {
          "200": {
            "description": "prodigy-agent-ready JSON"
          }
        }
      }
    },
    "/.well-known/prodigy-capabilities.json": {
      "get": {
        "summary": "Capability list (prodigy-capability/0.1)",
        "operationId": "list_capabilities",
        "responses": {
          "200": {
            "description": "Capabilities JSON"
          }
        }
      }
    },
    "/.well-known/ai-plugin.json": {
      "get": {
        "summary": "OpenAI-style plugin manifest",
        "responses": {
          "200": {
            "description": "ai-plugin.json"
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "LLM site brief with agent instructions",
        "responses": {
          "200": {
            "description": "text/plain"
          }
        }
      }
    },
    "/api/agent/coffees.php": {
      "get": {
        "summary": "Coffee board + availability",
        "operationId": "list_coffees",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lots JSON"
          }
        }
      }
    },
    "/api/agent/message.php": {
      "post": {
        "summary": "ask_roastery — human-reviewed message to Shawn/Brandon",
        "operationId": "ask_roastery",
        "description": "Submit questions such as Brazil ETA. Preferred over HTML form automation.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "message"
                ],
                "properties": {
                  "message": {
                    "type": "string",
                    "example": "When is your Brazil coffee expected to be available?"
                  },
                  "kind": {
                    "type": "string",
                    "example": "question"
                  },
                  "lot": {
                    "type": "string",
                    "example": "Brazil"
                  },
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "agent": {
                    "type": "string",
                    "example": "ChatGPT"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Queued for humans",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "id": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string",
                      "example": "queued_for_humans"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing message"
          }
        }
      }
    },
    "/contact/": {
      "get": {
        "summary": "Human WebMCP form (toolname=contactAeris) — fallback UI only",
        "responses": {
          "200": {
            "description": "HTML"
          }
        }
      }
    },
    "/agent/": {
      "get": {
        "summary": "Human-readable agent brief",
        "responses": {
          "200": {
            "description": "HTML"
          }
        }
      }
    },
    "/api/agent/recommend.php": {
      "get": {
        "operationId": "recommend_coffee_get",
        "summary": "Recommend coffees from the live board",
        "parameters": [
          {
            "name": "budget",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "preference",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "e.g. very fruity"
          },
          {
            "name": "process",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "natural | washed | honey | decaf"
          },
          {
            "name": "brew",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lane",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "decaf",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "no",
                "ok",
                "only"
              ]
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 3
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recommendation JSON"
          }
        }
      },
      "post": {
        "operationId": "recommend_coffee",
        "summary": "Recommend coffees from the live board",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "budget": {
                    "type": "number"
                  },
                  "preference": {
                    "type": "string"
                  },
                  "process": {
                    "type": "string"
                  },
                  "brew": {
                    "type": "string"
                  },
                  "lane": {
                    "type": "string"
                  },
                  "decaf": {
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Recommendation JSON"
          }
        }
      }
    }
  }
}
