{
  "slug": "paddle-api-proxy-bubble",
  "title": "Paddle api proxy for bubble subscription billing",
  "metaTitle": "Paddle api proxy for bubble - RealComposer",
  "metaDescription": "Paddle api proxy for bubble subscription billing. Paddle customer portal data without exposing vendor API. Keep Paddle keys in RealComposer Vault;.",
  "headline": "Bubble SaaS meters Paddle subscriptions",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 8,
  "clientPlatform": "Bubble.io",
  "upstreamServices": [
    "Paddle"
  ],
  "searchIntentQuery": "paddle api proxy for bubble subscription billing",
  "directAnswerSummary": "Paddle customer portal data without exposing vendor API keys. For \"paddle api proxy for bubble subscription billing\", store PADDLE_API_KEY in Secret Vault, call https://api.paddle.com/subscriptions/{{query.subscriptionId}} from a Worker, and let Bubble.io hit only https://realcomposer.com/v1/workspace/paddle-api-proxy-bubble with an rc_live_ client token.",
  "problem": {
    "title": "Why Bubble.io leaks Paddle credentials",
    "explanation": "Attackers routinely extract Paddle secrets from Bubble.io builds. Direct browser calls also expose internal error payloads with hostnames.",
    "risks": [
      "Production Paddle keys copied from Bubble.io bundles",
      "Compliance violations after credential leaks",
      "Attackers replaying vault-grade scopes from a laptop"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Store PADDLE_API_KEY in the vault. Bubble.io never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "Point step paddle at https://api.paddle.com/subscriptions/{{query.subscriptionId}} with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Connect Bubble API Connector",
      "description": "Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.",
      "codeSnippet": "API Connector GET https://realcomposer.com/v1/workspace/paddle-api-proxy-bubble\nPrivate header: Authorization Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Paddle api proxy for bubble subscription billing",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "paddle",
        "upstreamUrlTemplate": "https://api.paddle.com/subscriptions/{{query.subscriptionId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.PADDLE_API_KEY}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "subscriptionId",
          "sourcePath": "data.id",
          "type": "string",
          "sourceStep": "paddle"
        },
        {
          "targetPath": "status",
          "sourcePath": "data.status",
          "type": "string",
          "sourceStep": "paddle"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_paddle-a",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "paddle-api-proxy-bubble"
    },
    "payload": {
      "id": "sample_id",
      "status": "active",
      "nested": {
        "tags": [
          "demo"
        ],
        "internal": true
      },
      "unused_blob": {
        "foo": "bar",
        "bar": "baz"
      }
    }
  },
  "sampleSlimmedOutput": {
    "subscriptionId": "sample",
    "status": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/paddle-api-proxy-bubble\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Paddle credential belongs in the vault for this pipeline?",
      "answer": "Log request IDs for paddle-api-proxy-bubble, not raw Paddle payloads, because upstream bodies may include PII."
    },
    {
      "question": "What cache key does RealComposer use?",
      "answer": "paddle-api-proxy-bubble vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body."
    },
    {
      "question": "How do I rotate upstream credentials?",
      "answer": "Allowed origins on the paddle-api-proxy-bubble client token restrict which domains may call the edge URL."
    }
  ],
  "relatedRecipeSlugs": [
    "secure-api-proxy-bubble-io",
    "call-paddle-api-from-react-securely"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/paddle-api-proxy-bubble",
    "markdown": "https://realcomposer.com/recipes/paddle-api-proxy-bubble.md",
    "json": "https://realcomposer.com/recipes/paddle-api-proxy-bubble.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=paddle-api-proxy-bubble&via=agent"
  }
}