{
  "openapi": "3.1.0",
  "info": {
    "title": "thinkdrop.io public API",
    "version": "1.0.0",
    "description": "Generate brainstorm idea cards for any topic. Free, no authentication, rate limited to 5 requests per IP per 24 hours. Documentation: https://thinkdrop.io/for-agents",
    "contact": { "url": "https://thinkdrop.io/for-agents" },
    "license": { "name": "Free to use with attribution to thinkdrop.io" }
  },
  "servers": [{ "url": "https://gpbebuzzyatqhdsribqu.supabase.co/functions/v1" }],
  "paths": {
    "/public-brainstorm": {
      "post": {
        "operationId": "generateBrainstormIdeas",
        "summary": "Generate 8 brainstorm idea cards for a topic",
        "description": "Returns eight short, concrete, distinct idea cards for the given brainstorming topic. No authentication required.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["topic"],
                "properties": {
                  "topic": {
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 160,
                    "description": "What the ideas should be about.",
                    "example": "Reducing customer support ticket volume"
                  },
                  "source": {
                    "type": "string",
                    "maxLength": 80,
                    "description": "Optional label identifying the calling client or surface.",
                    "example": "my-assistant"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Generated ideas",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "topic": { "type": "string" },
                    "ideas": { "type": "array", "items": { "type": "string" }, "maxItems": 8 },
                    "brainstormId": { "type": ["string", "null"], "format": "uuid" }
                  }
                }
              }
            }
          },
          "400": { "description": "Topic missing or outside the 3-160 character range" },
          "429": { "description": "Free daily limit for this IP reached" },
          "500": { "description": "Generation failed" }
        }
      }
    }
  }
}
