Cache intercom api responses for help center
Help center articles synced from Intercom
Edge cache article list JSON for global readers. For "cache intercom api responses for help center", store INTERCOM_ACCESS_TOKEN in Secret Vault, call https://api.intercom.io/contacts from a Worker, and let Static HTML / Jamstack hit only https://realcomposer.com/v1/workspace/cache-intercom-api-help-center with an rc_live_ client token. Enable 600s GET cache only when query params identify the resource.
Intercom rate limits from Static HTML / Jamstack traffic
Without edge caching, identical Intercom reads during a session still round-trip to the origin.
- HTTP 429 responses during launch traffic
- Surprise SaaS overages from duplicate reads
- Slower repeat views than necessary
How RealComposer Solves This at the Edge
Store upstream credentials in Secret Vault
Store INTERCOM_ACCESS_TOKEN in the vault. Static HTML / Jamstack never embeds the raw secret, only a revocable rc_live_ client token.
Configure upstream steps and output mapping
Configure headersTemplate to inject vault secrets, target https://api.intercom.io/contacts, and Add output mapping fields that mirror the JSON contract your screen already expects.
Call from Static HTML / Jamstack
Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.
fetch('https://realcomposer.com/v1/workspace/cache-intercom-api-help-center', {
headers: { Authorization: 'Bearer rc_live_your_token' }
});
{
"requestId": "req_cache-in",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "cache-intercom-api-help-center"
},
"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
- 600s
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 249 B to 39 B (-84%)
curl -X GET "https://realcomposer.com/v1/workspace/cache-intercom-api-help-center" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
What should Static HTML / Jamstack store instead of Intercom secrets?
Yes for cache-intercom-api-help-center. Ship only an rc_live_ client token in Static HTML / Jamstack; RealComposer injects INTERCOM_ACCESS_TOKEN on https://api.intercom.io/contacts.
Will Anthropic or Linear prompt bodies be rewritten?
Cache key for cache-intercom-api-help-center: internal edge-cache path plus sorted query. Identical params hit; vary userId per user.
How do I rotate upstream credentials?
Upstream steps in cache-intercom-api-help-center honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this Static HTML / Jamstack + Intercom Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.