How to Call REST API from Webflow without Zapier
Low-code REST API BFF for Webflow
Webflow 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.
Webflow cannot attach secret headers to REST API
Webflow runs in the browser or a sandbox without a secret store. REST API rejects unsigned browser origins or requires server-only headers.
- Proxy hacks that break when vendors tighten CSP
- Zapier-only workarounds adding cost and latency
- Guest users seeing failed network requests in demos
How RealComposer Solves This at the Edge
Bind vault keys to the Worker
Add API_BEARER_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Target the real upstream URL
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).
Call from Webflow custom code
Call https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier with a restricted rc_live_ client token. Webflow never sends upstream secrets.
fetch('https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier', {
headers: { Authorization: 'Bearer rc_live_your_token' }
}).then(r => r.json());
{
"requestId": "req_call-res",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "call-rest-api-webflow-without-zapier"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"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
- 255 B to 52 B (-80%)
curl -X GET "https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Is it safe to log REST API responses in Webflow?
Point Webflow at /recipes/call-rest-api-webflow-without-zapier edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins.
Will Anthropic or Linear prompt bodies be rewritten?
call-rest-api-webflow-without-zapier keeps cache TTL at 0 because it uses POST upstream calls or per-user responses. Add ids to query strings before enabling GET cache.
What happens if an upstream step times out?
Rotate vault secrets for call-rest-api-webflow-without-zapier anytime; clients keep the same rc_live_ token.
Sources & Definitions Used in This Answer
Deploy this Webflow + REST API Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.