{
    "openapi": "3.1.0",
    "info": {
        "title": "Skipsail Agent Discovery API",
        "version": "1.0.0",
        "description": "Public summary, markdown, freshness, and discovery endpoints exposed by NX SEO for AI agents and search assistants."
    },
    "servers": [
        {
            "url": "https://skipsail.pl/"
        }
    ],
    "paths": {
        "/wp-json/nx-seo/v1/llm/summaries": {
            "get": {
                "operationId": "listPublicSummaries",
                "summary": "List public content summaries",
                "responses": {
                    "200": {
                        "description": "Summary collection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Collection"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/nx-seo/v1/llm/summaries/{id}": {
            "get": {
                "operationId": "getPublicSummary",
                "summary": "Get one public content summary",
                "responses": {
                    "200": {
                        "description": "Summary item",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Summary unavailable",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ErrorResponse"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/nx-seo/v1/agent-discovery/recent-updates": {
            "get": {
                "operationId": "listRecentUpdates",
                "summary": "List recently updated public content",
                "responses": {
                    "200": {
                        "description": "Recent updates payload",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/nx-seo/v1/agent-discovery/manifest": {
            "get": {
                "operationId": "getAgentManifest",
                "summary": "Get the NX SEO agent manifest",
                "responses": {
                    "200": {
                        "description": "Manifest payload",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/nx-seo/v1/agent-discovery/markdown/{id}": {
            "get": {
                "operationId": "getPostMarkdown",
                "summary": "Get post or page markdown export",
                "responses": {
                    "200": {
                        "description": "Markdown content",
                        "content": {
                            "text/markdown": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/": {
            "get": {
                "operationId": "getHomepageAgentView",
                "summary": "Get machine-readable homepage view",
                "responses": {
                    "200": {
                        "description": "Agent-mode homepage payload",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "Object": {
                "type": "object",
                "additionalProperties": true
            },
            "Collection": {
                "type": "object",
                "additionalProperties": true
            },
            "ErrorResponse": {
                "type": "object",
                "properties": {
                    "error": {
                        "type": "string"
                    },
                    "hint": {
                        "type": "string"
                    }
                }
            }
        }
    }
}