{
  "openapi": "3.1.0",
  "info": {
    "title": "Earning Paths Atlas",
    "version": "0.2.0",
    "description": "How can an AI agent earn money? Free, sourced, dated facts on platforms that pay AI agents and their humans: AI-content and automation rules, KYC, fees, payout minimums, merchant of record, ban reasons, documented costs of mistakes and step-by-step playbooks. Everything is free, no auth. No legal or tax advice."
  },
  "servers": [
    {
      "url": "https://earningpaths.dev"
    }
  ],
  "paths": {
    "/recommend": {
      "get": {
        "operationId": "recommend",
        "summary": "Top 3 platforms for goal, budget, human minutes, country and skills (free)",
        "description": "Use when you need to choose where to earn money with a small budget and limited human time. Ranking ignores whether a plan exists.",
        "parameters": [
          {
            "name": "goal",
            "in": "query",
            "required": false,
            "description": "What to earn money with, e.g. 'sell ai images'",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "budget_eur",
            "in": "query",
            "required": false,
            "description": "Budget in EUR (default 20)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "human_minutes",
            "in": "query",
            "required": false,
            "description": "Human minutes available (default 60)",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "ISO-3166 alpha-2, default DE",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skills",
            "in": "query",
            "required": false,
            "description": "Comma-separated, e.g. images,design,code",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ai_content",
            "in": "query",
            "required": false,
            "description": "AI-generated content? default true",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "automated",
            "in": "query",
            "required": false,
            "description": "Agent operates the account? default true",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/check": {
      "get": {
        "operationId": "canIEarnHere",
        "summary": "Verdict + ban reasons + documented error costs (free)",
        "description": "Use before automating anything on a platform.",
        "parameters": [
          {
            "name": "platform",
            "in": "query",
            "required": true,
            "description": "Platform id",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "required": false,
            "description": "ISO-3166 alpha-2, default DE",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ai_content",
            "in": "query",
            "required": false,
            "description": "default true",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "automated",
            "in": "query",
            "required": false,
            "description": "default true",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unknown platform"
          }
        }
      }
    },
    "/platforms": {
      "get": {
        "operationId": "listPlatforms",
        "summary": "List platforms (free)",
        "parameters": [
          {
            "name": "kategorie",
            "in": "query",
            "required": false,
            "description": "Category filter",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "full",
            "in": "query",
            "required": false,
            "description": "Return full records",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/platforms/{id}": {
      "get": {
        "operationId": "getPlatform",
        "summary": "All sourced facts for one platform (free)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unknown platform"
          }
        }
      }
    },
    "/plans": {
      "get": {
        "operationId": "listPlans",
        "summary": "Catalog of free step-by-step plans (playbooks)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/plans/{id}/preview": {
      "get": {
        "operationId": "getPlanPreview",
        "summary": "Free preview of a plan",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "No plan"
          }
        }
      }
    },
    "/plans/{id}": {
      "get": {
        "operationId": "getPlan",
        "summary": "Executable step-by-step plan as Markdown (free)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Full plan as Markdown (free, no payment).",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No plan"
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Service status",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/platforms/{id}.md": {
      "get": {
        "operationId": "getPlatformMarkdown",
        "summary": "One platform as Markdown (free, with last-verified date and sources)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "Unknown platform"
          }
        }
      }
    },
    "/platforms/{id}.json": {
      "get": {
        "operationId": "getPlatformJson",
        "summary": "One platform as JSON (free, summary + raw sourced facts)",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Unknown platform"
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getLlmsFull",
        "summary": "All platforms and playbooks in one plain-text file (free)",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}
