RealComposer
AppsmithREST APIPlatforms & Frameworks

Appsmith Secure API Proxy for Third Party Credentials

Low-code REST API BFF for Appsmith

Direct Answer & Architecture Summary

Appsmith browsers cannot call https://jsonplaceholder.typicode.com/users/{{query.userId}} directly because of CORS and hidden credentials. RealComposer responds to OPTIONS and proxies authorized traffic.

Security LevelAES-256-GCM Vault
Edge LatencySub-10ms Response
InfrastructureZero Server Maintenance
The Problem Solved

Appsmith cannot attach secret headers to REST API

Appsmith runs in the browser or a sandbox without a secret store. REST API rejects unsigned browser origins or requires server-only headers.

Critical Security & Operational Risks:
  • Proxy hacks that break when vendors tighten CSP
  • Zapier-only workarounds adding cost and latency
  • Guest users seeing failed network requests in demos
Architecture & Step-by-Step Implementation

How RealComposer Solves This at the Edge

1

Bind vault keys to the Worker

Create API_BEARER_TOKEN vault entries, then bind them to this pipeline step headers with {{secrets.NAME}} placeholders.

2

Set headers, mapping, and cache TTL

Point step upstream at https://jsonplaceholder.typicode.com/users/{{query.userId}} 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).

3

Call from Appsmith

Authorize with Bearer rc_live_ and fetch the mapped JSON contract your UI already expects.

                    {{ fetch('https://realcomposer.com/v1/workspace/appsmith-secure-api-proxy', { headers: { Authorization: 'Bearer rc_live_token' } }).then(r => r.json()) }}
                  
Payload Slimming Comparison
79% Bandwidth Reduction
Raw Upstream Response244 B
              {
  "requestId": "req_appsmith",
  "upstreamLatencyMs": 142,
  "audit": {
    "region": "edge",
    "trace": "appsmith-secure-api-proxy"
  },
  "payload": {
    "id": "sample_id",
    "status": "active",
    "nested": {
      "tags": [
        "demo"
      ],
      "internal": true
    },
    "unused_blob": {
      "foo": "bar",
      "bar": "baz"
    }
  }
}
            
RealComposer Slimmed Edge Payload52 B
              {
  "userId": "sample",
  "name": "sample",
  "email": "sample"
}
            

Recipe Specs

HTTP method
GET
Upstream calls
1
Edge cache TTL
No caching
Client auth
Restricted client token
Mapped output fields
3
Payload
244 B to 52 B (-79%)
Call from Terminal or Client
curl -X GET "https://realcomposer.com/v1/workspace/appsmith-secure-api-proxy" \
  -H "Authorization: Bearer rc_live_client_token"
Frequently Asked Questions

Developer Questions & Troubleshooting

Does Appsmith need CORS changes after adding RealComposer?

Yes for appsmith-secure-api-proxy. Ship only an rc_live_ client token in Appsmith; RealComposer injects API_BEARER_TOKEN on https://jsonplaceholder.typicode.com/users/{{query.userId}}.

What cache key does RealComposer use?

Cache key for appsmith-secure-api-proxy: internal edge-cache path plus sorted query. Identical params hit; vary userId per user.

How do I rotate upstream credentials?

Rotate vault secrets for appsmith-secure-api-proxy anytime; clients keep the same rc_live_ token.

Sources & Definitions Used in This Answer

Instant Deployment

Deploy this Appsmith + REST API Recipe

Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.

CLONE THIS RECIPE
Related Architecture Recipes