{
  "openapi": "3.1.0",
  "info": {
    "title": "Umbrella Growth Task Report",
    "version": "0.1.0",
    "description": "Free agent-callable growth-task endpoint. Send one plain-English task; get a finished deliverable back."
  },
  "servers": [
    {
      "url": "https://umbrella-agent-api.lengrowth.workers.dev"
    }
  ],
  "paths": {
    "/run": {
      "post": {
        "operationId": "runGrowthTask",
        "summary": "Run one growth task and return the finished deliverable",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "task"
                ],
                "properties": {
                  "task": {
                    "type": "string",
                    "maxLength": 4000,
                    "description": "One plain-English growth task."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Finished deliverable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    },
                    "output": {
                      "type": "string"
                    },
                    "remaining_today": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          }
        }
      }
    }
  }
}