RealComposer

Mailchimp Safe & Unsafe Practices

Direct Answer

Mailchimp Marketing API keys grant access to the whole account and are server-only. Call Mailchimp from a server or edge proxy, use OAuth for apps that connect other users accounts, and return only the subscriber fields your UI needs.

Credentials & Where They Belong

Server only
Marketing API key (ends in -usX)

Account-wide access. The suffix identifies your data center.

Server only
OAuth access token

Access granted by another Mailchimp user.

Safe Practices

  • Subscribe users through a server endpoint

    Validate the email, apply double opt-in where required, and forward to Mailchimp with the key server-side.

  • Create one key per integration

    Revoke a single key without breaking every other tool.

Unsafe Practices

  • Putting the API key in a signup form script

    Visitors can export or delete your audience.

  • Returning full member objects to clients

    Responses include stats, locations, and tags you may not intend to expose.

The RealComposer Pattern

Store MAILCHIMP_API_KEY in the vault and expose a subscribe or lookup pipeline that returns only status and merge fields.

START BUILDING FREE

Frequently Asked Questions

Q:Is the Mailchimp embedded form safe?

Yes. The hosted embed posts to Mailchimp without your API key. The key itself must never be in client code.

Security & Secret Vault

Call mailchimp api from webflow without exposing api key

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.

Sub-10ms edgeView Recipe
Platforms & Frameworks

Fix cors error mailchimp api call flutterflow

Same pattern as Stripe FlutterFlow: edge URL bypasses CORS. For "fix cors error mailchimp api call flutterflow", 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 FlutterFlow hit only https://realcomposer.com/v1/workspace/fix-cors-error-mailchimp-flutterflow with an rc_live_ client token.

Sub-10ms edgeView Recipe
Security & Secret Vault

Hide mailchimp api key in client side javascript

Block browser extraction of list API keys via edge-only authorization headers. For "hide mailchimp api key in client side javascript", 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 JavaScript / HTML hit only https://realcomposer.com/v1/workspace/hide-mailchimp-api-key-javascript with an rc_live_ client token.

Sub-10ms edgeView Recipe
Edge Caching & Rate Limits

Cache mailchimp api to stay under rate limits

Shared edge cache for popular list metadata endpoints. For "cache mailchimp api to stay under rate limits", 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 JavaScript / HTML hit only https://realcomposer.com/v1/workspace/cache-mailchimp-api-avoid-rate-limits with an rc_live_ client token. Enable 300s GET cache only when query params identify the resource.

Sub-10ms edgeView Recipe
Security & Secret Vault

Mailchimp api proxy for react native signup

Mobile posts to edge; Mailchimp list subscribe runs server-side. For "mailchimp api proxy for react native signup", 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 React Native hit only https://realcomposer.com/v1/workspace/mailchimp-api-proxy-react-native with an rc_live_ client token.

Sub-10ms edgeView Recipe
Multi-API Aggregation

Combine mailchimp audience with hubspot contacts

List membership from Mailchimp and CRM lifecycle stage from HubSpot. For "combine mailchimp audience with hubspot contacts", store MAILCHIMP_BASIC_AUTH, HUBSPOT_ACCESS_TOKEN in Secret Vault, call https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10 from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-mailchimp-with-hubspot-contacts with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts