Skip to content
Docs

Creating a Mailchimp OAuth 2.0 app

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Mailchimp’s own documentation: Access data on behalf of other users with OAuth 2 and Marketing API fundamentals. Retrieved 2026-07-03.

  1. Sign in to your Mailchimp account and navigate to the Registered Apps page (https://<dc>.admin.mailchimp.com/account/oauth2/).
  2. Click Register An App, fill out the Register An App form (including your app’s Redirect URI — Mailchimp strongly recommends, but does not enforce, HTTPS for it), and click Create.
  3. Copy the client_id and client_secret shown at the bottom of the page and store the secret securely — this is the only time the secret is displayed.
  4. To connect a user, redirect them to https://login.mailchimp.com/oauth2/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI. There is no scope parameter — Mailchimp OAuth grants access at the authorizing user’s role level.
  5. After the user approves, Mailchimp redirects back to your redirect_uri with a code query parameter.
  6. Exchange the code with a POST to https://login.mailchimp.com/oauth2/token, sending grant_type=authorization_code, client_id, client_secret, redirect_uri, and code in the URL-form-encoded body. The response contains the access_token.
  7. Fetch the account’s server prefix with GET https://login.mailchimp.com/oauth2/metadata using the header Authorization: OAuth <access_token>; read the dc field from the JSON response.
  8. Persist both the access token and the dc — all API calls go to https://<dc>.api.mailchimp.com/3.0/, authenticating with Authorization: Bearer <access_token> or HTTP Basic (any username, token as password).
  9. Verify the connection with GET https://<dc>.api.mailchimp.com/3.0/ping (responds {"health_status": "Everything's Chimpy!"}).
  10. Tokens do not expire and there is no refresh token: “Mailchimp Marketing access tokens do not expire, so you don’t need to use a refresh_token. The access token will remain valid unless the user revokes your application’s permission to access their account.”
  11. To rotate the client secret later: on the Registered Apps page click Edit on the app, click Rotate in the Client secret field, type ROTATE in the confirmation modal, and click Rotate Client Secret; the updated secret is shown once.

Open Connections under Credentials, choose Mailchimp, and pick Mailchimp OAuth 2.0. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Mailchimp in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.