{
  "openapi": "3.1.0",
  "info": {
    "title": "Rowayty API",
    "description": "Public and programmatic APIs for Rowayty UGC creator marketplace and campaign platform.",
    "version": "1.0.0",
    "contact": {
      "name": "Rowayty Support",
      "url": "https://rowayty.com"
    }
  },
  "servers": [
    {
      "url": "https://rowayty.com",
      "description": "Production server"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Platform Health Check",
        "description": "Returns operational status and Neon serverless database connectivity ping.",
        "responses": {
          "200": {
            "description": "Platform is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "healthy" },
                    "database": { "type": "string", "example": "connected" },
                    "latencyMs": { "type": "number", "example": 15 },
                    "timestamp": { "type": "string", "format": "date-time" }
                  }
                }
              }
            }
          },
          "503": {
            "description": "Platform or database unhealthy"
          }
        }
      }
    },
    "/api/creators": {
      "get": {
        "summary": "List Verified UGC Creators",
        "description": "Retrieves public list of verified UGC creators with portfolio metrics.",
        "responses": {
          "200": {
            "description": "List of creators",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "creators": { "type": "array" }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
