{
  "openapi": "3.1.0",
  "info": {
    "title": "Refine Fuel Public Agent Resources",
    "version": "2026-10-08",
    "summary": "Public machine-readable resources for Refine Fuel.",
    "description": "This specification describes public documentation resources for Refine Fuel. Refine Fuel does not currently expose a transactional public API for orders, customer accounts, stock, pricing, or waitlist writes."
  },
  "servers": [
    {
      "url": "https://refinefuel.com.au",
      "description": "Refine Fuel public website"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getHomepage",
        "summary": "Get the Refine Fuel homepage",
        "description": "Returns the public Refine Fuel waitlist homepage with product positioning, launch flavour information, waitlist forms, metadata, and JSON-LD structured data.",
        "responses": {
          "200": {
            "description": "Homepage HTML.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsText",
        "summary": "Get compact agent guidance",
        "description": "Returns a text guidance file describing when agents should use Refine Fuel and which public resources are authoritative.",
        "responses": {
          "200": {
            "description": "Agent guidance in llms.txt format.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/agents.md": {
      "get": {
        "operationId": "getAgentInstructions",
        "summary": "Get Refine Fuel agent instructions",
        "description": "Returns detailed agent instructions, product facts, current API status, and integration limitations.",
        "responses": {
          "200": {
            "description": "Agent instructions in Markdown.",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              },
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiSpec",
        "summary": "Get the OpenAPI specification",
        "description": "Returns this OpenAPI 3.1 document for public Refine Fuel agent resources.",
        "responses": {
          "200": {
            "description": "OpenAPI document.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenApiDocument"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "NotFound": {
        "description": "The requested public resource was not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missingResource": {
                "summary": "Missing resource",
                "value": {
                  "error": {
                    "code": "not_found",
                    "message": "The requested Refine Fuel resource was not found.",
                    "resolution": "Start at https://refinefuel.com.au/llms.txt or https://refinefuel.com.au/."
                  }
                }
              }
            }
          },
          "text/markdown": {
            "schema": {
              "type": "string"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message", "resolution"],
            "properties": {
              "code": {
                "type": "string",
                "description": "Stable machine-readable error code."
              },
              "message": {
                "type": "string",
                "description": "Human-readable error summary."
              },
              "resolution": {
                "type": "string",
                "description": "Suggested next step for an agent or developer."
              }
            }
          }
        }
      },
      "OpenApiDocument": {
        "type": "object",
        "description": "An OpenAPI 3.1 document."
      }
    }
  }
}
