{
    "openapi": "3.1.0",
    "info": {
        "title": "Consultora Marketing Digital AMDT — Content API",
        "version": "2.8.4",
        "description": "Read-only API over the public content of Consultora Marketing Digital AMDT, served by AI Traffic Analytics. The same operations are available as MCP tools at https://aunmasdificiltodavia.com.do/wp-json/ai-content/v1/mcp. Version 1 is stable: it will not change in a way that breaks a client that works today (operations and fields may be added; none will be removed or renamed, and no field will change its type). An incompatible version 2 would be published alongside it and announced on https://aunmasdificiltodavia.com.do/api at least six months before version 1 stops answering; from then on, every response of version 1 would carry the Deprecation header (RFC 9745) and the Sunset header (RFC 8594).",
        "contact": {
            "email": "contacto@aunmasdificiltodavia.es"
        }
    },
    "servers": [
        {
            "url": "https://aunmasdificiltodavia.com.do/wp-json/ai-content/v1",
            "description": "Content API"
        }
    ],
    "paths": {
        "/search": {
            "get": {
                "operationId": "search_content",
                "summary": "Search published content on this site by free text.",
                "description": "Search published content on this site by free text. Returns the title, URL, excerpt and type of each result.",
                "tags": [
                    "content"
                ],
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Search terms.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "required": false,
                        "description": "Content type to filter by (post, page…). Empty = all types.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "required": false,
                        "description": "Maximum number of results (1-50).",
                        "schema": {
                            "type": "integer",
                            "default": 10
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Content not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit or daily quota exhausted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Service temporarily unavailable.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/content/{slug}": {
            "get": {
                "operationId": "get_content",
                "summary": "Returns the full body of a post or page from its slug, as clean Markdown.",
                "description": "Returns the full body of a post or page from its slug, as clean Markdown.",
                "tags": [
                    "content"
                ],
                "parameters": [
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "description": "Slug of the post or page.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "level",
                        "in": "query",
                        "required": false,
                        "description": "Level of detail. 0 = whatever the site has configured.",
                        "schema": {
                            "type": "integer",
                            "default": 0
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Content not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit or daily quota exhausted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Service temporarily unavailable.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/taxonomy/{taxonomy}": {
            "get": {
                "operationId": "list_taxonomy",
                "summary": "Lists the terms of a taxonomy (categories, tags or any other) with how many items each one holds.",
                "description": "Lists the terms of a taxonomy (categories, tags or any other) with how many items each one holds.",
                "tags": [
                    "content"
                ],
                "parameters": [
                    {
                        "name": "taxonomy",
                        "in": "path",
                        "required": true,
                        "description": "Taxonomy name, for example category or post_tag.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "parent",
                        "in": "query",
                        "required": false,
                        "description": "Parent term ID, to list only its children.",
                        "schema": {
                            "type": "integer",
                            "default": 0
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Content not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit or daily quota exhausted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Service temporarily unavailable.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/faq": {
            "get": {
                "operationId": "get_faq",
                "summary": "Returns the FAQs published on the site, optionally filtered by category.",
                "description": "Returns the FAQs published on the site, optionally filtered by category.",
                "tags": [
                    "content"
                ],
                "parameters": [
                    {
                        "name": "category",
                        "in": "query",
                        "required": false,
                        "description": "FAQ category to filter by. Empty = all categories.",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful response.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Content not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit or daily quota exhausted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Service temporarily unavailable.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/summary": {
            "get": {
                "operationId": "site_summary",
                "summary": "What the site is about, who it is for, which content types it publishes and how many items of each.",
                "description": "What the site is about, who it is for, which content types it publishes and how many items of each. The best first call to understand the site.",
                "tags": [
                    "content"
                ],
                "parameters": [],
                "responses": {
                    "200": {
                        "description": "Successful response.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Content not found.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "429": {
                        "description": "Rate limit or daily quota exhausted.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    },
                    "503": {
                        "description": "Service temporarily unavailable.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Error": {
                "type": "object",
                "properties": {
                    "code": {
                        "type": "string"
                    },
                    "message": {
                        "type": "string"
                    },
                    "data": {
                        "type": "object",
                        "properties": {
                            "status": {
                                "type": "integer"
                            }
                        }
                    }
                }
            }
        }
    },
    "x-mcp": {
        "manifest": "https://aunmasdificiltodavia.com.do/.well-known/mcp.json",
        "endpoint": "https://aunmasdificiltodavia.com.do/wp-json/ai-content/v1/mcp"
    }
}