Intercom contact json slim for crm sidebar
Sidebar cards without full custom attributes
Contact id email and company for quick context. For "intercom contact json slim for crm sidebar", store INTERCOM_ACCESS_TOKEN in Secret Vault, call https://api.intercom.io/contacts from a Worker, and let React hit only https://realcomposer.com/v1/workspace/slim-intercom-contact-json-sidebar with an rc_live_ client token.
Unmapped Intercom fields waste bandwidth
Intercom returns nested CRM, audit, and configuration objects. React parses them on the main thread even when the UI binds three fields.
- Large arrays kept in memory after navigation
- Analytics showing poor LCP on API-heavy screens
- Developers shipping defensive null checks for unused paths
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Add INTERCOM_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Target the real upstream URL
Configure headersTemplate to inject vault secrets, target https://api.intercom.io/contacts, and Map only the UI fields in output mapping so clients never download audit or nested blobs.
Call from React
Call https://realcomposer.com/v1/workspace/slim-intercom-contact-json-sidebar with a restricted rc_live_ client token. React never sends upstream secrets.
const res = await fetch('https://realcomposer.com/v1/workspace/slim-intercom-contact-json-sidebar', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
const data = await res.json();
{
"requestId": "req_slim-int",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "slim-intercom-contact-json-sidebar"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"contactId": "sample",
"email": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 253 B to 39 B (-85%)
curl -X GET "https://realcomposer.com/v1/workspace/slim-intercom-contact-json-sidebar" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Does React need CORS changes after adding RealComposer?
Yes for slim-intercom-contact-json-sidebar. Ship only an rc_live_ client token in React; RealComposer injects INTERCOM_ACCESS_TOKEN on https://api.intercom.io/contacts.
What cache key does RealComposer use?
slim-intercom-contact-json-sidebar forwards client JSON to POST upstreams unchanged; secrets interpolate only in URLs and header templates.
What happens if an upstream step times out?
Upstream steps in slim-intercom-contact-json-sidebar honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this React + Intercom Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.