{
  "openapi": "3.1.0",
  "info": {
    "title": "Mentoring Inquiry Builder API",
    "version": "1.0.0",
    "description": "Read-only REST layer over Marian Kamenistak's Mentoring Inquiry Builder: options, focus matching and program skeletons for 1:1 engineering-leadership mentoring. Prices come from the published catalog marian.coach renders. Sending an offer runs through the MCP server at /mcp/mentoring or the chat at /mentoring-chat/, where the 16% AI-channel discount applies.",
    "contact": {
      "name": "Marian Kamenistak",
      "url": "https://www.marian.coach/",
      "email": "marian@marian.coach"
    },
    "license": {
      "name": "MIT"
    }
  },
  "servers": [
    {
      "url": "https://www.marian.coach/mcp/mentoring/api"
    }
  ],
  "paths": {
    "/options": {
      "get": {
        "summary": "The wizard's opening: discount data, questions, packages, why-Marian",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/match": {
      "get": {
        "summary": "Match focus areas to a role and motivation",
        "parameters": [
          {
            "name": "role_band",
            "in": "query",
            "required": true,
            "description": "senior-ic | team-lead | em | director-vp | cto-founder | product-leader",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "motivation",
            "in": "query",
            "required": true,
            "description": "motivation id from /options",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/program": {
      "get": {
        "summary": "Deterministic dated session skeleton for a package",
        "parameters": [
          {
            "name": "offer_id",
            "in": "query",
            "required": true,
            "description": "single-session | first-quarter | monthly | mentor-in-residence",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start_date",
            "in": "query",
            "required": true,
            "description": "YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/verify": {
      "get": {
        "summary": "Verify a claim code (HMAC recompute, no datastore)",
        "parameters": [
          {
            "name": "code",
            "in": "query",
            "required": true,
            "description": "AI16-YYMMDD-XXXXXXXX",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "required": true,
            "description": "email the offer went to",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "offer",
            "in": "query",
            "required": true,
            "description": "single-session | first-quarter | monthly | mentor-in-residence",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "date",
            "in": "query",
            "required": true,
            "description": "issue date YYYY-MM-DD",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "channel",
            "in": "query",
            "required": true,
            "description": "mcp | chat",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "_source": "https://www.marian.coach/?ref=api"
}