Call mailchimp api from webflow without exposing api key
Webflow signup forms with hidden Mailchimp keys
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.
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.
- Shared Webflow projects revealing Mailchimp tokens
- Sudden Mailchimp quota burn from scripted abuse
- Inability to rotate keys without redeploying clients
How RealComposer Solves This at the Edge
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.
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.
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());
{
"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"
}
}
}
{
"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%)
curl -X GET "https://realcomposer.com/v1/workspace/call-mailchimp-from-webflow-securely" \ -H "Authorization: Bearer rc_live_client_token"
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
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.