{
    "openapi": "3.0.3",
    "info": {
        "title": "Kilroy public information API",
        "version": "1.0.0",
        "description": "Search and read selected public Kilroy Ventures pages. No write operations or authentication."
    },
    "servers": [
        {
            "url": "https://kilroyventures.ca/wp-json/kilroy-ai/v1"
        }
    ],
    "security": [],
    "paths": {
        "/site": {
            "get": {
                "operationId": "getKilroySite",
                "summary": "Read the business overview and discovery links",
                "description": "Read the business overview and discovery links Public read-only data; never returns private records.",
                "parameters": [],
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "name": {
                                            "type": "string"
                                        },
                                        "description": {
                                            "type": "string"
                                        },
                                        "url": {
                                            "type": "string"
                                        },
                                        "guide": {
                                            "type": "string"
                                        },
                                        "openapi": {
                                            "type": "string"
                                        },
                                        "skills": {
                                            "type": "string"
                                        },
                                        "read_only": {
                                            "type": "boolean"
                                        },
                                        "scope": {
                                            "type": "string"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters"
                    },
                    "404": {
                        "description": "Page not publicly available"
                    },
                    "503": {
                        "description": "Public export disabled"
                    }
                }
            }
        },
        "/pages": {
            "get": {
                "operationId": "listKilroyPages",
                "summary": "List public pages with canonical source URLs",
                "description": "List public pages with canonical source URLs Public read-only data; never returns private records.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 100,
                            "default": 1
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20,
                            "default": 20
                        }
                    }
                ],
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "items",
                                        "total"
                                    ],
                                    "properties": {
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PageSummary"
                                            }
                                        },
                                        "total": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters"
                    },
                    "404": {
                        "description": "Page not publicly available"
                    },
                    "503": {
                        "description": "Public export disabled"
                    }
                }
            }
        },
        "/pages/{id}": {
            "get": {
                "operationId": "readKilroyPage",
                "summary": "Read one selected public page as Markdown",
                "description": "Read one selected public page as Markdown Public read-only data; never returns private records.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Page"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters"
                    },
                    "404": {
                        "description": "Page not publicly available"
                    },
                    "503": {
                        "description": "Public export disabled"
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "searchKilroyPages",
                "summary": "Search public service and project information",
                "description": "Search public service and project information Public read-only data; never returns private records.",
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10,
                            "default": 5
                        }
                    }
                ],
                "security": [],
                "responses": {
                    "200": {
                        "description": "Success",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "items",
                                        "total"
                                    ],
                                    "properties": {
                                        "items": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/PageSummary"
                                            }
                                        },
                                        "total": {
                                            "type": "integer"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid parameters"
                    },
                    "404": {
                        "description": "Page not publicly available"
                    },
                    "503": {
                        "description": "Public export disabled"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "PageSummary": {
                "type": "object",
                "required": [
                    "id",
                    "title",
                    "url",
                    "markdown_url",
                    "modified",
                    "summary",
                    "truncated"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "markdown_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "modified": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "truncated": {
                        "type": "boolean"
                    }
                }
            },
            "Page": {
                "type": "object",
                "required": [
                    "id",
                    "title",
                    "url",
                    "markdown_url",
                    "modified",
                    "summary",
                    "truncated",
                    "content",
                    "extraction"
                ],
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "title": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "markdown_url": {
                        "type": "string",
                        "format": "uri"
                    },
                    "modified": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "summary": {
                        "type": "string"
                    },
                    "truncated": {
                        "type": "boolean"
                    },
                    "content": {
                        "type": "string",
                        "description": "Public text in Markdown, with source and update time."
                    },
                    "extraction": {
                        "type": "string"
                    }
                }
            }
        }
    }
}
