{
  "slug": "call-salesforce-from-bubble-securely",
  "title": "Call salesforce api from bubble io securely",
  "metaDescription": "Call salesforce api from bubble io securely. RealComposer mediates Salesforce REST for Bubble workfl. Keep Salesforce keys in RealComposer Vault;.",
  "headline": "Bubble CRM integrations without integration tokens in editor",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 9,
  "clientPlatform": "Bubble.io",
  "upstreamServices": [
    "Salesforce"
  ],
  "searchIntentQuery": "call salesforce api from bubble io securely",
  "directAnswerSummary": "RealComposer mediates Salesforce REST for Bubble workflows. For \"call salesforce api from bubble io securely\", store SALESFORCE_ACCESS_TOKEN in Secret Vault, call https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}} from a Worker, and let Bubble.io hit only https://realcomposer.com/v1/workspace/call-salesforce-from-bubble-securely with an rc_live_ client token.",
  "problem": {
    "title": "Why Bubble.io leaks Salesforce credentials",
    "explanation": "Attackers routinely extract Salesforce secrets from Bubble.io builds. Direct browser calls also expose internal error payloads with hostnames.",
    "risks": [
      "Production Salesforce 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": "Store SALESFORCE_ACCESS_TOKEN in the vault. Bubble.io never embeds the raw secret, only a revocable rc_live_ client token."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "Configure headersTemplate to inject vault secrets, target https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}}, and Add output mapping fields that mirror the JSON contract your screen already expects."
    },
    {
      "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-salesforce-from-bubble-securely\nPrivate header: Authorization Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Call salesforce api from bubble io securely",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "salesforce",
        "upstreamUrlTemplate": "https://{{secrets.SALESFORCE_INSTANCE}}.my.salesforce.com/services/data/v68.0/sobjects/Contact/{{query.contactId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.SALESFORCE_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "contactId",
          "sourcePath": "Id",
          "type": "string",
          "sourceStep": "salesforce"
        },
        {
          "targetPath": "email",
          "sourcePath": "Email",
          "type": "string",
          "sourceStep": "salesforce"
        },
        {
          "targetPath": "name",
          "sourcePath": "Name",
          "type": "string",
          "sourceStep": "salesforce"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "requestId": "req_call-sal",
    "upstreamLatencyMs": 142,
    "audit": {
      "region": "edge",
      "trace": "call-salesforce-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",
    "name": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/call-salesforce-from-bubble-securely\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Can Bubble.io call Salesforce without holding the production key?",
      "answer": "Use scoped tokens where the vendor allows them on call-salesforce-from-bubble-securely. Admin keys stay {{secrets.*}} references only."
    },
    {
      "question": "How do I forward JSON bodies to POST upstreams?",
      "answer": "call-salesforce-from-bubble-securely POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for call-salesforce-from-bubble-securely anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "secure-api-proxy-bubble-io",
    "hubspot-api-client-proxy"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/call-salesforce-from-bubble-securely",
    "markdown": "https://realcomposer.com/recipes/call-salesforce-from-bubble-securely.md",
    "json": "https://realcomposer.com/recipes/call-salesforce-from-bubble-securely.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=call-salesforce-from-bubble-securely&via=agent"
  }
}