{
  "openapi": "3.1.0",
  "info": {
    "title": "marcopontili.com public surfaces",
    "version": "1.1.0",
    "description": "Read-only public endpoints of a personal portfolio site. There is no authenticated API, no write operation and no search endpoint. Every HTML page also answers Accept: text/markdown, and the same content is reachable at the page path plus .md (for example /about.md). The agent-skills index supports cursor pagination via limit and cursor query parameters.",
    "contact": { "url": "https://marcopontili.com/contact" },
    "license": { "name": "UNLICENSED" }
  },
  "servers": [{ "url": "https://marcopontili.com" }],
  "paths": {
    "/llms.txt": {
      "get": {
        "summary": "Site map and usage notes for agents",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Plain-text index of the site's pages and policies",
            "content": { "text/plain": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "summary": "XML sitemap",
        "operationId": "getSitemap",
        "responses": {
          "200": {
            "description": "urlset of every indexable page",
            "content": { "application/xml": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/for-agents": {
      "get": {
        "summary": "For Agents: public read-only surfaces for agents and tools",
        "operationId": "getForAgents",
        "responses": {
          "200": {
            "description": "HTML inventory of read-only public surfaces",
            "content": { "text/html": { "schema": { "type": "string" } } }
          }
        }
      }
    },
    "/.well-known/api-status.json": {
      "get": {
        "summary": "Service status",
        "operationId": "getApiStatus",
        "responses": {
          "200": {
            "description": "Status document",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "service": { "type": "string" },
                    "documentation": { "type": "string", "format": "uri" }
                  },
                  "required": ["status"]
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "summary": "RFC 9727 API catalog",
        "operationId": "getApiCatalog",
        "responses": {
          "200": {
            "description": "Linkset pointing at this description, the agent docs and the status document",
            "content": { "application/linkset+json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/.well-known/ard.json": {
      "get": {
        "summary": "Agentic Resource Discovery catalog",
        "operationId": "getArd",
        "responses": {
          "200": {
            "description": "ARD entries for the public agent-facing surfaces",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "summary": "ARD catalog twin (ai-catalog.json)",
        "operationId": "getAiCatalog",
        "responses": {
          "200": {
            "description": "Identical bytes to /.well-known/ard.json",
            "content": { "application/json": { "schema": { "type": "object" } } }
          }
        }
      }
    },
    "/.well-known/agent-skills/index.json": {
      "get": {
        "summary": "Published agent skills index",
        "description": "Cursor-paginated list of published skills. Pass limit and cursor to page; omit both for the default page (limit 50).",
        "operationId": "getAgentSkills",
        "parameters": [
          { "$ref": "#/components/parameters/LimitParam" },
          { "$ref": "#/components/parameters/CursorParam" }
        ],
        "responses": {
          "200": {
            "description": "A page of skills. has_more is always present; next_cursor is omitted when exhausted.",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/PaginatedSkillsResponse" }
              }
            }
          },
          "400": {
            "description": "Invalid limit or unknown cursor",
            "content": {
              "application/json": {
                "schema": { "$ref": "#/components/schemas/ErrorResponse" }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "parameters": {
      "LimitParam": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Page size (1–100). Default 50.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 50
        }
      },
      "CursorParam": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "Opaque pagination cursor: the name of the last skill from the previous page. Omit on the first request.",
        "schema": { "type": "string" }
      }
    },
    "schemas": {
      "Skill": {
        "type": "object",
        "required": ["name", "description", "url"],
        "properties": {
          "name": { "type": "string" },
          "description": { "type": "string" },
          "url": { "type": "string", "format": "uri" }
        }
      },
      "PaginatedSkillsResponse": {
        "type": "object",
        "required": ["name", "description", "skills", "has_more"],
        "properties": {
          "name": { "type": "string" },
          "description": { "type": "string" },
          "skills": {
            "type": "array",
            "items": { "$ref": "#/components/schemas/Skill" }
          },
          "has_more": {
            "type": "boolean",
            "description": "True when another page is available after this one."
          },
          "next_cursor": {
            "type": "string",
            "description": "Pass as cursor on the next request. Omitted when has_more is false."
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": ["error"],
        "properties": {
          "error": {
            "type": "object",
            "required": ["code", "message"],
            "properties": {
              "code": { "type": "string" },
              "message": { "type": "string" }
            }
          }
        }
      }
    }
  }
}
