RealComposer
WebflowMailchimpSecurity & Secret Vault

Call mailchimp api from webflow without exposing api key

Webflow signup forms with hidden Mailchimp keys

Direct Answer & Architecture Summary

RealComposer subscribes list members with API key injected server-side. For "call mailchimp api from webflow without exposing api key", store MAILCHIMP_BASIC_AUTH in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Webflow hit only https://realcomposer.com/v1/workspace/call-mailchimp-from-webflow-securely with an rc_live_ client token.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Mailchimp keys in Webflow network tabs

Webflow ships code or scripts to end-user devices. Any Mailchimp bearer token in those bundles can be copied from DevTools, proxies, or repackaged apps.

Critical Security & Operational Risks:
  • Shared Webflow projects revealing Mailchimp tokens
  • Sudden Mailchimp quota burn from scripted abuse
  • Inability to rotate keys without redeploying clients
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Add vault secrets for this pipeline

Add MAILCHIMP_BASIC_AUTH to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.

2

Target the real upstream URL

Configure headersTemplate to inject vault secrets, target https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10, and Add output mapping fields that mirror the JSON contract your screen already expects.

3

Call from Webflow custom code

Call https://realcomposer.com/v1/workspace/call-mailchimp-from-webflow-securely with a restricted rc_live_ client token. Webflow never sends upstream secrets.

                    fetch('https://realcomposer.com/v1/workspace/call-mailchimp-from-webflow-securely', {
  headers: { Authorization: 'Bearer rc_live_your_token' }
}).then(r => r.json());
                  
Payload Slimming Comparison
78% Bandwidth Reduction
Raw Upstream Response255 B
              {
  "requestId": "req_call-mai",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "call-mailchimp-from-webflow-securely"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload56 B
              {
  "memberId": "sample",
  "email": "sample",
  "status": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
3
Payload
255 B to 56 B (-78%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/call-mailchimp-from-webflow-securely" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Does Webflow need CORS changes after adding RealComposer?

Yes for call-mailchimp-from-webflow-securely. Ship only an rc_live_ client token in Webflow; RealComposer injects MAILCHIMP_BASIC_AUTH on https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10.

What cache key does RealComposer use?

call-mailchimp-from-webflow-securely forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.

Can I restrict which domains call this pipeline?

Upstream steps in call-mailchimp-from-webflow-securely honor timeoutMs and optional fallback JSON without leaking secrets.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Webflow + Mailchimp Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes