{
  "openapi": "3.1.0",
  "info": {
    "title": "Red Dog Advisory public service information",
    "version": "1.0.0",
    "description": "Read-only public knowledge tool shared with the signed-in SuperAgent. Plain HTTPS JSON, not A2A or MCP. No private data, lead creation or booking."
  },
  "servers": [
    {
      "url": "https://reddogadvisory.com.au"
    }
  ],
  "paths": {
    "/functions/getPublicAgentInfo": {
      "get": {
        "operationId": "searchPublicRedDogServices",
        "security": [],
        "parameters": [
          {
            "in": "query",
            "name": "action",
            "schema": {
              "type": "string",
              "enum": [
                "search_services",
                "get_services",
                "get_business_info"
              ],
              "default": "search_services"
            }
          },
          {
            "in": "query",
            "name": "query",
            "schema": {
              "type": "string",
              "maxLength": 500
            }
          },
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 13,
              "default": 5
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Public business details, matching services with source URLs, next steps and read-only boundaries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "business",
                    "services",
                    "boundaries"
                  ],
                  "properties": {
                    "business": {
                      "type": "object"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "summary",
                          "source_url"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "source_url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "boundaries": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unsupported action"
          },
          "405": {
            "description": "Method not allowed"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Use application/json"
          }
        }
      },
      "post": {
        "operationId": "queryPublicRedDogServices",
        "security": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicQuery"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Public business details, matching services with source URLs, next steps and read-only boundaries.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "business",
                    "services",
                    "boundaries"
                  ],
                  "properties": {
                    "business": {
                      "type": "object"
                    },
                    "services": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "name",
                          "summary",
                          "source_url"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "summary": {
                            "type": "string"
                          },
                          "source_url": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "boundaries": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or unsupported action"
          },
          "405": {
            "description": "Method not allowed"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Use application/json"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PublicQuery": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "search_services",
              "get_services",
              "get_business_info"
            ],
            "default": "search_services"
          },
          "query": {
            "type": "string",
            "maxLength": 500
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 13,
            "default": 5
          }
        }
      }
    }
  }
}
