Developer Platforms

Cloudflare Workers + Foldr Integration

Cloudflare Workers is the edge-compute platform powering global APIs. Call Foldr's REST API from Workers to upload and mint short links at the edge — useful for geographically-distributed content pipelines.

Cloudflarevia REST APICloudflare Workers docs

How to Connect Cloudflare Workers to Foldr

1

Generate a Foldr API key

Sign in at foldr.space and create an API key at foldr.space/developers.

2

Authenticate with Cloudflare Workers

Generate or locate your Cloudflare Workers API credentials per Cloudflare Workers's documentation.

3

Wire the two APIs together

Write a small script or serverless function that calls Cloudflare Workers, processes the result, and POSTs to https://foldr.space/api/v1/files (or /links for short links).

4

Deploy + schedule

Run the script on-demand, via a cron job, or trigger it from a webhook — the Foldr REST API has no client-library lock-in.

Common Use Cases

  • Upload CI job artifacts from Cloudflare Workers to Foldr for shareable public URLs
  • Store Cloudflare Workers backups on Foldr on a cron schedule
  • Attach Foldr URLs to Cloudflare Workers issues, PRs, or runs
  • Post Foldr links to Cloudflare Workers dashboards or alerts

Cloudflare Workers + Foldr FAQ

How do I connect Foldr to Cloudflare Workers?

You connect Foldr to Cloudflare Workers via REST API. Full steps are listed above under "How to Connect". In short: create a Foldr API key, configure the REST API integration pointed at https://foldr.space/api/v1/, and map Cloudflare Workers's data into Foldr's request body.

Do I need a paid Foldr plan to use Cloudflare Workers with Foldr?

The Foldr free tier supports basic uploads via the API with 7-day expiry. For integration use with Cloudflare Workers — higher rate limits, permanent storage, multiple API keys, and webhook subscriptions — Foldr Pro (from $5/mo) is recommended.

What Foldr features can I call from Cloudflare Workers?

From Cloudflare Workers you can invoke any Foldr action: uploading files (up to 2 GB each), creating short links, generating bio pages, creating hosted forms, and reading download analytics. See the Foldr API docs for the full endpoint list.

Is there an official Foldr app for Cloudflare Workers?

Not a first-party app — Foldr integrates with Cloudflare Workers through REST API, which is usually a better fit because it doesn't require installing an extra app. If you'd rather have a native integration, let us know at foldr.space/contact.

Related Developer Platforms Integrations

Start connecting Cloudflare Workers to Foldr

Grab a Foldr API key and wire up the steps above — most teams get the first end-to-end flow running in under ten minutes.

Get your Foldr API key