{
  "slug": "call-intercom-from-bubble-securely",
  "title": "Call intercom api from bubble io without access token",
  "metaTitle": "Call intercom api from bubble io - RealComposer",
  "metaDescription": "Call intercom api from bubble io without access token. Keep Intercom keys in RealComposer Vault; Bubble.io uses rc_live_ tokens only.",
  "headline": "Bubble apps with private Intercom REST access",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 9,
  "clientPlatform": "Bubble.io",
  "upstreamServices": [
    "Intercom"
  ],
  "searchIntentQuery": "call intercom api from bubble io without access token",
  "directAnswerSummary": "Removes Intercom PAT from Bubble connector configuration and network logs. For \"call intercom api from bubble io without access token\", store INTERCOM_ACCESS_TOKEN in Secret Vault, call https://api.intercom.io/contacts from a Worker, and let Bubble.io hit only https://realcomposer.com/v1/workspace/call-intercom-from-bubble-securely with an rc_live_ client token.",
  "problem": {
    "title": "Why Bubble.io leaks Intercom credentials",
    "explanation": "Attackers routinely extract Intercom secrets from Bubble.io builds. Direct browser calls also expose internal error payloads with hostnames.",
    "risks": [
      "Production Intercom keys copied from Bubble.io bundles",
      "Compliance violations after credential leaks",
      "Attackers replaying vault-grade scopes from a laptop"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Add INTERCOM_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Point step intercom at https://api.intercom.io/contacts with GET. Add output mapping fields that mirror the JSON contract your screen already expects. Leave cache TTL at 0 when each response is user-specific (include userId or record id in query params before enabling cache)."
    },
    {
      "stepNumber": 3,
      "title": "Connect Bubble API Connector",
      "description": "Allowed origins on the token should list every Bubble.io host that calls this URL.",
      "codeSnippet": "API Connector GET https://realcomposer.com/v1/workspace/call-intercom-from-bubble-securely\nPrivate header: Authorization Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Call intercom api from bubble io without access token",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "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_call-int",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "call-intercom-from-bubble-securely"
    },
    "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/call-intercom-from-bubble-securely\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Which Intercom credential belongs in the vault for this pipeline?",
      "answer": "Point Bubble.io at /recipes/call-intercom-from-bubble-securely edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins."
    },
    {
      "question": "Does POST traffic get cached?",
      "answer": "Cache key for call-intercom-from-bubble-securely: internal edge-cache path plus sorted query. Identical params hit; vary userId per user."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for call-intercom-from-bubble-securely anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "secure-api-proxy-bubble-io",
    "bubble-io-hide-api-key-plugin"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/call-intercom-from-bubble-securely",
    "markdown": "https://realcomposer.com/recipes/call-intercom-from-bubble-securely.md",
    "json": "https://realcomposer.com/recipes/call-intercom-from-bubble-securely.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=call-intercom-from-bubble-securely&via=agent"
  }
}