{
  "slug": "call-rest-api-webflow-without-zapier",
  "title": "How to Call REST API from Webflow without Zapier",
  "metaTitle": "Call REST API from Webflow without - RealComposer",
  "metaDescription": "How to call rest api from webflow without zapier. Webflow CORS fix for REST API via RealComposer OPTIONS plus vault headers.",
  "headline": "Low-code REST API BFF for Webflow",
  "category": "ecosystem",
  "categoryLabel": "Platforms & Frameworks",
  "urgency": 8,
  "clientPlatform": "Webflow",
  "upstreamServices": [
    "REST API"
  ],
  "searchIntentQuery": "how to call rest api from webflow without zapier",
  "directAnswerSummary": "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.",
  "problem": {
    "title": "Webflow cannot attach secret headers to REST API",
    "explanation": "Webflow runs in the browser or a sandbox without a secret store. REST API rejects unsigned browser origins or requires server-only headers.",
    "risks": [
      "Proxy hacks that break when vendors tighten CSP",
      "Zapier-only workarounds adding cost and latency",
      "Guest users seeing failed network requests in demos"
    ]
  },
  "solutionSteps": [
    {
      "stepNumber": 1,
      "title": "Bind vault keys to the Worker",
      "description": "Add API_BEARER_TOKEN to RealComposer Secret Vault. Values decrypt only inside the Cloudflare Worker that calls the upstream."
    },
    {
      "stepNumber": 2,
      "title": "Target the real upstream URL",
      "description": "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)."
    },
    {
      "stepNumber": 3,
      "title": "Call from Webflow custom code",
      "description": "Call https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier with a restricted rc_live_ client token. Webflow never sends upstream secrets.",
      "codeSnippet": "fetch('https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier', {\n  headers: { Authorization: 'Bearer rc_live_your_token' }\n}).then(r => r.json());"
    }
  ],
  "pipelineConfig": {
    "name": "How to Call REST API from Webflow without Zapier",
    "method": "GET",
    "cacheTtlSeconds": 0,
    "authMode": "client_token",
    "steps": [
      {
        "stepKey": "upstream",
        "upstreamUrlTemplate": "https://jsonplaceholder.typicode.com/users/{{query.userId}}",
        "httpMethod": "GET",
        "headersTemplate": {
          "Authorization": "Bearer {{secrets.API_BEARER_TOKEN}}"
        },
        "timeoutMs": 3000
      }
    ],
    "outputMapping": {
      "version": 1,
      "fields": [
        {
          "targetPath": "userId",
          "sourcePath": "id",
          "type": "number",
          "sourceStep": "upstream"
        },
        {
          "targetPath": "name",
          "sourcePath": "name",
          "type": "string",
          "sourceStep": "upstream"
        },
        {
          "targetPath": "email",
          "sourcePath": "email",
          "type": "string",
          "sourceStep": "upstream"
        }
      ]
    }
  },
  "sampleBloatedInput": {
    "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"
      }
    }
  },
  "sampleSlimmedOutput": {
    "userId": "sample",
    "name": "sample",
    "email": "sample"
  },
  "curlSnippet": "curl -X GET \"https://realcomposer.com/v1/workspace/call-rest-api-webflow-without-zapier\" \\\n  -H \"Authorization: Bearer rc_live_client_token\"",
  "faqs": [
    {
      "question": "Is it safe to log REST API responses in Webflow?",
      "answer": "Point Webflow at /recipes/call-rest-api-webflow-without-zapier edge URL. RealComposer answers OPTIONS with Access-Control headers for allowed origins."
    },
    {
      "question": "Will Anthropic or Linear prompt bodies be rewritten?",
      "answer": "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."
    },
    {
      "question": "What happens if an upstream step times out?",
      "answer": "Rotate vault secrets for call-rest-api-webflow-without-zapier anytime; clients keep the same rc_live_ token."
    }
  ],
  "relatedRecipeSlugs": [
    "cache-airtable-avoid-rate-limits",
    "trim-stripe-json-for-mobile-apps",
    "plaid-api-proxy-flutter"
  ],
  "updatedAt": "2026-11-20",
  "links": {
    "page": "https://realcomposer.com/recipes/call-rest-api-webflow-without-zapier",
    "markdown": "https://realcomposer.com/recipes/call-rest-api-webflow-without-zapier.md",
    "json": "https://realcomposer.com/recipes/call-rest-api-webflow-without-zapier.json",
    "install": "https://realcomposer.com/dashboard/pipelines/new?recipe=call-rest-api-webflow-without-zapier&via=agent"
  }
}