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.

Related Concepts