{
  "openapi": "3.1.1",
  "info": {
    "title": "Mark Rogers: site API",
    "description": "The HTTP endpoints of Mark Rogers's personal site: the small tools behind /tools, the contact form, feeds and the Markdown surfaces for agents (llms.txt, .md copies of every page, the CV as JSON Resume). Read-only except the contact form. Agents that speak the Model Context Protocol can use the MCP server at /mcp instead; /llms.txt lists its tools.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://www.markdavidrogers.com"
    }
  ],
  "paths": {
    "/feed.xml": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "RSS 2.0 feed of every post",
        "operationId": "RssFeed",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/rss+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/feed.json": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "JSON Feed 1.1 of every post",
        "description": "Each item carries _markdown_url (the post as Markdown) and, when the post was written with AI help, _ai (assisted or generated).",
        "operationId": "JsonFeed",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/feed+json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/shipped.xml": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "Atom feed of releases: the Shipped ledger, newest first",
        "description": "The latest release of each plugin, package and repository, from GitHub releases when the site has a token, else from content/projects.json. Up to 30 entries.",
        "operationId": "ShippedFeed",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/atom+xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "XML sitemap of pages and posts",
        "operationId": "Sitemap",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/robots.txt": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "Crawler policy, including the Content-Signal line for AI crawlers",
        "operationId": "Robots",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/security.txt": {
      "get": {
        "tags": [
          "Feeds"
        ],
        "summary": "RFC 9116 security contact",
        "operationId": "SecurityTxt",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "tags": [
          "Agents"
        ],
        "summary": "llms.txt: index of the site for language models",
        "description": "Every post and page with its Markdown URL, the tools, the feeds, the MCP server and this OpenAPI document.",
        "operationId": "LlmsIndex",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "tags": [
          "Agents"
        ],
        "summary": "llms-full.txt: the whole site as one Markdown file",
        "operationId": "LlmsFull",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/{slug}.md": {
      "get": {
        "tags": [
          "Agents"
        ],
        "summary": "A post or page as Markdown",
        "description": "The slug is the post's URL segment (see /llms.txt) or 'cv'. Title, date, tags and canonical URL come first, then the body with absolute links.",
        "operationId": "PageMarkdown",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/cv.json": {
      "get": {
        "tags": [
          "Agents"
        ],
        "summary": "The CV as a JSON Resume document (https://jsonresume.org/schema)",
        "operationId": "ResumeJson",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "tags": [
          "Contact"
        ],
        "summary": "Send Mark a message",
        "description": "JSON body with name, email and message. Leave website empty: it is a honeypot and a filled one is silently dropped. 503 means mail is not configured or the mail service failed; the message was not sent.",
        "operationId": "Contact",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactMessage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          }
        }
      }
    },
    "/dashboards/{name}": {
      "get": {
        "tags": [
          "Dashboards"
        ],
        "summary": "An exported self-contained page (for example a Claude artifact) served as it was saved",
        "operationId": "Dashboard",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/api/tools/prettify-json": {
      "post": {
        "tags": [
          "Tools"
        ],
        "summary": "Indent a JSON document",
        "description": "Send the JSON text as the request body (any content type except a form). The response is the same document indented with two spaces; trailing commas and comments are tolerated. A form body with a field named unprettyJson is also accepted, for the 2010 demo post, and then the answer is a JSON string. Bodies over the configured limit (1 MB by default) get 413.",
        "operationId": "PrettifyJson",
        "requestBody": {
          "description": "The JSON text to indent, as the raw body, or as the unprettyJson field of a form (then the response is a JSON string).",
          "content": {
            "application/json": {
              "schema": {
                "description": "Any JSON document, as text."
              }
            },
            "text/plain": {
              "schema": {
                "type": "string"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "required": [
                  "unprettyJson"
                ],
                "type": "object",
                "properties": {
                  "unprettyJson": {
                    "type": "string",
                    "description": "The JSON text."
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonElement"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiError"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/random-name": {
      "get": {
        "tags": [
          "Tools"
        ],
        "summary": "Generate a random person or place name",
        "description": "kind=person (default) gives a first and last name; kind=place gives a place name. The response is a JSON string.",
        "operationId": "RandomName",
        "parameters": [
          {
            "name": "kind",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/page-head": {
      "get": {
        "tags": [
          "Tools"
        ],
        "summary": "Fetch the start of a web page, for the title-of-a-URL tool",
        "description": "The server fetches the page (following at most five redirects, ten seconds in all) and returns the final URL, the page's HTTP status and Content-Type, and the first 512 KiB of the body as base64. The body is empty unless the status is 2xx and the type is HTML or XHTML. The /tools page extracts the title with the get-title-at-url npm package. Only public addresses on ports 80 and 443; private, local and reserved addresses are refused (403 address_refused), also after DNS and redirects. Errors are {code, message}. Stricter rate limit than the other tools (10 a minute by default); only this site's own pages may call it from a browser; no request body.",
        "operationId": "PageHead",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "description": "An absolute http or https URL on port 80 or 443.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHead"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiMessage"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          },
          "504": {
            "description": "Gateway Timeout",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PageHeadProblem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ApiError": {
        "required": [
          "error"
        ],
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          }
        }
      },
      "ApiMessage": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": "string"
          }
        }
      },
      "ContactMessage": {
        "required": [
          "name",
          "email",
          "message"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "maxLength": 254,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          },
          "message": {
            "maxLength": 5000,
            "minLength": 0,
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "JsonElement": { },
      "PageHead": {
        "required": [
          "url",
          "status",
          "contentType",
          "body"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "status": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "contentType": {
            "type": [
              "null",
              "string"
            ]
          },
          "body": {
            "type": "string"
          }
        }
      },
      "PageHeadProblem": {
        "required": [
          "code",
          "message"
        ],
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Feeds"
    },
    {
      "name": "Agents"
    },
    {
      "name": "Contact"
    },
    {
      "name": "Dashboards"
    },
    {
      "name": "Tools"
    }
  ]
}