{
  "slug": "cache-intercom-api-help-center",
  "title": "Cache intercom api responses for help center",
  "metaDescription": "Cache intercom api responses for help center. Shield Intercom with 600s GET edge cache; cache key uses query params on cache-intercom-api-help-center.",
  "headline": "Help center articles synced from Intercom",
  "category": "caching",
  "categoryLabel": "Edge Caching & Rate Limits",
  "urgency": 7,
  "clientPlatform": "Static HTML / Jamstack",
  "upstreamServices": [
    "Intercom"
  ],
  "searchIntentQuery": "cache intercom api responses for help center",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Intercom rate limits from Static HTML / Jamstack traffic",
    "explanation": "Without edge caching, identical Intercom reads during a session still round-trip to the origin.",
    "risks": [
      "HTTP 429 responses during launch traffic",
      "Surprise SaaS overages from duplicate reads",
      "Slower repeat views than necessary"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Store upstream credentials in Secret Vault",
      "description": "Store INTERCOM_ACCESS_TOKEN in the vault. Static HTML / Jamstack never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "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."
    },
    {
      "stepNumber": 3,
      "title": "Call from Static HTML / Jamstack",
      "description": "Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.",
      "codeSnippet": "fetch('https://realcomposer.com/v1/workspace/cache-intercom-api-help-center', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n});"
    }
  ],
  "pipelineConfig": {
    "name": "Cache intercom api responses for help center",
    "method": "GET",
    "cacheTtlSeconds": 600,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "intercom",
        "upstreamUrlTemplate": "https://api.intercom.io/contacts",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.INTERCOM_ACCESS_TOKEN}}",
          "Accept": "application/json"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "contactId",
          "sourcePath": "data.0.id",
          "type": "string",
          "sourceStep": "intercom"
        },
        {
          "targetPath": "email",
          "sourcePath": "data.0.email",
          "type": "string",
          "sourceStep": "intercom"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "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"
      }
    }
  },
  "sampleSlimmedOutput": {
    "contactId": "sample",
    "email": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/cache-intercom-api-help-center\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "What should Static HTML / Jamstack store instead of Intercom secrets?",
      "answer": "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."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "Cache key for cache-intercom-api-help-center: internal edge-cache path plus sorted query. Identical params hit; vary userId per user."
    },
    {
      "question": "How do I rotate upstream credentials?",
      "answer": "Upstream steps in cache-intercom-api-help-center honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "cache-third-party-api-at-edge",
    "rest-api-edge-cdn-caching-guide"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/cache-intercom-api-help-center",
    "markdown": "https://realcomposer.com/recipes/cache-intercom-api-help-center.md",
    "json": "https://realcomposer.com/recipes/cache-intercom-api-help-center.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=cache-intercom-api-help-center&via=agent"
  }
}