API Reference Card
All examples use three environment variables:
MAILCHIMP_API_KEY (your full API key including the -dc suffix), MAILCHIMP_DC (data center, e.g. us14), and MAVERA_API_KEY. Python examples use requests with Basic Auth (anystring as username, API key as password); JavaScript examples use fetch with the same pattern.Prerequisites
1
Mailchimp account with data
You need a Mailchimp account with at least one audience (list) containing subscribers and at least 5 sent campaigns with performance data.
2
API key
Generate an API key in Mailchimp → Account & Billing → Extras → API keys. The key includes your data center suffix (e.g.
abc123def456-us14).3
Extract data center
The
dc is the portion after the dash in your API key. For abc123def456-us14, your DC is us14 and your base URL is https://us14.api.mailchimp.com/3.0/.4
Mavera API key
Get your key from Mavera dashboard.
5
Environment variables
Jobs
Rate Limits & Production Notes
Production checklist:
What’s Next
All Integrations
50+ API integrations with full code
Mailchimp API Docs
Official Mailchimp Marketing API reference
Personas API
Full reference for POST /api/v1/personas
Focus Groups API
Full reference for POST /api/v1/focus-groups
Brand Voice API
Full reference for POST /api/v1/brand-voices
Generate API
Full reference for POST /api/v1/generations