{
 "service": "SML Agentic Growth Loops API",
 "publisher": "Script Master Labs LLC",
 "x402Version": 2,
 "network": "eip155:8453",
 "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
 "payTo": "0x5BBd32e0478e49A7540EF2D760E0B0F9AA6328b2",
 "facilitator": "https://mcp-x402.onrender.com",
 "docs": "https://loops.scriptmasterlabs.com/api",
 "openapi": "https://loops.scriptmasterlabs.com/openapi.json",
 "discovery": "https://loops.scriptmasterlabs.com/.well-known/x402",
 "endpoints": [
  {
   "id": "break-even",
   "method": "GET",
   "also": "POST (JSON body)",
   "url": "https://loops.scriptmasterlabs.com/api/break-even",
   "price_usd": "0.01",
   "amount_atomic": "10000",
   "title": "Break-even ROAS, CPA and bid ceilings",
   "description": "Break-even and target ROAS, CPA, ACoS, LTV CPA and max CPC bid ceilings from AOV, gross margin, refunds and variable cost.",
   "example": {
    "aov": 60,
    "gross_margin_pct": 65,
    "refund_pct": 5,
    "variable_cost": 8,
    "buffer_pct": 20,
    "cvr_pct": 2.5,
    "orders_per_customer": 1.8
   },
   "input_schema": {
    "type": "object",
    "required": [
     "aov",
     "gross_margin_pct"
    ],
    "properties": {
     "aov": {
      "type": "number",
      "description": "Average order value, USD"
     },
     "gross_margin_pct": {
      "type": "number",
      "description": "Gross margin %, 0-100"
     },
     "refund_pct": {
      "type": "number",
      "description": "Refund rate % (default 0)"
     },
     "variable_cost": {
      "type": "number",
      "description": "Per-order variable cost USD (shipping, fees)"
     },
     "buffer_pct": {
      "type": "number",
      "description": "Profit buffer % for target CPA/ROAS (default 20)"
     },
     "cvr_pct": {
      "type": "number",
      "description": "Click-to-order conversion rate % (enables bid ceilings)"
     },
     "close_pct": {
      "type": "number",
      "description": "Lead close rate % (default 100)"
     },
     "orders_per_customer": {
      "type": "number",
      "description": "Orders per customer for LTV CPA (default 1)"
     }
    }
   }
  },
  {
   "id": "holdout-sample-size",
   "method": "GET",
   "also": "POST (JSON body)",
   "url": "https://loops.scriptmasterlabs.com/api/holdout-sample-size",
   "price_usd": "0.01",
   "amount_atomic": "10000",
   "title": "Holdout test sample size and readout",
   "description": "Two-proportion sample size per group, run length in full weeks, plus optional z-test readout (p-value, CI, KEEP/ROLL BACK/INCONCLUSIVE).",
   "example": {
    "baseline_pct": 5,
    "mde_pct": 20,
    "confidence_pct": 95,
    "power_pct": 80,
    "test_share_pct": 50,
    "daily_users": 2000
   },
   "input_schema": {
    "type": "object",
    "required": [
     "baseline_pct",
     "mde_pct"
    ],
    "properties": {
     "baseline_pct": {
      "type": "number",
      "description": "Baseline conversion rate %"
     },
     "mde_pct": {
      "type": "number",
      "description": "Relative lift to detect %"
     },
     "confidence_pct": {
      "type": "number",
      "description": "Confidence % (default 95)"
     },
     "power_pct": {
      "type": "number",
      "description": "Power % (default 80)"
     },
     "test_share_pct": {
      "type": "number",
      "description": "Share of users in test % (default 50)"
     },
     "daily_users": {
      "type": "number",
      "description": "Eligible users per day"
     },
     "readout": {
      "type": "object",
      "properties": {
       "control_n": {
        "type": "number",
        "description": "Control users"
       },
       "control_conversions": {
        "type": "number",
        "description": "Control conversions"
       },
       "test_n": {
        "type": "number",
        "description": "Test users"
       },
       "test_conversions": {
        "type": "number",
        "description": "Test conversions"
       }
      }
     }
    }
   }
  },
  {
   "id": "budget-ladder",
   "method": "GET",
   "also": "POST (JSON body)",
   "url": "https://loops.scriptmasterlabs.com/api/budget-ladder",
   "price_usd": "0.01",
   "amount_atomic": "10000",
   "title": "Budget scaling ladder",
   "description": "Capped-step daily budget ladder (default 20% per change) with days to target, ramp spend and hold rule.",
   "example": {
    "start_daily": 100,
    "target_daily": 1000,
    "step_pct": 20,
    "gap_days": 2,
    "target_cpa": 23.24
   },
   "input_schema": {
    "type": "object",
    "required": [
     "start_daily",
     "target_daily"
    ],
    "properties": {
     "start_daily": {
      "type": "number",
      "description": "Current daily budget"
     },
     "target_daily": {
      "type": "number",
      "description": "Target daily budget"
     },
     "step_pct": {
      "type": "number",
      "description": "Max increase per step % (default 20)"
     },
     "gap_days": {
      "type": "number",
      "description": "Days between steps (default 2)"
     },
     "expected_cpa": {
      "type": "number",
      "description": "Expected CPA for conversion estimate"
     },
     "target_cpa": {
      "type": "number",
      "description": "Target CPA for the hold rule"
     }
    }
   }
  },
  {
   "id": "geo-audit",
   "method": "GET",
   "also": "POST (JSON body)",
   "url": "https://loops.scriptmasterlabs.com/api/geo-audit",
   "price_usd": "0.015",
   "amount_atomic": "15000",
   "title": "GEO / AI-visibility page audit",
   "description": "Fetches one public HTTPS page and scores it for AI-answer readiness: answer-first copy, JSON-LD types, FAQ visibility, freshness, AI crawler access in robots.txt and llms.txt.",
   "example": {
    "url": "https://scriptmasterlabs.com"
   },
   "input_schema": {
    "type": "object",
    "required": [
     "url"
    ],
    "properties": {
     "url": {
      "type": "string",
      "format": "uri",
      "description": "Public https:// page to audit"
     }
    }
   }
  },
  {
   "id": "score-ads",
   "method": "POST",
   "also": "GET (query params)",
   "url": "https://loops.scriptmasterlabs.com/api/score-ads",
   "price_usd": "0.03",
   "amount_atomic": "30000",
   "title": "Ad creative kill / watch / scale scoring",
   "description": "Scores up to 500 ads against your own account medians and break-even CPA: KILL, WATCH, SCALE or LEARNING with the reason for each.",
   "example": {
    "break_even_cpa": 29.05,
    "target_cpa": 23.24,
    "creatives": [
     {
      "name": "A",
      "spend": 120,
      "impressions": 40000,
      "views_3s": 12000,
      "thruplays": 3000,
      "clicks": 520,
      "conversions": 6
     }
    ]
   },
   "input_schema": {
    "type": "object",
    "required": [
     "creatives"
    ],
    "properties": {
     "break_even_cpa": {
      "type": "number",
      "description": "Break-even CPA (or pass economics)"
     },
     "target_cpa": {
      "type": "number",
      "description": "Target CPA (default 80% of break-even)"
     },
     "economics": {
      "type": "object",
      "description": "Same fields as break-even"
     },
     "rules": {
      "type": "object",
      "properties": {
       "relative_floor_pct": {
        "type": "number",
        "description": "Floor as % of account median (default 70)"
       },
       "min_spend_x": {
        "type": "number",
        "description": "Judge after spend = x × BE CPA (default 1)"
       },
       "kill_zero_x": {
        "type": "number",
        "description": "Kill at 0 conv after x × BE CPA (default 2)"
       },
       "kill_cpa_x": {
        "type": "number",
        "description": "Kill when CPA > x × BE CPA (default 1.5)"
       }
      }
     },
     "creatives": {
      "type": "array",
      "maxItems": 500,
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "spend": {
         "type": "number",
         "description": "Spend"
        },
        "impressions": {
         "type": "number",
         "description": "Impressions"
        },
        "views_3s": {
         "type": "number",
         "description": "3-second views"
        },
        "thruplays": {
         "type": "number",
         "description": "ThruPlays / completions"
        },
        "clicks": {
         "type": "number",
         "description": "Clicks"
        },
        "conversions": {
         "type": "number",
         "description": "Conversions"
        }
       }
      }
     }
    }
   }
  },
  {
   "id": "loop-prompts",
   "method": "POST",
   "also": "GET (query params)",
   "url": "https://loops.scriptmasterlabs.com/api/loop-prompts",
   "price_usd": "0.04",
   "amount_atomic": "40000",
   "title": "Agentic growth loop prompt generator",
   "description": "Returns the 8 step prompts for one loop (Google Ads, Meta, TikTok, Amazon, Local SEO, SEO, GEO, Lifecycle) with your unit economics injected.",
   "example": {
    "loop": "meta",
    "llm": "Grok",
    "brand": "Example Co",
    "economics": {
     "aov": 60,
     "gross_margin_pct": 65,
     "refund_pct": 5,
     "variable_cost": 8
    }
   },
   "input_schema": {
    "type": "object",
    "required": [
     "loop"
    ],
    "properties": {
     "loop": {
      "type": "string",
      "enum": [
       "gads",
       "meta",
       "tiktok",
       "amazon",
       "local",
       "seo",
       "geo",
       "life"
      ]
     },
     "llm": {
      "type": "string",
      "description": "Assistant name used in the prompt, e.g. Grok, ChatGPT, Claude"
     },
     "brand": {
      "type": "string"
     },
     "offer": {
      "type": "string"
     },
     "site": {
      "type": "string"
     },
     "market": {
      "type": "string"
     },
     "economics": {
      "type": "object",
      "description": "Same fields as break-even"
     }
    }
   }
  }
 ],
 "credits": {
  "header": "X-SML-Credit: ORDER_ID.ACCESS_CODE",
  "product": "https://dual.scriptmasterlabs.com/product/agentic-growth-loops-pro-plus-100-api-calls",
  "per_order": 100
 },
 "disclaimer": "Research and educational output. No performance claims.",
 "build": "20261122-173318"
}