{
    "openapi": "3.1.0",
    "info": {
        "title": "SDFManuals Catalogue API",
        "version": "1.1.0",
        "description": "Public read-only manual selection. No file downloads, customers, orders or write operations."
    },
    "servers": [
        {
            "url": "https://sdfmanuals.com/wp-json/sdf-catalog/v1"
        }
    ],
    "security": [],
    "paths": {
        "/filters": {
            "get": {
                "operationId": "list_filters",
                "description": "List supported brands, manual types and workflow. Public catalogue data only.",
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Public catalogue response; empty matches are valid.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid arguments"
                    },
                    "429": {
                        "description": "Request limit reached or limiter unavailable; retry after 60 seconds"
                    },
                    "503": {
                        "description": "Catalogue dependencies or index unavailable"
                    }
                }
            }
        },
        "/models": {
            "get": {
                "operationId": "find_models",
                "description": "Find model candidates by model designation, optionally exact brand. Return ambiguity instead of guessing. chassis_reference is an exact catalogue reference, NOT an arbitrary VIN. Select the correct model_id with the user before searching manuals.",
                "parameters": [
                    {
                        "name": "query",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "brand",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "chassis_reference",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Public catalogue response; empty matches are valid.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid arguments"
                    },
                    "429": {
                        "description": "Request limit reached or limiter unavailable; retry after 60 seconds"
                    },
                    "503": {
                        "description": "Catalogue dependencies or index unavailable"
                    }
                }
            }
        },
        "/manuals": {
            "get": {
                "operationId": "find_manuals",
                "description": "Find public PDF product listings by chosen model_id or exact SKU. Optional language (BCP47), type U/operator, W/workshop, M/maintenance, P/parts. Pagination uses next_after_id. Returns shop links, never paid PDF downloads. Empty results do not prove no suitable manual exists. At least one of model_id or sku is required. If both are present, both must match. after_id must use the same filters as the preceding page.",
                "parameters": [
                    {
                        "name": "model_id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "sku",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "language",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})*$"
                        }
                    },
                    {
                        "name": "document_type",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "enum": [
                                "U",
                                "W",
                                "M",
                                "P"
                            ]
                        }
                    },
                    {
                        "name": "after_id",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "schema": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 20
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Public catalogue response; empty matches are valid.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid arguments"
                    },
                    "429": {
                        "description": "Request limit reached or limiter unavailable; retry after 60 seconds"
                    },
                    "503": {
                        "description": "Catalogue dependencies or index unavailable"
                    }
                }
            }
        },
        "/manual": {
            "get": {
                "operationId": "get_manual",
                "description": "Read public product facts and explicitly assigned compatible model categories. Never guarantees VIN compatibility. No checkout, purchase or file access.",
                "parameters": [
                    {
                        "name": "id",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Public catalogue response; empty matches are valid.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "additionalProperties": true
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Invalid arguments"
                    },
                    "429": {
                        "description": "Request limit reached or limiter unavailable; retry after 60 seconds"
                    },
                    "503": {
                        "description": "Catalogue dependencies or index unavailable"
                    }
                }
            }
        }
    },
    "externalDocs": {
        "description": "Selection workflow, MCP and examples",
        "url": "https://sdfmanuals.com/developers/"
    }
}