{
    "name": "CouponAPI",
    "version": "v1",
    "endpoints": {
        "GET  /health": "Health check for API + database",
        "GET  /v1/coupons": "List coupons (filters: brand_domain, network, type, country, active_only, page, limit)",
        "POST /v1/coupons/validate": "Validate a coupon code (body: code, brand_domain)",
        "GET  /v1/brands": "List brands (filters: category, country, network, page, limit)",
        "GET  /v1/products": "List on-sale products (filters: brand_domain, category, min_discount, sort, page, limit)",
        "POST /v1/auth/keys": "Create a new API key (requires X-Admin-Token; body: email, plan)"
    },
    "auth": "Send header X-API-Key: cap_xxxxxxxx for /v1/coupons and /v1/brands endpoints",
    "docs": "/docs"
}