Call contentful delivery api from flutterflow securely
Headless CMS for FlutterFlow with zero leaked tokens
Contentful Delivery API proxied with preview and delivery keys in Vault. For "call contentful delivery api from flutterflow securely", store CONTENTFUL_ACCESS_TOKEN in Secret Vault, call https://cdn.contentful.com/spaces/{{query.spaceId}}/entries from a Worker, and let FlutterFlow hit only https://realcomposer.com/v1/workspace/call-contentful-from-flutterflow-securely with an rc_live_ client token.
Contentful keys in FlutterFlow network tabs
FlutterFlow ships code or scripts to end-user devices. Any Contentful bearer token in those bundles can be copied from DevTools, proxies, or repackaged apps.
- Shared FlutterFlow projects revealing Contentful tokens
- Sudden Contentful quota burn from scripted abuse
- Inability to rotate keys without redeploying clients
How RealComposer Solves This at the Edge
Add vault secrets for this pipeline
Add CONTENTFUL_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream.
Configure upstream steps and output mapping
Point step contentful at https://cdn.contentful.com/spaces/{{query.spaceId}}/entries 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).
Wire the FlutterFlow API Call
Allowed origins on the token should list every FlutterFlow host that calls this URL.
// FlutterFlow API Call
URL: https://realcomposer.com/v1/workspace/call-contentful-from-flutterflow-securely
Header Authorization: Bearer rc_live_your_token
{
"requestId": "req_call-con",
"upstreamLatencyMs": 142,
"audit": {
"region": "edge",
"trace": "call-contentful-from-flutterflow-securely"
},
"payload": {
"id": "sample_id",
"status": "active",
"nested": {
"tags": [
"demo"
],
"internal": true
},
"unused_blob": {
"foo": "bar",
"bar": "baz"
}
}
}
{
"entryId": "sample",
"title": "sample"
}
Recipe Specs
- HTTP method
- GET
- Upstream calls
- 1
- Edge cache TTL
- No caching
- Client auth
- Restricted client token
- Mapped output fields
- 2
- Payload
- 260 B to 37 B (-86%)
curl -X GET "https://realcomposer.com/v1/workspace/call-contentful-from-flutterflow-securely" \ -H "Authorization: Bearer rc_live_client_token"
Developer Questions & Troubleshooting
Is it safe to log Contentful responses in FlutterFlow?
Point FlutterFlow at /recipes/call-contentful-from-flutterflow-securely edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins.
Will Anthropic or Linear prompt bodies be rewritten?
call-contentful-from-flutterflow-securely POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard.
What happens if an upstream step times out?
Upstream steps in call-contentful-from-flutterflow-securely honor timeoutMs and optional fallback JSON without leaking secrets.
Sources & Definitions Used in This Answer
Deploy this FlutterFlow + Contentful Recipe
Clone this pre-configured pipeline into your RealComposer workspace in one click. We pre-populate upstream URLs, headers, and mapping rules.