{
  "name": "LightSurvey",
  "version": "1.0.0",
  "description": "Lightning-gated survey platform. Pay once in sats to create, collect, or purchase responses.",
  "capabilities": {
    "survey_create": {
      "endpoint": "/api/surveys",
      "method": "POST",
      "auth": "L402",
      "price_sats_env": "PRICE_SURVEY_CREATE_SATS"
    },
    "response_purchase": {
      "endpoint": "/api/surveys/:slug/responses/:responseId",
      "method": "GET",
      "auth": "L402",
      "price_sats_env": "PRICE_RESPONSE_PURCHASE_SATS"
    },
    "analytics": {
      "endpoint": "/api/surveys/:slug/analytics",
      "method": "GET",
      "auth": "L402 (owner token)",
      "price_sats_env": "PRICE_ANALYTICS_SATS"
    }
  },
  "auth": {
    "scheme": "L402",
    "header": "Authorization: L402 <macaroon_base64url>:<preimage_hex>",
    "challenge": "WWW-Authenticate: L402 macaroon=\"...\", invoice=\"...\""
  }
}
