Keys / Mailchimp
MAILCHIMP_API_KEY
The Mailchimp Marketing API key your server calls the API with. It has full access to the account, limited by the role of the user who created it.
- Expires
- 1 year, for keys created since June 22, 2026; older keys never
- API
- none; Mailchimp account only
Get it
Create one on us1.admin.mailchimp.com/account/api. The steps aren't recorded yet.
Set it
MAILCHIMP_API_KEY=...
No official Mailchimp SDK reads this variable; your app passes the key in. The mcapi CLI reads MCAPI_TOKEN. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Under Profile, Extras, API keys, click Create A Key. A key gets the role of the user who creates it, so use a user with the same role as before.
- Deploy it everywhere that reads
MAILCHIMP_API_KEY. Both keys work in the meantime. - Check that nothing still uses the old key, then click Revoke next to it. A revoked key can't be reactivated.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.