{
  "slug": "call-contentful-from-flutterflow-securely",
  "title": "Call contentful delivery api from flutterflow securely",
  "metaTitle": "Call contentful delivery api from - RealComposer",
  "metaDescription": "Call contentful delivery api from flutterflow securely. Keep Contentful keys in RealComposer Vault; FlutterFlow uses rc_live_ tokens only.",
  "headline": "Headless CMS for FlutterFlow with zero leaked tokens",
  "category": "security",
  "categoryLabel": "Security & Secret Vault",
  "urgency": 9,
  "clientPlatform": "FlutterFlow",
  "upstreamServices": [
    "Contentful"
  ],
  "searchIntentQuery": "call contentful delivery api from flutterflow securely",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Contentful keys in FlutterFlow network tabs",
    "explanation": "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.",
    "risks": [
      "Shared FlutterFlow projects revealing Contentful tokens",
      "Sudden Contentful quota burn from scripted abuse",
      "Inability to rotate keys without redeploying clients"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Add vault secrets for this pipeline",
      "description": "Add CONTENTFUL_ACCESS_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Configure upstream steps and output mapping",
      "description": "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)."
    },
    {
      "stepNumber": 3,
      "title": "Wire the FlutterFlow API Call",
      "description": "Allowed origins on the token should list every FlutterFlow host that calls this URL.",
      "codeSnippet": "// FlutterFlow API Call\nURL: https://realcomposer.com/v1/workspace/call-contentful-from-flutterflow-securely\nHeader Authorization: Bearer rc_live_your_token"
    }
  ],
  "pipelineConfig": {
    "name": "Call contentful delivery api from flutterflow securely",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "contentful",
        "upstreamUrlTemplate": "https://cdn.contentful.com/spaces/{{query.spaceId}}/entries",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.CONTENTFUL_ACCESS_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "entryId",
          "sourcePath": "items.0.sys.id",
          "type": "string",
          "sourceStep": "contentful"
        },
        {
          "targetPath": "title",
          "sourcePath": "items.0.fields.title",
          "type": "string",
          "sourceStep": "contentful"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "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"
      }
    }
  },
  "sampleSlimmedOutput": {
    "entryId": "sample",
    "title": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/call-contentful-from-flutterflow-securely\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Is it safe to log Contentful responses in FlutterFlow?",
      "answer": "Point FlutterFlow at /recipes/call-contentful-from-flutterflow-securely edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "call-contentful-from-flutterflow-securely POST steps bypass caches.default even if cacheTtlSeconds is set in the dashboard."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Upstream steps in call-contentful-from-flutterflow-securely honor timeoutMs and optional fallback JSON without leaking secrets."
    }
  ],
  "relatedRecipeSlugs": [
    "call-airtable-from-flutterflow-securely",
    "stitch-two-rest-apis-flutterflow"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/call-contentful-from-flutterflow-securely",
    "markdown": "https://realcomposer.com/recipes/call-contentful-from-flutterflow-securely.md",
    "json": "https://realcomposer.com/recipes/call-contentful-from-flutterflow-securely.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=call-contentful-from-flutterflow-securely&via=agent"
  }
}