Call salesforce api from bubble io securely
Bubble CRM integrations without integration tokens in editor
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.
Why Bubble.io leaks Salesforce credentials
Attackers routinely extract Salesforce secrets from Bubble.io builds. Direct browser calls also expose internal error payloads with hostnames.
- Production Salesforce keys copied from Bubble.io bundles
- Compliance violations after credential leaks
- Attackers replaying vault-grade scopes from a laptop
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Store SALESFORCE_ACCESS_TOKEN in the vault. Bubble.io never embeds the raw secret, only a revocable rc_live_ client token.
Target the real upstream URL
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.
Connect Bubble API Connector
Allowed origins on the token should list every Bubble.io host that calls this URL.
API Connector GET https://realcomposer.com/v1/workspace/call-salesforce-from-bubble-securely
Private header: Authorization Bearer rc_live_your_token
{
"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"
}
}
}
{
"contactId": "sample",
"email": "sample",
"name": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 3
- Payload
- 255 B to 55 B (-78%)
curl -X GET "https://realcomposer.com/v1/workspace/call-salesforce-from-bubble-securely" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Can Bubble.io call Salesforce without holding the production key?
Use scoped tokens where the vendor allows them on call-salesforce-from-bubble-securely. Admin keys stay {{secrets.*}} references only.
How do I forward JSON bodies to POST upstreams?
call-salesforce-from-bubble-securely POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.
What happens if an upstream step times out?
Rotate vault secrets for call-salesforce-from-bubble-securely anytime; clients keep the same rc_live_ token.
Sources & Definitions Used in This Answer
Deploy this Bubble.io + Salesforce Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.