Combine mailchimp audience with hubspot contacts
Marketing audience alignment endpoint
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.
Serial Mailchimp and HubSpot calls slow Frontend / Web pages
Each extra Mailchimp and HubSpot hop adds hundreds of milliseconds and another OAuth refresh path your UI must manage.
- One slow upstream blocking an entire page
- Partial failures leaving UI in inconsistent states
- Duplicate auth refresh logic per service
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Create MAILCHIMP_BASIC_AUTH, HUBSPOT_ACCESS_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.
Configure upstream steps and output mapping
Use GET against https://{{secrets.MAILCHIMP_DC}}.api.mailchimp.com/3.0/lists/{{query.listId}}/members?count=10. Allowed origins on the client token should match leave cache ttl at 0 when each response is user-specific (include userid or record id in query params before enabling cache).
Call from Frontend / Web
Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.
const res = await fetch('https://realcomposer.com/v1/workspace/combine-mailchimp-with-hubspot-contacts', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_combine-",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "combine-mailchimp-with-hubspot-contacts"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"mailchimp_memberId": "sample",
"mailchimp_email": "sample",
"hubspot_contactId": "sample",
"hubspot_email": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 2
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 4
- Payload
- 258 B to 112 B (-57%)
curl -X GET "https://realcomposer.com/v1/workspace/combine-mailchimp-with-hubspot-contacts" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Which Mailchimp credential belongs in the vault for this pipeline?
Point Frontend / Web at /recipes/combine-mailchimp-with-hubspot-contacts edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins.
Does POST traffic get cached?
combine-mailchimp-with-hubspot-contacts vault headers attach server-side, but Anthropic or OpenAI model and messages must come from the client body.
How do I rotate upstream credentials?
Upstream steps in combine-mailchimp-with-hubspot-contacts honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Frontend / Web + Mailchimp, HubSpot Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.