{
  "openapi": "3.1.0",
  "info": {
    "title": "gonza.uy public API",
    "version": "1.0.0",
    "summary": "Read-only portfolio APIs for Gonzalo Robaina, plus a Turnstile-protected contact form.",
    "description": "JSON APIs for profile, blog posts, and clients are public and do not require OAuth. Email hi@gonza.uy to get in touch. POST /api/contact is a human contact form protected by Cloudflare Turnstile.",
    "contact": {
      "name": "Gonzalo Robaina",
      "email": "hi@gonza.uy",
      "url": "https://gonza.uy"
    }
  },
  "servers": [
    {
      "url": "https://gonza.uy"
    }
  ],
  "tags": [
    {
      "name": "profile"
    },
    {
      "name": "blog"
    },
    {
      "name": "clients"
    },
    {
      "name": "contact"
    },
    {
      "name": "health"
    }
  ],
  "paths": {
    "/api/profile": {
      "get": {
        "tags": [
          "profile"
        ],
        "summary": "Get profile",
        "operationId": "getProfile",
        "responses": {
          "200": {
            "description": "Profile JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/posts": {
      "get": {
        "tags": [
          "blog"
        ],
        "summary": "List blog posts",
        "operationId": "listPosts",
        "responses": {
          "200": {
            "description": "Array of posts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/posts/{slug}": {
      "get": {
        "tags": [
          "blog"
        ],
        "summary": "Get a blog post as markdown",
        "operationId": "getPost",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Post with markdown body",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Not found"
          }
        }
      }
    },
    "/api/clients": {
      "get": {
        "tags": [
          "clients"
        ],
        "summary": "List selected clients",
        "operationId": "listClients",
        "responses": {
          "200": {
            "description": "Array of clients",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/contact": {
      "post": {
        "tags": [
          "contact"
        ],
        "summary": "Submit the human contact form",
        "description": "Requires a Cloudflare Turnstile token from the website form. Agents should email hi@gonza.uy instead.",
        "operationId": "submitContact",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "email",
                  "subject",
                  "message"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  },
                  "cf-turnstile-response": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message accepted"
          },
          "400": {
            "description": "Validation error"
          },
          "403": {
            "description": "Turnstile verification failed"
          }
        }
      }
    },
    "/health": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Health check",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "tags": [
          "profile"
        ],
        "summary": "MCP Streamable HTTP endpoint",
        "operationId": "mcp",
        "responses": {
          "200": {
            "description": "JSON-RPC response"
          }
        }
      }
    }
  }
}